Milkyway\SS\GridFieldUtils\AddNewInlineExtended
Synopsis
class AddNewInlineExtended
extends RequestHandler
implements
GridField_HTMLProvider,GridField_SaveHandler,GridField_URLHandler,Flushable
{
- // members
- public string $urlSegment = 'extendedInline';
- public boolean $loadViaAjax = true;
- public boolean $cacheAjaxLoading = true;
- public boolean $hideUnlessOpenedWithEditableColumns = true;
- public boolean $openToggleByDefault = false;
- public boolean $prepend = false;
- public $rowTemplate;
- public string $setWorkingParentOnRecordTo = 'Parent';
- protected $itemEditFormCallback;
- protected $fragment;
- protected $title;
- protected $fields;
- protected $template;
- protected $validator;
- protected string $buttonTemplate = 'GridField_AddNewInlineExtended_Button';
- private $workingGrid;
- private $cache;
- private static array $allowed_actions = ;
- // methods
- public static void flush()
- public void cleanCache()
- public void __construct()
- public void getURLHandlers()
- public string getFragment()
- public AddNewInlineExtended setFragment()
- public string getTitle()
- public AddNewInlineExtended setTitle()
- public FieldList|Callable|array getFields()
- public AddNewInlineExtended setFields()
- public Validator|Callable|array getValidator()
- public AddNewInlineExtended setValidator()
- public callable getItemEditFormCallback()
- public AddNewInlineExtended setItemEditFormCallback()
- public void getHTMLFragments()
- protected void getButtonFragment()
- protected void getRowTemplate()
- protected void getRowTemplateVariables()
- public void handleSave()
- protected void getForm()
- protected void getFieldList()
- protected void getValidatorForForm()
- protected void getRecordFromGrid()
- public void handleForm()
- public void loadItem()
- public void Link()
- public void canEditWithEditableColumns()
- protected void getCacheKey()
- protected void renameFieldsInCompositeField()
- protected void canCreate()
- protected void getComponentName()
Hierarchy
Extends
- RequestHandler
Implements
- GridField_HTMLProvider
- GridField_SaveHandler
- GridField_URLHandler
- Flushable
Members
private
- $allowed_actions
- $cache
- $workingGrid
protected
- $fields
- $fragment
- $itemEditFormCallback
- $template
- $title
- $validator
public
- $cacheAjaxLoading
- $hideUnlessOpenedWithEditableColumns
- $loadViaAjax
- $openToggleByDefault
- $prepend
- $rowTemplate
- $setWorkingParentOnRecordTo
- $urlSegment
Methods
protected
- canCreate()
- getButtonFragment()
- getCacheKey()
- getComponentName()
- getFieldList()
- getForm()
- getRecordFromGrid()
- getRowTemplate()
- getRowTemplateVariables()
- getValidatorForForm()
- renameFieldsInCompositeField()
public
- __construct()
- Link()
- canEditWithEditableColumns()
- cleanCache()
- flush()
- getFields() — Gets the fields for this class
- getFragment() — Gets the fragment name this button is rendered into.
- getHTMLFragments()
- getItemEditFormCallback() — Get the callback for changes on the edit form after constructing it
- getTitle() — Gets the button title text.
- getURLHandlers()
- getValidator() — Gets the validator
- handleForm()
- handleSave()
- loadItem()
- setFields() — Sets the fields that will be displayed in this component
- setFragment() — Sets the fragment name this button is rendered into.
- setItemEditFormCallback() — Make changes on the edit form after constructing it.
- setTitle() — Sets the button title text.
- setValidator() — Sets the validator that will be displayed in this component