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
]
]
파일 보기
프로젝트 열기: 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. |
|
메소드 상세
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 |
Validates an array that contains a workflow definition.
프로퍼티 상세
when TRUE, the parse method performs some validations