PHP Интерфейс Jarves\Admin\FieldTypes\TypeInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
bootRunTime ( Object $object, Configs $configs ) Do whatever is needed to setup the runtime environment correctly.
getColumns ( ) : Jarves\Admin\FieldTypes\ColumnDefinitionInterface[] Returns all columns that are necessary to get this field working.
getFieldDefinition ( ) : Field
getForm ( ) : Form
getName ( ) : string
getPhpDataType ( ) : string Returns the internal data type that is required for setValue or that is returned by getValue.
getRequiredFields ( ) : array A list of field names that are included additional in ObjectCrud's field list during loading of this field.
getSelection ( ) : string[] Returns the field names to select from the object model as array.
getValue ( ) : mixed
isDiffAllowed ( )
mapValues ( array &$data ) Maps the internal value to $data.
setFieldDefinition ( Field $field )
setValue ( mixed $value )
validate ( ) : array

Описание методов

bootRunTime() публичный Метод

This changes are also used in the model buildTime. e.g. create cross foreignKeys for 1-to-n relations. This changes will be cached. Make sure that this method does only change stuff once, because we call it frequently, depends if another boot has something changed.
public bootRunTime ( Object $object, Configs $configs )
$object Jarves\Configuration\Object
$configs Jarves\Configuration\Configs

getColumns() публичный Метод

Returns all columns that are necessary to get this field working.
public getColumns ( ) : Jarves\Admin\FieldTypes\ColumnDefinitionInterface[]
Результат Jarves\Admin\FieldTypes\ColumnDefinitionInterface[]

getFieldDefinition() публичный Метод

public getFieldDefinition ( ) : Field
Результат Jarves\Configuration\Field

getForm() публичный Метод

public getForm ( ) : Form
Результат Jarves\Admin\Form\Form

getName() публичный Метод

public getName ( ) : string
Результат string

getPhpDataType() публичный Метод

Possible values: integer|float|string|array|bool
public getPhpDataType ( ) : string
Результат string

getRequiredFields() публичный Метод

A list of field names that are included additional in ObjectCrud's field list during loading of this field.
public getRequiredFields ( ) : array
Результат array

getSelection() публичный Метод

Returns the field names to select from the object model as array.
public getSelection ( ) : string[]
Результат string[]

getValue() публичный Метод

public getValue ( ) : mixed
Результат mixed

isDiffAllowed() публичный Метод

public isDiffAllowed ( )

mapValues() публичный Метод

Maps the internal value to $data.
public mapValues ( array &$data )
$data array

setFieldDefinition() публичный Метод

public setFieldDefinition ( Field $field )
$field Jarves\Configuration\Field

setValue() публичный Метод

public setValue ( mixed $value )
$value mixed

validate() публичный Метод

public validate ( ) : array
Результат array