static public function create($group) { $id = self::generateId($group); $controller = new Job_Controller($id, $group); $controller->setValue('running', true); $controller->setProgress(0,''); return $controller; }
public function jobStatusGetProgressAction() { if(!isset($_REQUEST['id']) || !($id = $_REQUEST['id'])) return; $controller = Job_Controller::get($id); echo ISC_JSON::output($controller->getProgress()); }
protected function initialize($exporter, $controllerId) { $controller = Job_Controller::get($controllerId); $this->exporter = $exporter; $this->controller = $controller; $this->taskId = $exporter->getId(); $this->cache = Interspire_KeyStore_Mysql::instance(); }
/** * Returns a job controller to the current running export task. */ public function exportTask() { if($this->getCurrentExportId()) return Job_Controller::get($this->getCurrentExportId()); else return null; }