forked from raoul2000/simpleWorkflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSWActiveRecord.php
47 lines (47 loc) · 947 Bytes
/
SWActiveRecord.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* 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
*/
class SWActiveRecord extends CActiveRecord
{
public function onEnterWorkflow($event)
{
}
public function enterWorkflow($event)
{
}
public function onBeforeTransition($event)
{
}
public function beforeTransition($event)
{
}
public function onProcessTransition($event)
{
}
public function processTransition($event)
{
}
public function onAfterTransition($event)
{
}
public function afterTransition($event)
{
}
public function onFinalStatus($event)
{
}
public function finalStatus($event)
{
}
public function onLeaveWorkflow($event)
{
}
public function leaveWorkflow($event)
{
}
}
?>