PHP Class raoul2000\workflow\events\ExtendedEventSequence

For example, when entering into a workflow, the generic event **EnterWorkflow()** is added to the sequence allowing the developer to create a handler invoked each time a model enters into a workflow.
See also: raoul2000\workflow\events\IEventSequence
Inheritance: extends yii\base\Object, implements raoul2000\workflow\events\IEventSequence
Mostra file Open project: raoul2000/yii2-workflow

Public Methods

Method Description
createChangeStatusSequence ( $transition, $sender ) Produces the following event sequence when a model changes from status A to status B.
createEnterWorkflowSequence ( $initalStatus, $sender ) Produces the following event sequence when a model enters a workflow.
createLeaveWorkflowSequence ( $finalStatus, $sender ) Produces the following event sequence when a model leaves a workflow.

Method Details

createChangeStatusSequence() public method

- beforeLeaveStatus(*) - beforeLeaveStatus(A) - beforeChangeStatusFrom(A)to(B) - beforeEnterStatus(*) - beforeEnterStatus(B) - afterLeaveStatus(*) - afterLeaveStatus(A) - afterChangeStatusFrom(A)to(B) - afterEnterStatus(*) - afterEnterStatus(B)
See also: raoul2000\workflow\events\IEventSequence::createChangeStatusSequence()
public createChangeStatusSequence ( $transition, $sender )

createEnterWorkflowSequence() public method

- beforeEnterWorkflow(*) - beforeEnterWorkflow(WID) - beforeEnterStatus(*) - beforeEnterStatus(ID) - afterEnterWorkflow(*) - afterEnterWorkflow(WID) - afterEnterStatus(*) - afterEnterStatus(ID) Where WID is the workflow Id and ID is the status Id.
See also: raoul2000\workflow\events\IEventSequence::createEnterWorkflowSequence()
public createEnterWorkflowSequence ( $initalStatus, $sender )

createLeaveWorkflowSequence() public method

- beforeLeaveStatus(*) - beforeLeaveStatus(ID) - beforeLeaveWorkflow(*) - beforeLeaveWorkflow(WID) - afterLeaveStatus(*) - afterLeaveStatus(ID) - afterLeaveWorkflow(*) - afterLeaveWorkflow(WID)
See also: raoul2000\workflow\events\IEventSequence::createLeaveWorkflowSequence()
public createLeaveWorkflowSequence ( $finalStatus, $sender )