PHP Class lazyrecord\schema\RuntimeColumn

Inheritance: implements IteratorAggregat\IteratorAggregate, implements LazyRecord\Schema\ColumnAccessorInterface
Datei anzeigen Open project: corneltek/lazyrecord Class Usage Examples

Public Properties

Property Type Description
$canonicalizer
$default
$filter
$isa
$name Read only fields
$notNull
$primary
$required
$type
$unsigned
$validValues
$validator

Protected Properties

Property Type Description
$attributes

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

__get() public method

public __get ( $name )

__isset() public method

public __isset ( $name )

__set() public method

public __set ( $n, $v )

__set_state() public static method

public static __set_state ( $hash )

canonicalizeValue() public method

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
return mixed $value

checkTypeConstraint() public method

public checkTypeConstraint ( $value )

deflate() public method

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

display() public method

public display ( $value )

get() public method

public get ( $name )

getDefaultValue() public method

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

getIterator() public method

For iterating attributes.
public getIterator ( )

getLabel() public method

public getLabel ( )

getName() public method

public getName ( )

getOptionValues() public method

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

getValidValues() public method

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

has() public method

public has ( $name )

inflate() public method

public inflate ( $value, $record )

typeCasting() public method

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

Property Details

$attributes protected_oe property

protected $attributes

$canonicalizer public_oe property

public $canonicalizer

$default public_oe property

public $default

$filter public_oe property

public $filter

$isa public_oe property

public $isa

$name public_oe property

Read only fields
public $name

$notNull public_oe property

public $notNull

$primary public_oe property

public $primary

$required public_oe property

public $required

$type public_oe property

public $type

$unsigned public_oe property

public $unsigned

$validValues public_oe property

public $validValues

$validator public_oe property

public $validator