Exemple #1
0
 /**
  * 
  * @param unknown_type $type
  * @return Zing_MP3_Cache_Adapter_Interface
  */
 public static function factory($type = 'memcache')
 {
     if ($type == 'memcache') {
         self::$_instance = Zing_PA_Cache_Adapter_Memcache::getInstance();
     }
     return self::$_instance;
 }
Exemple #2
0
 public static function getInstance()
 {
     if (self::$_instance == null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }