/** * * @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; }
public static function getInstance() { if (self::$_instance == null) { self::$_instance = new self(); } return self::$_instance; }