PHP Interface Jarves\Admin\FieldTypes\TypeInterface

Afficher le fichier Open project: jarves/jarves Interface Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

bootRunTime() public méthode

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() public méthode

Returns all columns that are necessary to get this field working.
public getColumns ( ) : Jarves\Admin\FieldTypes\ColumnDefinitionInterface[]
Résultat Jarves\Admin\FieldTypes\ColumnDefinitionInterface[]

getFieldDefinition() public méthode

public getFieldDefinition ( ) : Field
Résultat Jarves\Configuration\Field

getForm() public méthode

public getForm ( ) : Form
Résultat Jarves\Admin\Form\Form

getName() public méthode

public getName ( ) : string
Résultat string

getPhpDataType() public méthode

Possible values: integer|float|string|array|bool
public getPhpDataType ( ) : string
Résultat string

getRequiredFields() public méthode

A list of field names that are included additional in ObjectCrud's field list during loading of this field.
public getRequiredFields ( ) : array
Résultat array

getSelection() public méthode

Returns the field names to select from the object model as array.
public getSelection ( ) : string[]
Résultat string[]

getValue() public méthode

public getValue ( ) : mixed
Résultat mixed

isDiffAllowed() public méthode

public isDiffAllowed ( )

mapValues() public méthode

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

setFieldDefinition() public méthode

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

setValue() public méthode

public setValue ( mixed $value )
$value mixed

validate() public méthode

public validate ( ) : array
Résultat array