mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-08-25 21:00:18 +02:00
21 lines
494 B
PHP
21 lines
494 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 true;
|
|
}
|
|
} |