Class PhpArrayLoader
Loads a workflow definition from a PHP file. The PHP filename is built by concatenating the $path and the $workflowId values, adding the '.php' extension.
This file must return the workflow definition in the form of an associative array having the appropriate structure depending on the configured parser.
- yii\base\Object
- raoul2000\workflow\source\file\WorkflowDefinitionLoader
- raoul2000\workflow\source\file\PhpArrayLoader
Methods summary
public
array
|
#
loadDefinition( string $workflowId,
Loads and returns the workflow definition available as a PHP array in a file. If a parser has been configured, it is used to converte the array structure defined in the file, into the format expected by the WorkflowFileSource class. |
public
string
|
#
createFilename( string $workflowId )
Creates and returns the absolute filename of the PHP file that contains the workflow definition to load. |
Methods inherited from raoul2000\workflow\source\file\WorkflowDefinitionLoader
Properties summary
public
string
|
$path
path where the php file to load is located |
#
'@app/models'
|