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:
Andrs Montaez
2012-01-03 23:25:42 -02:00
parent 01cbd0e447
commit 9cf720c602
9 changed files with 70 additions and 23 deletions
@@ -0,0 +1,14 @@
<?php
class Task_SampleTask
extends Mage_Task_TaskAbstract
{
public function getName()
{
return 'A Sample Task';
}
public function run()
{
return true;
}
}