PHP Class Jarves\Admin\FieldTypes\AbstractType

Inheritance: implements Jarves\Admin\FieldTypes\TypeInterface
Show file Open project: jarves/jarves

Protected Properties

Property Type Description
$fieldDefinition Jarves\Configuration\Field
$name string
$value mixed

Public Methods

Method Description
getFieldDefinition ( ) : Field
getForm ( ) : Form
getName ( ) : string
getPhpDataType ( ) : string
getRequiredFields ( ) : array A list of field names that are included additional in ObjectCrud's field list during loading of this field.
getValue ( ) : mixed
isDiffAllowed ( )
mapValues ( array &$data )
setFieldDefinition ( Field $field )
setName ( string $name )
setValue ( mixed $value )
validate ( ) : array

Protected Methods

Method Description
validateColumn ( mixed $value, ColumnDefinition $column, array &$result )

Method Details

getFieldDefinition() public method

public getFieldDefinition ( ) : Field
return Jarves\Configuration\Field

getForm() public method

public getForm ( ) : Form
return Jarves\Admin\Form\Form

getName() public method

public getName ( ) : string
return string

getPhpDataType() public method

public getPhpDataType ( ) : string
return string

getRequiredFields() public method

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

getValue() public method

public getValue ( ) : mixed
return mixed

isDiffAllowed() public method

public isDiffAllowed ( )

mapValues() public method

public mapValues ( array &$data )
$data array

setFieldDefinition() public method

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

setName() public method

public setName ( string $name )
$name string

setValue() public method

public setValue ( mixed $value )
$value mixed

validate() public method

public validate ( ) : array
return array

validateColumn() protected method

protected validateColumn ( mixed $value, ColumnDefinition $column, array &$result )
$value mixed
$column ColumnDefinition
$result array

Property Details

$fieldDefinition protected property

protected Field,Jarves\Configuration $fieldDefinition
return Jarves\Configuration\Field

$name protected property

protected string $name
return string

$value protected property

protected mixed $value
return mixed