Exemplo n.º 1
0
	/**
	 * Queues a new export background job, and stores a handle to the
	 * job's controller accessible via $this->exportTask().
	 *
	 * @return object A controller handle to the queued export job.
	 */
	public function pushExportTask()
	{
		$controller = Job_Controller::create($this->getId());
		$this->setCurrentExportId($controller->getId());

		Interspire_TaskManager::createTask('shoppingcomparison',
			'Job_ShoppingComparison_RunExport',
			array("module" => $this->getId(),
				"controller" => $controller->getId()));

		$this->logSuccess(GetLang('ShoppingComparisonLogNewExportJob'));

		return $controller;
	}