\AdvancedWorkflowExtension
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
- SilverStripe\Admin\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.