PHP 클래스 raoul2000\workflow\source\file\WorkflowArrayParser

The normalized form implements following rules : - key 'initialStatusId' : (mandatory) must contain a status Id defined in the status Id list - key 'status' : (mandatory) status definition list - its value is an array where each key is a status Id and each value is the status configuration - all status Ids are absolute TBD example : [ 'initialStatusId' => 'WID/A' 'status' => [ 'WID/A' => [ 'transition' => [ 'WID/B' => [] 'WID/C' => [] ] ] 'WID/B' => null 'WID/C' => null ] ]
상속: extends yii\base\Object
파일 보기 프로젝트 열기: raoul2000/yii2-workflow

공개 프로퍼티들

프로퍼티 타입 설명
$validate when TRUE, the parse method performs some validations

공개 메소드들

메소드 설명
parse ( string $wId, array $definition, raoul2000\workflow\source\file\WorkflowFileSource $source ) : array Parse a workflow defined as a PHP Array.
validate ( string $wId, IWorkflowSource $source, string $initialStatusId, array $startStatusIdIndex, array $endStatusIdIndex ) Validates an array that contains a workflow definition.

메소드 상세

parse() 추상적인 공개 메소드

The workflow definition passed as argument is turned into an array that can be used by the WorkflowFileSource components.
abstract public parse ( string $wId, array $definition, raoul2000\workflow\source\file\WorkflowFileSource $source ) : array
$wId string
$definition array
$source raoul2000\workflow\source\file\WorkflowFileSource
리턴 array The parse workflow array definition

validate() 공개 메소드

Validates an array that contains a workflow definition.
public validate ( string $wId, IWorkflowSource $source, string $initialStatusId, array $startStatusIdIndex, array $endStatusIdIndex )
$wId string
$source IWorkflowSource
$initialStatusId string
$startStatusIdIndex array
$endStatusIdIndex array

프로퍼티 상세

$validate 공개적으로 프로퍼티

when TRUE, the parse method performs some validations
public $validate