Milkyway\SS\GridFieldUtils\AddNewInlineExtended_MultiClass
Milkyway Multimedia AddNewInlineExtended.php
- Author: Mellisa Hankins <mell@milkywaymultimedia.com.au>
Synopsis
class AddNewInlineExtended_MultiClass
extends AddNewInlineExtended
{
- // members
- public $allowedClasses;
- public boolean $showEmptyString = true;
- private array $useAllowedClasses = ;
- // Inherited members from AddNewInlineExtended
- public string $urlSegment;
- public boolean $loadViaAjax;
- public boolean $cacheAjaxLoading;
- public boolean $hideUnlessOpenedWithEditableColumns;
- public boolean $openToggleByDefault;
- public boolean $prepend;
- public $rowTemplate;
- public string $setWorkingParentOnRecordTo;
- protected $itemEditFormCallback;
- protected $fragment;
- protected $title;
- protected $fields;
- protected $template;
- protected $validator;
- protected string $buttonTemplate;
- // methods
- public void getHTMLFragments()
- public array getAllowedClasses()
- protected void getButtonFragment()
- protected void canCreate()
- // Inherited methods from AddNewInlineExtended
- public static void flush()
- public void cleanCache()
- public void __construct()
- public void getURLHandlers()
- public string getFragment()
- public AddNewInlineExtended_MultiClass setFragment()
- public string getTitle()
- public AddNewInlineExtended_MultiClass setTitle()
- public FieldList|Callable|array getFields()
- public AddNewInlineExtended_MultiClass setFields()
- public Validator|Callable|array getValidator()
- public AddNewInlineExtended_MultiClass setValidator()
- public callable getItemEditFormCallback()
- public AddNewInlineExtended_MultiClass 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
Members
private
- $useAllowedClasses
protected
- $fields
- $fragment
- $itemEditFormCallback
- $template
- $title
- $validator
public
- $allowedClasses
- $cacheAjaxLoading
- $hideUnlessOpenedWithEditableColumns
- $loadViaAjax
- $openToggleByDefault
- $prepend
- $rowTemplate
- $setWorkingParentOnRecordTo
- $showEmptyString
- $urlSegment
Methods
protected
public
- getAllowedClasses() — Gets the classes that can be created using this button, defaulting to the model class and its subclasses.
- getHTMLFragments()
Inherited from Milkyway\SS\GridFieldUtils\AddNewInlineExtended
protected
- canCreate()
- getButtonFragment()
- getCacheKey()
- getComponentName()
- getFieldList()
- getForm()
- getRecordFromGrid()
- getRowTemplate()
- getRowTemplateVariables()
- getValidatorForForm()
- renameFieldsInCompositeField()
public
- 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