Abstract class for easier implementation of the \Gems_Task for usage with \Gems_Task_TaskRunnerBatch providing some convenience methods to loading and translation.

package Gems
subpackage Task
copyright Copyright (c) 2011 Erasmus MC
deprecated since version 1.6.2 Moved to \MUtil_Task_TaskAbstract (that uses $this->batch, not $this->_batch)
license New BSD License
since Class available since version 1.5.2

 Methods

Should handle execution of the task, taking as much (optional) parameters as needed

execute() 

The parameters should be optional and failing to provide them should be handled by the task

Return true when the task has finished.

isFinished() : boolean

Returns

boolean

Sets the batch this task belongs to

setBatch(\MUtil_Task_TaskBatch $batch) 

This method will be called from the \Gems_Task_TaskRunnerBatch upon execution of the task. It allows the task to communicate with the batch queue.

Parameters

$batch

\MUtil_Task_TaskBatch

 Properties

 

$loader

$loader : \Gems_Loader

Default

 

$translate

$translate : \Zend_Translate_Adapter

Default

 

$_batch

$_batch : \MUtil_Task_TaskBatch

Default