示例#1
0
文件: API.php 项目: nnnnathann/piwik
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
示例#2
0
文件: API.php 项目: Doluci/tomatocart
 public static function getInstance()
 {
     if (self::$instance == null) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }