mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
Allow parameter configuration on the Task configuration definition.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user