PHP 클래스 LazyRecord\Schema\RuntimeColumn

상속: implements IteratorAggregat\IteratorAggregate, implements LazyRecord\Schema\ColumnAccessorInterface
파일 보기 프로젝트 열기: corneltek/lazyrecord 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$canonicalizer
$default
$filter
$isa
$name Read only fields
$notNull
$primary
$required
$type
$unsigned
$validValues
$validator

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes

공개 메소드들

메소드 설명
__construct ( $name, array $attributes = [] )
__get ( $name )
__isset ( $name )
__set ( $n, $v )
__set_state ( $hash )
canonicalizeValue ( mixed &$value, BaseModel $record = null, array $args = null ) : mixed Canonicalize a value before updating or creating.
checkTypeConstraint ( $value )
deflate ( mixed $value, BaseDriver $driver = null ) deflate value.
display ( $value )
get ( $name )
getDefaultValue ( $record = null, $args = null )
getIterator ( ) For iterating attributes.
getLabel ( )
getName ( )
getOptionValues ( $record = null, $args = null )
getValidValues ( $record = null, $args = null ) For an existing record, we might need the record data to return specified valid values.
has ( $name )
inflate ( $value, $record )
typeCasting ( mixed $value ) : mixed Column value type casting for input values.

메소드 상세

__construct() 공개 메소드

public __construct ( $name, array $attributes = [] )
$attributes array

__get() 공개 메소드

public __get ( $name )

__isset() 공개 메소드

public __isset ( $name )

__set() 공개 메소드

public __set ( $n, $v )

__set_state() 공개 정적인 메소드

public static __set_state ( $hash )

canonicalizeValue() 공개 메소드

The canonicalize handler takes the original value ($value), current record ($record) and the arguments ($args)
public canonicalizeValue ( mixed &$value, BaseModel $record = null, array $args = null ) : mixed
$value mixed
$record LazyRecord\BaseModel
$args array
리턴 mixed $value

checkTypeConstraint() 공개 메소드

public checkTypeConstraint ( $value )

deflate() 공개 메소드

deflate value.
public deflate ( mixed $value, BaseDriver $driver = null )
$value mixed
$driver SQLBuilder\Driver\BaseDriver

display() 공개 메소드

public display ( $value )

get() 공개 메소드

public get ( $name )

getDefaultValue() 공개 메소드

public getDefaultValue ( $record = null, $args = null )

getIterator() 공개 메소드

For iterating attributes.
public getIterator ( )

getLabel() 공개 메소드

public getLabel ( )

getName() 공개 메소드

public getName ( )

getOptionValues() 공개 메소드

public getOptionValues ( $record = null, $args = null )

getValidValues() 공개 메소드

For an existing record, we might need the record data to return specified valid values.
public getValidValues ( $record = null, $args = null )

has() 공개 메소드

public has ( $name )

inflate() 공개 메소드

public inflate ( $value, $record )

typeCasting() 공개 메소드

Column value type casting for input values.
public typeCasting ( mixed $value ) : mixed
$value mixed referenced value
리턴 mixed

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

protected $attributes

$canonicalizer 공개적으로 프로퍼티

public $canonicalizer

$default 공개적으로 프로퍼티

public $default

$filter 공개적으로 프로퍼티

public $filter

$isa 공개적으로 프로퍼티

public $isa

$name 공개적으로 프로퍼티

Read only fields
public $name

$notNull 공개적으로 프로퍼티

public $notNull

$primary 공개적으로 프로퍼티

public $primary

$required 공개적으로 프로퍼티

public $required

$type 공개적으로 프로퍼티

public $type

$unsigned 공개적으로 프로퍼티

public $unsigned

$validValues 공개적으로 프로퍼티

public $validValues

$validator 공개적으로 프로퍼티

public $validator