Symbiote\AdvancedWorkflow\Extensions\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@symbiote.com.au
- License: BSD License (http://silverstripe.org/bsd-license/)
Synopsis
class AdvancedWorkflowExtension
extends Extension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public string|null startworkflow()
- public void updateEditForm()
- public void updateItemEditForm()
- public string|null updateworkflow()
- protected void returnResponse()
- protected void saveAsDraftWithAction()
Hierarchy
Extends
- SilverStripe\Core\Extension
Tasks
Line | Task |
---|---|
128+ | 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.