mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			547 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			547 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace Task;
 | 
						|
 | 
						|
use Mage\Task\AbstractTask;
 | 
						|
 | 
						|
class TaskWithParameters extends AbstractTask
 | 
						|
{
 | 
						|
    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;
 | 
						|
    }
 | 
						|
} |