mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	Tasks are aware if they are in rollbacks; they will be invoked only if they implement the new interface RollbackAware.
		
			
				
	
	
		
			19 lines
		
	
	
		
			450 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			450 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
class Task_SampleTaskRollbackAware
 | 
						|
    extends Mage_Task_TaskAbstract
 | 
						|
    implements Mage_Task_Releases_RollbackAware
 | 
						|
{
 | 
						|
    public function getName()
 | 
						|
    {
 | 
						|
        if ($this->inRollback()) {
 | 
						|
            return 'A Sample Task aware of rollbacks [in rollback]';
 | 
						|
        } else {
 | 
						|
            return 'A Sample Task aware of rollbacks [not in rollback]';
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    public function run()
 | 
						|
    {
 | 
						|
        return true;
 | 
						|
    }
 | 
						|
} |