/** * the singleton pattern * * @return Felamimail_Controller_Cache_Folder */ public static function getInstance() { if (self::$_instance === NULL) { self::$_instance = new Felamimail_Controller_Cache_Folder(); } return self::$_instance; }
/** * the singleton pattern * * @return Felamimail_Controller_Cache_Folder */ public static function getInstance() { if (self::$_instance === NULL) { $adapter = Tinebase_Core::getConfig()->messagecache; $adapter = empty($adapter) ? 'sql' : $adapter; $classname = 'Felamimail_Controller_Cache_' . ucfirst($adapter) . '_Folder'; self::$_instance = $classname::getInstance(); } return self::$_instance; }