コード例 #1
0
ファイル: CampCache.php プロジェクト: sourcefabric/newscoop
 /**
  * Singleton function that returns the global class object.
  *
  * @return CampCache
  */
 public static function singleton()
 {
     if (is_null(self::$m_instance)) {
         $preferencesService = \Zend_Registry::get('container')->getService('system_preferences_service');
         self::$m_instance = new CampCache($preferencesService->DBCacheEngine);
     }
     return self::$m_instance;
 }
コード例 #2
0
ファイル: CampCache.php プロジェクト: nistormihai/Newscoop
 /**
  * Singleton function that returns the global class object.
  *
  * @return CampCache
  */
 public static function singleton()
 {
     if (is_null(self::$m_instance)) {
         self::$m_instance = new CampCache(SystemPref::Get('DBCacheEngine'));
     }
     return self::$m_instance;
 } // fn singleton