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
파일 보기 프로젝트 열기: raoul2000/yii2-workflow

공개 프로퍼티들

프로퍼티 타입 설명
$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