Symbiote\FrontendObjects\Page\ObjectCreatorPageController
Synopsis
class ObjectCreatorPageController
extends PageController
{
- // members
- private static array $allowed_actions = ;
- public DataObject $editObject = NULL;
- // methods
- public void init()
- public void index()
- public void review()
- public void edit()
- public HtmlEditorField_Toolbar EditorToolbar()
- public void Form()
- public void createEditObject()
- protected void allowedCreationTypes()
- public void CreateForm()
- public DataObject NewObject()
- public string SuccessContent()
- public string EditingSuccessContent()
- protected void editingMessageWithKeywords()
- public void createobject()
- protected void isParentIdValid()
- public void editobject()
- public void doReview()
- public DataObject objectExists()
- protected DataObject queryEditObject()
Hierarchy
Extends
- PageController
Members
private
- $allowed_actions
public
- $editObject
—
SilverStripe\ORM\DataObject
If editing an object - The object currently being edited
Methods
protected
- allowedCreationTypes()
- editingMessageWithKeywords()
- isParentIdValid() — Indicates whether the user-supplied parent ID is in an allowed location
- queryEditObject()
public
- CreateForm()
- EditingSuccessContent() — Get's the success message and replaces the placeholders with the new objects values
- EditorToolbar() — Return the HTML-editor toolbar (for HtmlEditorField support on frontend)
- Form()
- NewObject() — Return the new object if set in the URL
- SuccessContent() — Get's the success message and replaces the placeholders with the new objects values
- createEditObject() — Create the placeholder object used for a) the CreateForm and b) for saving into when we're creating a _new_ object
- createobject() — Action called by the form to actually create a new page object.
- doReview() — Redirect to the page to review
- edit()
- editobject() — Action called by the form to edit the object
- index()
- init()
- objectExists() — checks to see if the object being created already exists and if so, returns it
- review()