/** * Returns an instance of tx_fbmagento_cache * * Singleton pattern implementation * * @param Zend_Cache_Core * @param Zend_Db_Adapter_Abstract * @return Flagbit_Settings Provides a fluent interface */ public static function getInstance($type) { if (null === self::$_instance) { self::$_instance = new self(); self::$_instance->init($type); } return self::$_instance; }
/** * get Cachehandler * * @return tx_fbmagento_cache */ protected function getCache() { return tx_fbmagento_cache::getInstance($this->cache); }