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.
20 lines
451 B
20 lines
451 B
13 years ago
|
<?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()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
}
|