Moo\HasOneSelector\Form\Field
Class Field provides CMS field to manage selecting/adding/editing object within has_one relation of the current object being edited.
Synopsis
class Field
extends CompositeField
{
- // members
- protected $gridField = NULL;
- protected $valueField = NULL;
- // methods
- public void __construct()
- public DBHTMLText FieldHolder()
- protected void getValueHolderField()
- public void getGridField()
- protected void initGridField()
- protected void createList()
- public void removeLinkable()
- public void enableLinkable()
- public void removeAddable()
- public void enableAddable()
- public mixed __call()
Hierarchy
Extends
- SilverStripe\Forms\CompositeField
Members
protected
-
$gridField
Instance of form field that find and display selected record. -
$valueField
Instance of form field that holds the value.
Methods
protected
- createList() — Create data list for grid field.
- getValueHolderField() — Get instance of value holder field that hold the value of has one.
- initGridField() — Initiate instance of grid field. This is a subclass of GridField.
public
- __construct() — HasOneSelector Field constructor.
- FieldHolder() — Returns a "field holder" for this field.
- __call() — Proxy any undefined methods to the grid field as this is the main field and the composite is wrapper to manage the field and value of has one.
- enableAddable() — Add addable grid field component.
- enableLinkable() — Add linkable grid field component.
- getGridField() — Get instance of grid field embed in wrapper field.
- removeAddable() — Remove the addable grid field component.
- removeLinkable() — Remove the linkable grid field component.