DNADesign\Elemental\Forms\ElementalAreaField
Synopsis
class ElementalAreaField
extends GridField
{
- // members
- protected ElementalArea $area;
- protected array $types = ;
- protected $inputType = NULL;
- protected $modelClassName = BaseElement::class;
- // methods
- public void __construct()
- public $this setTypes()
- public array getTypes()
- public ElementalArea getArea()
- public DBHTMLText|string FieldHolder()
- public void getSchemaDataDefaults()
- protected callable getReadOnlyBlockReducer()
- public CompositeField performReadonlyTransformation()
- public void setSubmittedValue()
- public void saveInto()
Hierarchy
Extends
- SilverStripe\Forms\GridField\GridField
Members
protected
- $area — DNADesign\Elemental\Models\ElementalArea
- $inputType — null
- $modelClassName
- $types — array
Methods
protected
- getReadOnlyBlockReducer() — A getter method that seems redundant in that it is a function that returns a function, however the returned closure is used in an array map function to return a complete FieldList representing a read only view of the element passed in (to the closure).
public
- __construct()
- FieldHolder() — Overloaded to skip GridField implementation - this is copied from FormField.
- getArea()
- getSchemaDataDefaults()
- getTypes()
- performReadonlyTransformation() — Provides a readonly representation of the GridField (superclass) Uses a reducer {@see ElementalAreaField::getReadOnlyBlockReducer()} to fetch a read only representation of the listed class {@see GridField::getModelClass()}
- saveInto()
- setSubmittedValue()
- setTypes()