WorkflowExtension
extends AbstractExtension
in package
FinalYes
WorkflowExtension.
Tags
Table of Contents
Properties
- $workflowRegistry : mixed
Methods
- __construct() : mixed
- buildTransitionBlockerList() : TransitionBlockerList
- canTransition() : bool
- Returns true if the transition is enabled.
- getEnabledTransition() : Transition|null
- getEnabledTransitions() : array<string|int, Transition>
- Returns all enabled transitions.
- getFilters() : array<string|int, TwigFilter>
- Returns a list of filters to add to the existing list.
- getFunctions() : array<string|int, TwigFunction>
- Returns a list of functions to add to the existing list.
- getMarkedPlaces() : array<string|int, string>|array<string|int, int>
- Returns marked places.
- getMetadata() : mixed
- Returns the metadata for a specific subject.
- getNodeVisitors() : array<string|int, NodeVisitorInterface>
- Returns the node visitor instances to add to the existing list.
- getOperators() : array<string|int, array<string|int, mixed>>
- Returns a list of operators to add to the existing list.
- getTests() : array<string|int, TwigTest>
- Returns a list of tests to add to the existing list.
- getTokenParsers() : array<string|int, TokenParserInterface>
- Returns the token parser instances to add to the existing list.
- hasMarkedPlace() : bool
- Returns true if the place is marked.
Properties
$workflowRegistry
private
mixed
$workflowRegistry
Methods
__construct()
public
__construct(Registry $workflowRegistry) : mixed
Parameters
- $workflowRegistry : Registry
buildTransitionBlockerList()
public
buildTransitionBlockerList(object $subject, string $transitionName[, string $name = null ]) : TransitionBlockerList
Parameters
- $subject : object
- $transitionName : string
- $name : string = null
Return values
TransitionBlockerListcanTransition()
Returns true if the transition is enabled.
public
canTransition(object $subject, string $transitionName[, string $name = null ]) : bool
Parameters
- $subject : object
- $transitionName : string
- $name : string = null
Return values
boolgetEnabledTransition()
public
getEnabledTransition(object $subject, string $transition[, string $name = null ]) : Transition|null
Parameters
- $subject : object
- $transition : string
- $name : string = null
Return values
Transition|nullgetEnabledTransitions()
Returns all enabled transitions.
public
getEnabledTransitions(object $subject[, string $name = null ]) : array<string|int, Transition>
Parameters
- $subject : object
- $name : string = null
Return values
array<string|int, Transition>getFilters()
Returns a list of filters to add to the existing list.
public
getFilters() : array<string|int, TwigFilter>
Return values
array<string|int, TwigFilter>getFunctions()
Returns a list of functions to add to the existing list.
public
getFunctions() : array<string|int, TwigFunction>
Return values
array<string|int, TwigFunction>getMarkedPlaces()
Returns marked places.
public
getMarkedPlaces(object $subject[, bool $placesNameOnly = true ][, string $name = null ]) : array<string|int, string>|array<string|int, int>
Parameters
- $subject : object
- $placesNameOnly : bool = true
- $name : string = null
Return values
array<string|int, string>|array<string|int, int>getMetadata()
Returns the metadata for a specific subject.
public
getMetadata(object $subject, string $key[, string|Transition|null $metadataSubject = null ][, string $name = null ]) : mixed
Parameters
- $subject : object
- $key : string
- $metadataSubject : string|Transition|null = null
-
Use null to get workflow metadata Use a string (the place name) to get place metadata Use a Transition instance to get transition metadata
- $name : string = null
getNodeVisitors()
Returns the node visitor instances to add to the existing list.
public
getNodeVisitors() : array<string|int, NodeVisitorInterface>
Return values
array<string|int, NodeVisitorInterface>getOperators()
Returns a list of operators to add to the existing list.
public
getOperators() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —First array of unary operators, second array of binary operators
getTests()
Returns a list of tests to add to the existing list.
public
getTests() : array<string|int, TwigTest>
Return values
array<string|int, TwigTest>getTokenParsers()
Returns the token parser instances to add to the existing list.
public
getTokenParsers() : array<string|int, TokenParserInterface>
Return values
array<string|int, TokenParserInterface>hasMarkedPlace()
Returns true if the place is marked.
public
hasMarkedPlace(object $subject, string $placeName[, string $name = null ]) : bool
Parameters
- $subject : object
- $placeName : string
- $name : string = null