\QuickAddNewExtension
QuickAddNewExtension
- Author: shea@silverstripe.com.au
Synopsis
class QuickAddNewExtension
extends Extension
{
- // members
- protected boolean $addNewEnabled = false;
- protected FieldList $addNewFields;
- protected $addNewClass;
- protected Function $sourceCallback;
- protected RequiredFields $addNewRequiredFields;
- protected Boolean $isFrontend;
- public static array $allowed_actions = ;
- // methods
- public FormField useAddNew()
- public boolean hasAddNewButton()
- public void updateAttributes()
- public Form AddNewForm()
- public string AddNewFormHTML()
- public string doAddNew()
- public boolean getIsFrontend()
Hierarchy
Extends
- Extension
Members
protected
- $addNewClass — string
- $addNewEnabled — boolean
- $addNewFields — FieldList
- $addNewRequiredFields — RequiredFields
- $isFrontend — Boolean
- $sourceCallback — Function
public
- $allowed_actions — array
Methods
public
- AddNewForm() — The AddNewForm for the dialog window
- AddNewFormHTML() — Returns the HTML of the AddNewForm for the dialog
- doAddNew() — Handles adding the new object Returns the updated FieldHolder of this form to replace the existing one
- getIsFrontend()
- hasAddNewButton()
- updateAttributes()
- useAddNew() — Tell this form field to apply the add new UI and fucntionality