PHP Класс raoul2000\workflow\source\file\PhpArrayLoader

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.
Наследование: extends WorkflowDefinitionLoader
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$path path where the php file to load is located

Открытые методы

Метод Описание
createFilename ( string $workflowId ) : string Creates and returns the absolute filename of the PHP file that contains the workflow definition to load.
loadDefinition ( string $workflowId, WorkflowFileSource $source ) : array Loads and returns the workflow definition available as a PHP array in a file.

Описание методов

createFilename() публичный Метод

Creates and returns the absolute filename of the PHP file that contains the workflow definition to load.
public createFilename ( string $workflowId ) : string
$workflowId string
Результат string the absolute file path of the workflow definition file

loadDefinition() публичный Метод

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 loadDefinition ( string $workflowId, WorkflowFileSource $source ) : array
$workflowId string
$source WorkflowFileSource
Результат array the workflow definition

Описание свойств

$path публичное свойство

path where the php file to load is located
public $path