Beispiel #1
0
	private function __construct($id, $addGroup=null)
	{
		$this->controllerId = $id;
		$this->keystore = Interspire_KeyStore_Mysql::instance();

		if($addGroup)
			$this->addToGroup($addGroup);
	}
Beispiel #2
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();
	}
Beispiel #3
0
	/**
	* Class constructor
	*
	* @return Interspire_KeyStore_Mysql
	*/
	public function __construct()
	{
		self::$_instance = $this;
		$this->db = $GLOBALS['ISC_CLASS_DB'];
	}
	/**
	 * Constructs the parent class and sets defaults.
	 *
	 * @return Isc_ShoppingComparison
	 */
	public function __construct()
	{
		// the id and the type must be set before constructing
		$this->setId(strtolower(get_class($this)));
		$this->setType('shoppingcomparison');

		// construct
		parent::__construct();

		// now set name and help-text
		$this->setName($this->name());
		$this->setHelpText($this->helpText());

		// access to the db class
		$this->db = getClass('Isc_Admin_Engine')->db;

		// keystore
		$this->cache = Interspire_KeyStore_Mysql::instance();
	}