PHP 인터페이스 Jarves\Admin\FieldTypes\TypeInterface

파일 보기 프로젝트 열기: jarves/jarves 0 사용 예제들

공개 메소드들

메소드 설명
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