\EditableSubmissionExtension
A decorator to be applied to form submissions so that they can be re-edited at a later point in time
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
Synopsis
class EditableSubmissionExtension
extends DataExtension
{
- // members
- private static boolean $better_buttons_enabled = false;
- private static array $db = ;
- private static array $defaults = ;
- protected $labelledFieldMap;
- // methods
- public void exposeDataFields()
- public void fieldByLabel()
- public void onBeforeWrite()
- public SubmittedFormField getFormField()
- public boolean isReEditable()
- public boolean isViewable()
- public void isDeleteable()
- public void ResumeLink()
- public void ViewLink()
- public void PDFLink()
- public void WorkflowLink()
- public void Title()
- public void getWorkflowState()
Hierarchy
Extends
- DataExtension
Members
private
- $db
- $defaults
protected
- $labelledFieldMap
Methods
public
- PDFLink() — Get a URL that can be used for linking to the resume interface for this submission
- ResumeLink() — Get a URL that can be used for linking to the resume interface for this submission
- Title() — Useful for where a title might be needed
- ViewLink() — Get a URL that can be used for linking to the resume interface for this submission
- WorkflowLink()
- exposeDataFields()
- fieldByLabel()
- getFormField() — Gets a submitted form field for a given form field
- getWorkflowState()
- isDeleteable() — Can this submission be deleted?
- isReEditable() — Is this submission editable?
- isViewable() — Is this submission viewable on the frontend?
- onBeforeWrite() — Set the submission time if needbe