mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
Rollback awareness.
Tasks are aware if they are in rollbacks; they will be invoked only if they implement the new interface RollbackAware.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
class Task_SampleTask
|
||||
extends Mage_Task_TaskAbstract
|
||||
{
|
||||
public function getName()
|
||||
{
|
||||
return 'A Sample Task';
|
||||
}
|
||||
|
||||
public function run()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user