Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 1
41.67%
5 / 12
CRAP
41.67%
5 / 12
SWActiveRecord
0.00%
0 / 1
41.67%
5 / 12
40.58
41.67%
5 / 12
 onEnterWorkflow($event)
0.00%
0 / 1
2
0.00%
0 / 1
 enterWorkflow($event)
100.00%
1 / 1
1
100.00%
1 / 1
 onBeforeTransition($event)
0.00%
0 / 1
2
0.00%
0 / 1
 beforeTransition($event)
100.00%
1 / 1
1
100.00%
1 / 1
 onProcessTransition($event)
0.00%
0 / 1
2
0.00%
0 / 1
 processTransition($event)
100.00%
1 / 1
1
100.00%
1 / 1
 onAfterTransition($event)
0.00%
0 / 1
2
0.00%
0 / 1
 afterTransition($event)
100.00%
1 / 1
1
100.00%
1 / 1
 onFinalStatus($event)
0.00%
0 / 1
2
0.00%
0 / 1
 finalStatus($event)
100.00%
1 / 1
1
100.00%
1 / 1
 onLeaveWorkflow($event)
0.00%
0 / 1
2
0.00%
0 / 1
 leaveWorkflow($event)
0.00%
0 / 1
2
0.00%
0 / 1
<?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)
{
}
}