/** * Pattern Singleton ; si l'instance n'a pas été démarrée, on la démarre... * Sinon, on renvoit l'objet déjà créé. * * @return Compile_Talus_TPL */ public static function getInstance() { if (is_null(self::$_instance)) { self::$_instance = new Talus_TPL_Cache(); } return self::$_instance; }
/** * Accessor pour le dossier de cache. * * @return string */ public function getCacheDir() { return $this->_cache->getDir(); }