A simple workflow behavior for Yii ActiveRecord
 All Data Structures Files Functions Variables Pages
SWActiveRecord Class Reference
Inheritance diagram for SWActiveRecord:

Public Member Functions

 onEnterWorkflow ($event)
 
 enterWorkflow ($event)
 
 onBeforeTransition ($event)
 
 beforeTransition ($event)
 
 onProcessTransition ($event)
 
 processTransition ($event)
 
 onAfterTransition ($event)
 
 afterTransition ($event)
 
 onFinalStatus ($event)
 
 finalStatus ($event)
 
 onLeaveWorkflow ($event)
 
 leaveWorkflow ($event)
 

Detailed Description

This is the base class for all AR models that needs to handle events fired by the simpleWorkflow behavior. Handling simpleWorkflow events can also be achieved by creating a behavior that inherits from SWActiveRecordBehavior and overload default event handlers

Member Function Documentation

afterTransition (   $event)
beforeTransition (   $event)
enterWorkflow (   $event)
finalStatus (   $event)
leaveWorkflow (   $event)
onAfterTransition (   $event)
onBeforeTransition (   $event)
onEnterWorkflow (   $event)
onFinalStatus (   $event)
onLeaveWorkflow (   $event)
onProcessTransition (   $event)
processTransition (   $event)

The documentation for this class was generated from the following file: