PHP 인터페이스 raoul2000\workflow\events\IEventSequence

An event sequence is an array of workflow events that occur on three circumstances for which a method is called :
  • createEnterWorkflowSequence : when a model enters into a workflow
  • createChangeStatusSequence : when a model status change from a non empty status to another one
  • createLeaveWorkflowSequence : when a model leaves a workflow
For each one of these method, the implementation must returns an array of Workflow events that extend \raoul2000\workflow\events\WorkflowEvent. Two event sequence implementations are provided : {@link \raoul2000\workflow\events\BasicEventSequence} and {@link \raoul2000\workflow\events\ExtendedEventSequence}
또한 보기: raoul2000\workflow\events\WorkflowEvent
파일 보기 프로젝트 열기: raoul2000/yii2-workflow

공개 메소드들

메소드 설명
createChangeStatusSequence ( raoul2000\workflow\base\TransitionInterface $transition, Object $sender ) : array Creates and returns the sequence of events that occurs when a model changes from an existing status to another existing status.
createEnterWorkflowSequence ( raoul2000\workflow\base\StatusInterface $initalStatus, Object $sender ) : array Creates and returns the sequence of events that occurs when a model enters into a workflow.
createLeaveWorkflowSequence ( raoul2000\workflow\base\StatusInterface $finalStatus, Object $sender ) : array Creates and returns the sequence of events that occurs when a model leaves a workflow.

메소드 상세

createChangeStatusSequence() 공개 메소드

Creates and returns the sequence of events that occurs when a model changes from an existing status to another existing status.
public createChangeStatusSequence ( raoul2000\workflow\base\TransitionInterface $transition, Object $sender ) : array
$transition raoul2000\workflow\base\TransitionInterface the transition representing the status change
$sender Object
리턴 array

createEnterWorkflowSequence() 공개 메소드

Creates and returns the sequence of events that occurs when a model enters into a workflow.
public createEnterWorkflowSequence ( raoul2000\workflow\base\StatusInterface $initalStatus, Object $sender ) : array
$initalStatus raoul2000\workflow\base\StatusInterface the status used to enter into the workflow (the initial status)
$sender Object
리턴 array

createLeaveWorkflowSequence() 공개 메소드

Creates and returns the sequence of events that occurs when a model leaves a workflow.
public createLeaveWorkflowSequence ( raoul2000\workflow\base\StatusInterface $finalStatus, Object $sender ) : array
$finalStatus raoul2000\workflow\base\StatusInterface the status that the model last visited in the workflow it is leaving (the final status)
$sender Object
리턴 array