Exemple #1
0
 static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemple #2
0
 function &getConnection($i, $groups = array(), $wiki = false)
 {
     if (!isset($this->conn)) {
         $this->conn = DatabaseNo::getInstance();
     }
     return $this->conn;
 }