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:
@@ -2,14 +2,21 @@
|
||||
abstract class Mage_Task_TaskAbstract
|
||||
{
|
||||
protected $_config = null;
|
||||
protected $_inRollback = false;
|
||||
|
||||
public abstract function getName();
|
||||
|
||||
public abstract function run();
|
||||
|
||||
public final function __construct(Mage_Config $config)
|
||||
public final function __construct(Mage_Config $config, $inRollback = false)
|
||||
{
|
||||
$this->_config = $config;
|
||||
$this->_inRollback = $inRollback;
|
||||
}
|
||||
|
||||
public function inRollback()
|
||||
{
|
||||
return $this->_inRollback;
|
||||
}
|
||||
|
||||
public function init()
|
||||
|
||||
Reference in New Issue
Block a user