1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-08-25 21:00:18 +02:00
Magallanes/docs/example-config/.mage/tasks/TaskWithParameters.php
2012-10-24 19:13:47 -02:00

22 lines
520 B
PHP

<?php
class Task_TaskWithParameters
extends Mage_Task_TaskAbstract
{
public function getName()
{
$booleanOption = $this->getParameter('booleanOption', false);
if ($booleanOption) {
return 'A Sample Task With Parameters [booleanOption=true]';
} else {
return 'A Sample Task With Parameters [booleanOption=false]';
}
}
public function run()
{
//throw new Mage_Task_SkipException;
//return false;
return true;
}
}