mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-28 10:10:08 +02:00
Tasks are aware if they are in rollbacks; they will be invoked only if they implement the new interface RollbackAware.
19 lines
450 B
PHP
19 lines
450 B
PHP
<?php
|
|
class Task_SampleTaskRollbackAware
|
|
extends Mage_Task_TaskAbstract
|
|
implements Mage_Task_Releases_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;
|
|
}
|
|
} |