PHP 클래스 raoul2000\workflow\validation\WorkflowScenario

파일 보기 프로젝트 열기: raoul2000/yii2-workflow 1 사용 예제들

공개 메소드들

메소드 설명
changeStatus ( string $start, string $end ) : string Returns the scenario name for a change status action.
enterStatus ( string $status = self::ANY_STATUS ) : string Returns the scenario name for a enter status action.
enterWorkflow ( string $workflowId = self::ANY_WORKFLOW ) : string Returns the scenario name for a enter workflow action.
leaveStatus ( string $status = self::ANY_STATUS ) : string Returns the scenario name for a leave status action.
leaveWorkflow ( string $workflowId = self::ANY_WORKFLOW ) : string Returns the scenario name for a leave workflow action.
match ( string $scenario1, string $scenario2 ) : boolean Test if 2 scenario match.

메소드 상세

changeStatus() 공개 정적인 메소드

Returns the scenario name for a change status action.
public static changeStatus ( string $start, string $end ) : string
$start string the absolute start status Id
$end string the absolute end status Id
리턴 string the scenario name

enterStatus() 공개 정적인 메소드

If no argument is passed to this method, it returns a scenario name that matched any status entrance.
public static enterStatus ( string $status = self::ANY_STATUS ) : string
$status string the aboslute id of the entered status
리턴 string the scenario name

enterWorkflow() 공개 정적인 메소드

If no argument is passed to this method, the scenario name returned matches enter in any workflow.
public static enterWorkflow ( string $workflowId = self::ANY_WORKFLOW ) : string
$workflowId string the workflow id
리턴 string the scenario name

leaveStatus() 공개 정적인 메소드

If no argument is passed to this method, it returns a scenario name that matched any status leave.
public static leaveStatus ( string $status = self::ANY_STATUS ) : string
$status string the aboslute id of the status that is left
리턴 string the scenario name

leaveWorkflow() 공개 정적인 메소드

If no argument is passed to this method, the scenario name returned matches leaving any workflow.
public static leaveWorkflow ( string $workflowId = self::ANY_WORKFLOW ) : string
$workflowId string the workflow id
리턴 string the scenario name

match() 공개 정적인 메소드

Test if 2 scenario match.
public static match ( string $scenario1, string $scenario2 ) : boolean
$scenario1 string scenario name
$scenario2 string scenario name
리턴 boolean TRUE if both scenario names match, FALSE otherwise