PHP 클래스 raoul2000\workflow\base\Status

저자: Raoul
상속: extends WorkflowBaseObject, implements raoul2000\workflow\base\StatusInterface
파일 보기 프로젝트 열기: raoul2000/yii2-workflow 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $config = [] ) Status constructor.
getId ( ) : string Returns the id of this status.
getLabel ( ) : string Returns the label for this status.
getTransitions ( )
getWorkflow ( )
getWorkflowId ( ) : string
isInitialStatus ( )

메소드 상세

__construct() 공개 메소드

To create a Status you must provide following values in the $config array passed as argument: - **id** : the id for this status. - **workflowId ** : the id of the workflow this status belongs to. Following values are optional : - **label** : human readable name for this status.
public __construct ( array $config = [] )
$config array

getId() 공개 메소드

Note that the status id returned must be unique inside the workflow it belongs to, but it doesn't have to be unique among all workflows.
public getId ( ) : string
리턴 string the id for this status

getLabel() 공개 메소드

Returns the label for this status.
public getLabel ( ) : string
리턴 string the label for this status. .

getTransitions() 공개 메소드

또한 보기: raoul2000\workflow\base\StatusInterface::getTransitions()
public getTransitions ( )

getWorkflow() 공개 메소드

또한 보기: raoul2000\workflow\base\StatusInterface::getWorkflow()
public getWorkflow ( )

getWorkflowId() 공개 메소드

public getWorkflowId ( ) : string
리턴 string the id of the workflow this status belongs to.

isInitialStatus() 공개 메소드

또한 보기: raoul2000\workflow\base\StatusInterface::isInitialStatus()
public isInitialStatus ( )