Пример #1
0
 /**
  * the singleton pattern
  *
  * @return Felamimail_Controller_Cache_Message
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         $adapter = Tinebase_Core::getConfig()->messagecache;
         $adapter = empty($adapter) ? 'sql' : $adapter;
         $classname = 'Felamimail_Controller_Cache_' . ucfirst($adapter) . '_Message';
         self::$_instance = $classname::getInstance();
     }
     return self::$_instance;
 }
 /**
  * the singleton pattern
  *
  * @return Felamimail_Controller_Cache_Message
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new Felamimail_Controller_Cache_Message();
     }
     return self::$_instance;
 }