-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathSWComponent.php
47 lines (47 loc) · 903 Bytes
/
SWComponent.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 components that needs to handle events
* fired by the simpleWorkflow behavior.
* Note that in most cases, this class is not used as the sW behavior is usually
* attached to a CActiveRecord object.
*/
class SWComponent extends CComponent
{
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)
{
}
}
?>