Symbiote\FutureWorkflow\FutureWorkflow
Represents a workflow that will be started at a future-date
- Author: marcus
Synopsis
class FutureWorkflow
extends DataObject
{
- // constants
- const TYPE_FIXED_DATE = 'date';
- const TYPE_EDIT = 'edit';
- const TYPE_PUBLISH = 'publish';
- // members
- private static string $table_name = 'FutureWorkflow';
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $defaults = ;
- private static string $singular_name = 'Future Workflow';
- public array $types = ;
- // methods
- public void onBeforeWrite()
- public void checkFixedTimes()
- public boolean evaluateDataChanges()
- protected FutureWorkflowTrigger triggerFor()
- public FieldList getCMSFields()
- public void canEdit()
- public void canDelete()
- public void canView()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Constants
Name | Value |
---|---|
TYPE_FIXED_DATE | 'date' |
TYPE_EDIT | 'edit' |
TYPE_PUBLISH | 'publish' |
Members
private
- $db
- $defaults
- $has_one
- $singular_name
- $summary_fields
- $table_name
public
- $types
Methods
protected
- triggerFor() — Create a trigger for the future workflow against the relevant context object
public
- canDelete()
- canEdit()
- canView()
- checkFixedTimes() — Check whether fixed time trigger needs setting
- evaluateDataChanges() — Figures out whether a change is relevant for this future workflow, and if so creates a futureworkflowtrigger
- getCMSFields()
- onBeforeWrite()