mirror of https://github.com/hauke68/Magallanes
Andrés Montañez
13 years ago
8 changed files with 81 additions and 18 deletions
@ -0,0 +1,20 @@ |
|||||||
|
<?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; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue