Méthode |
Description |
|
__construct ( DeclareSchema $schema, $name = null, $type = null ) |
column name (id) |
|
__get ( $name ) |
|
|
__isset ( $name ) |
|
|
__set ( $name, $value ) |
|
|
applyType ( DeclareColumn $column ) : DeclareColumn |
Apply column type on a column object for setting foreign key. |
|
asRuntimeColumn ( ) : RuntimeColumn |
Rebless the data into RuntimeColumn object. |
|
compareType ( DeclareColumn $column ) |
|
|
dump ( ) |
|
|
export ( ) : array |
Export column attributes to an array. |
|
get ( string $name ) |
Which should be something like getAttribute($name). |
|
getDefaultValue ( $record = null, $args = null ) |
|
|
getIterator ( ) |
Return an array iterator of extended attributes. |
|
getLabel ( ) |
|
|
getName ( ) |
|
|
getValidValues ( $record = null, $args = null ) |
For an existing record, we might need the record data to return specified valid values. |
|
index ( $indexName = null, $using = null ) |
|
|
json ( ) |
|
|
localize ( array $locales ) |
provide localized columns. |
|
name ( $name ) |
|
|
refer ( $schemaClass ) |
Use referenece from existing relationship. |
|
renderAs ( $renderAs, array $widgetAttributes = [] ) |
|
|
required ( $notNull = true ) |
When enabled required(), notNull should also be set. |
|
serial ( ) |
serial type. |
|
toArray ( ) : array |
Combine column object properties and extended attributes. |
|
validator ( ) |
|
|