Class DefaultArrayParser
Implements a parser for default PHP array formatted workflow.
Example :
[ 'initialStatusId' => 'draft', 'status' => [ 'draft' => [ 'label' => 'Draft State' 'transition' => 'published' ], 'published' => [ 'transition' => ['draft','published'] ], 'archived' ] ]
- yii\base\Object
- raoul2000\workflow\source\file\WorkflowArrayParser
- raoul2000\workflow\source\file\DefaultArrayParser
Methods summary
public
array
|
#
parse( string $wId, array $definition,
Parse a workflow defined as a PHP Array. |
Methods inherited from raoul2000\workflow\source\file\WorkflowArrayParser
Properties summary
public
boolean
|
$validate
when TRUE, the parse method will also perform some validations |
#
true
|