示例#1
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new MySqlDb();
     }
     return self::$instance;
 }
示例#2
0
文件: mysql.php 项目: rbraband/LouCes
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }