\AdvancedWorkflowExtension
Handles interactions triggered by users in the backend of the CMS. Replicate this type of functionality wherever you need UI interaction with workflow.
- Author: marcus@silverstripe.com.au
- License: BSD License (http://silverstripe.org/bsd-license/)
Synopsis
class AdvancedWorkflowExtension
extends LeftAndMainExtension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public void startworkflow()
- public void updateEditForm()
- public void updateItemEditForm()
- public String updateworkflow()
- protected void returnResponse()
- protected void saveAsDraftWithAction()
Hierarchy
Extends
- LeftAndMainExtension
Tasks
Line | Task |
---|---|
97+ | refactor with WorkflowInstance::updateWorkflow |
Members
private
- $allowed_actions
Methods
protected
- returnResponse()
- saveAsDraftWithAction() — Ocassionally users forget to apply their changes via the standard CMS "Save Draft" button, and select the action button instead - losing their changes.
public
- startworkflow()
- updateEditForm() — Need to update the edit form AFTER it's been transformed to read only so that the workflow stuff is still allowed to be added with 'write' permissions
- updateItemEditForm()
- updateworkflow() — Update a workflow based on user input.