PHP Class Hive_Field, hive

Author: Woody Gilk ([email protected])
Mostrar archivo Open project: shadowhand/hive

Public Properties

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?

Public Methods

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.

Method Details

__construct() public method

Set field options.
public __construct ( array $options = NULL ) : void
$options array
return void

value() abstract public method

$value = $field->value($value);
abstract public value ( $value ) : mixed
return mixed

verbose() public method

$verbose = $field->value($value);
public verbose ( $value ) : string
return string

Property Details

$column public_oe property

real column name, empty for same as field name
public $column

$default public_oe property

default value
public $default

$null public_oe property

convert empty values to NULL?
public $null

$on_change public_oe property

anonymous function($model, $value) called when value is changed
public $on_change

$primary public_oe property

is this field a primary key?
public $primary

$table public_oe property

table that contains this field
public $table

$unique public_oe property

must this field always be unique?
public $unique