Property | Type | Description | |
---|---|---|---|
$column | real column name, empty for same as field name | ||
$default | default value | ||
$null | convert empty values to NULL? | ||
$on_change | anonymous function($model, $value) called when value is changed | ||
$primary | is this field a primary key? | ||
$table | table that contains this field | ||
$unique | must this field always be unique? |
Method | Description | |
---|---|---|
__construct ( array $options = NULL ) : void | Set field options. | |
value ( $value ) : mixed | Convert an incoming value to the proper type. | |
verbose ( $value ) : string | Convert a value to a human readable format. |
public __construct ( array $options = NULL ) : void | ||
$options | array | |
return | void |
public $on_change |