PHP Class raoul2000\workflow\source\file\DefaultArrayParser
Example :
[
'initialStatusId' => 'draft',
'status' => [
'draft' => [
'label' => 'Draft State'
'transition' => 'published'
],
'published' => [
'transition' => ['draft','published']
],
'archived'
]
]
Afficher le fichier
Open project: raoul2000/yii2-workflow
Class Usage Examples
Méthodes publiques
Свойство |
Type |
Description |
|
$validate |
|
when TRUE, the parse method will also perform some validations |
|
Méthodes publiques
Méthode |
Description |
|
parse ( string $wId, array $definition, raoul2000\workflow\source\file\WorkflowFileSource $source ) : array |
Parse a workflow defined as a PHP Array. |
|
Method Details
The workflow definition passed as argument is turned into an array that can be
used by the WorkflowFileSource components.
public parse ( string $wId, array $definition, raoul2000\workflow\source\file\WorkflowFileSource $source ) : array |
$wId |
string |
|
$definition |
array |
|
$source |
raoul2000\workflow\source\file\WorkflowFileSource |
|
Résultat |
array |
The parse workflow array definition |
Property Details
$validate public_oe property
when TRUE, the parse method will also perform some validations