예제 #1
0
	static public function create($group)
	{
		$id = self::generateId($group);
		$controller = new Job_Controller($id, $group);
		$controller->setValue('running', true);
		$controller->setProgress(0,'');
		return $controller;
	}
예제 #2
0
	public function jobStatusGetProgressAction()
	{
		if(!isset($_REQUEST['id']) || !($id = $_REQUEST['id']))
			return;

		$controller = Job_Controller::get($id);
		echo ISC_JSON::output($controller->getProgress());
	}
예제 #3
0
	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();
	}
예제 #4
0
	/**
	 * 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;
	}