PHP 클래스 Hive_Field, hive

저자: Woody Gilk ([email protected])
파일 보기 프로젝트 열기: shadowhand/hive

공개 프로퍼티들

프로퍼티 타입 설명
$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?

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

value() 추상적인 공개 메소드

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

verbose() 공개 메소드

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

프로퍼티 상세

$column 공개적으로 프로퍼티

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

$default 공개적으로 프로퍼티

default value
public $default

$null 공개적으로 프로퍼티

convert empty values to NULL?
public $null

$on_change 공개적으로 프로퍼티

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

$primary 공개적으로 프로퍼티

is this field a primary key?
public $primary

$table 공개적으로 프로퍼티

table that contains this field
public $table

$unique 공개적으로 프로퍼티

must this field always be unique?
public $unique