PHP 클래스 raoul2000\workflow\source\file\DefaultArrayParser
Example :
[
'initialStatusId' => 'draft',
'status' => [
'draft' => [
'label' => 'Draft State'
'transition' => 'published'
],
'published' => [
'transition' => ['draft','published']
],
'archived'
]
]
파일 보기
프로젝트 열기: raoul2000/yii2-workflow
1 사용 예제들
공개 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$validate |
|
when TRUE, the parse method will also perform some validations |
|
공개 메소드들
메소드 |
설명 |
|
parse ( string $wId, array $definition, raoul2000\workflow\source\file\WorkflowFileSource $source ) : array |
Parse a workflow defined as a PHP Array. |
|
메소드 상세
The workflow definition passed as argument is turned into an array that can be
used by the WorkflowFileSource components.
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 |
프로퍼티 상세
when TRUE, the parse method will also perform some validations