mirror of https://github.com/hauke68/Magallanes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
450 B
19 lines
450 B
<?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; |
|
} |
|
} |