Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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