mirror of https://github.com/hauke68/Magallanes
Andrés Montañez
10 years ago
4 changed files with 26 additions and 37 deletions
@ -1,23 +1,22 @@
|
||||
<?php |
||||
namespace Task; |
||||
|
||||
use Mage\Task\AbstractTask; |
||||
use Mage\Task\Releases\RollbackAware; |
||||
|
||||
class SampleTaskRollbackAware extends AbstractTask implements RollbackAware |
||||
{ |
||||
public function getName() |
||||
{ |
||||
if ($this->inRollback()) { |
||||
return 'A Sample Task aware of rollbacks [in rollback]'; |
||||
} else { |
||||
return 'A Sample Task aware of rollbacks [not in rollback]'; |
||||
} |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
return true; |
||||
} |
||||
} |
||||
|
||||
<?php |
||||
namespace Task; |
||||
|
||||
use Mage\Task\AbstractTask; |
||||
use Mage\Task\Releases\RollbackAware; |
||||
|
||||
class SampleTaskRollbackAware extends AbstractTask implements RollbackAware |
||||
{ |
||||
public function getName() |
||||
{ |
||||
if ($this->inRollback()) { |
||||
return 'A Sample Task aware of rollbacks [in rollback]'; |
||||
} else { |
||||
return 'A Sample Task aware of rollbacks [not in rollback]'; |
||||
} |
||||
} |
||||
|
||||
public function run() |
||||
{ |
||||
return true; |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue