\WorkflowTransition
Synopsis
class WorkflowTransition
extends DataObject
{
- // members
- private static array $db = ;
- private static string $default_sort = 'Sort';
- private static array $has_one = ;
- private static array $many_many = ;
- public static string $icon = 'advancedworkflow/images/transition.png';
- public static array $extendedMethodReturn = ;
- // methods
- public bool isValid()
- public void onBeforeWrite()
- public void validate()
- public void getCMSFields()
- public void fieldLabels()
- public void getValidator()
- public void numChildren()
- public void summaryFields()
- public bool canExecute()
- public bool canCreate()
- public bool canEdit()
- public bool canDelete()
- public ArrayList getAssignedMembers()
- public void extendedRequiredFieldsNotSame()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $default_sort
- $has_one
- $many_many
public
- $extendedMethodReturn — array
- $icon
Methods
public
- canCreate() — Allows users who have permission to create a WorkflowDefinition, to create actions on it too.
- canDelete()
- canEdit()
- canExecute() — Check if the current user can execute this transition
- extendedRequiredFieldsNotSame()
- fieldLabels()
- getAssignedMembers() — Returns a set of all Members that are assigned to this transition, either directly or via a group.
- getCMSFields()
- getValidator()
- isValid() — Returns true if it is valid for this transition to be followed given the current state of a workflow.
- numChildren()
- onBeforeWrite() — Before saving, make sure we're not in an infinite loop
- summaryFields()
- validate()