Symbiote\AdvancedWorkflow\Extensions\WorkflowApplicable
DataObjects that have the WorkflowApplicable extension can have a workflow definition applied to them. At some point, the workflow definition is then triggered.
- Author: marcus@symbiote.com.au
- License: BSD License (http://silverstripe.org/bsd-license/)
Synopsis
class WorkflowApplicable
extends DataExtension
{
- // members
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $dependencies = ;
- public boolean $isPublishJobRunning = false;
- public WorkflowService $workflowService;
- protected WorkflowInstance $currentInstance;
- // methods
- public void setIsPublishJobRunning()
- public boolean getIsPublishJobRunning()
- public boolean isPublishJobRunning()
- public void updateSettingsFields()
- public void updateCMSFields()
- public void updateFields()
- public void updateCMSActions()
- protected void createActionMenu()
- public string|null AbsoluteEditLink()
- public string LinkToPendingItems()
- public void onAfterWrite()
- public void WorkflowInstances()
- public WorkflowInstance getWorkflowInstance()
- public DataList getWorkflowHistory()
- public WorkflowActionInstance|null RecentWorkflowComment()
- public void canPublish()
- public bool canEdit()
- public bool canEditWorkflow()
- public $this setWorkflowService()
- public WorkflowService getWorkflowService()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $dependencies
- $has_one
- $many_many
protected
- $currentInstance
—
Symbiote\AdvancedWorkflow\DataObjects\WorkflowInstance
A cache var for the current workflow instance
public
- $isPublishJobRunning
—
boolean
Used to flag to this extension if there's a WorkflowPublishTargetJob running. - $workflowService — Symbiote\AdvancedWorkflow\Services\WorkflowService
Methods
protected
public
- AbsoluteEditLink() — Included in CMS-generated email templates for a NotifyUsersWorkflowAction.
- LinkToPendingItems() — Included in CMS-generated email templates for a NotifyUsersWorkflowAction.
- RecentWorkflowComment() — Check all recent WorkflowActionIntances and return the most recent one with a Comment
- WorkflowInstances()
- canEdit() — Can only edit content that's NOT in another person's content changeset
- canEditWorkflow() — Can a user edit the current workflow attached to this item?
- canPublish() — Content can never be directly publishable if there's a workflow applied.
- getIsPublishJobRunning()
- getWorkflowHistory() — Gets the history of a workflow instance
- getWorkflowInstance() — Gets the current instance of workflow
- getWorkflowService()
- isPublishJobRunning()
- onAfterWrite() — After a workflow item is written, we notify the workflow so that it can take action if needbe
- setIsPublishJobRunning()
- setWorkflowService()
- updateCMSActions()
- updateCMSFields()
- updateFields()
- updateSettingsFields()