PHP Class raoul2000\workflow\source\file\DefaultArrayParser

Example :
[
  'initialStatusId' => 'draft',
  'status' => [
      'draft'     => [
          'label'      => 'Draft State'
          'transition' => 'published'
      ],
      'published' => [
          'transition' => ['draft','published']
      ],
      'archived'
  ]
]
Inheritance: extends WorkflowArrayParser
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

parse() public méthode

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
public $validate