Esempio n. 1
0
 /**
  * Returns singleton
  *
  * @return Piwik_Tracker_Config
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 2
0
 /**
  * Returns singleton
  *
  * @return Piwik_Tracker_Config
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }