/** * Singleton, returns instance * * @return Piwik_API_Proxy */ public static function getInstance() { if (self::$instance == null) { self::$instance = new self(); } return self::$instance; }
/** * Singleton, returns instance * * @return Piwik_API_Proxy */ public static function getInstance() { if (self::$instance == null) { $c = __CLASS__; self::$instance = new $c(); } return self::$instance; }