Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 23 additions & 47 deletions SWActiveRecord.php
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
<?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)
{
}
}
?>
<?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) { }
}
Loading