Documentation

WorkflowExtension extends AbstractExtension
in package

FinalYes

WorkflowExtension.

Tags
author

Grégoire Pineau lyrixx@lyrixx.info

author

Carlos Pereira De Amorim carlos@shauri.fr

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

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
TransitionBlockerList

canTransition()

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
bool

getEnabledTransition()

public getEnabledTransition(object $subject, string $transition[, string $name = null ]) : Transition|null
Parameters
$subject : object
$transition : string
$name : string = null
Return values
Transition|null

getEnabledTransitions()

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>

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

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

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
Return values
bool

        
On this page

Search results