Symbiote\AdvancedWorkflow\Controllers\FrontEndWorkflowController
Provides a front end Form view of the defined Workflow Actions and Transitions
- Author: rodney@symbiote.com.au shea@symbiote.com.au
- License: BSD License (http://silverstripe.org/bsd-license/)
Synopsis
class FrontEndWorkflowController
extends Controller
{
- // members
- protected $transitionID;
- protected $contextObj;
- public $Title;
- // methods
- public abstract string getContextType()
- public getContextObject()
- protected int getContextID()
- public abstract WorkflowDefinition getWorkflowDefinition()
- public void handleAction()
- public Form Form()
- public WorkflowTransition getCurrentTransition()
- public void doFrontEndAction()
- public void Title()
Hierarchy
Extends
- SilverStripe\Control\Controller
Tasks
Line | Task |
---|---|
86+ | - is this even required??? |
Members
protected
- $contextObj
- $transitionID
public
- $Title
—
string
The title to be displayed on the page
Methods
protected
public
- Form() — Create the Form containing: - fields from the Context Object - required fields from the Context Object - Actions from the connected WorkflowTransitions
- Title() — checks to see if there is a title set on the current workflow action uses that or falls back to controller->Title
- doFrontEndAction() — Save the Form Data to the defined Context Object
- getContextObject()
- getContextType()
- getCurrentTransition()
- getWorkflowDefinition() — Specifies the Workflow Definition to be used, ie. retrieve from SiteConfig - or wherever it's defined
- handleAction() — Handle the Form Action - FrontEndWorkflowForm contains the logic for this