예제 #1
0
파일: mySQL.php 프로젝트: Gecata-/PHP
 /**
  * @return mySQL|null
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new mySQL();
     }
     return self::$instance;
 }
예제 #2
0
 public function configure($dbServer, $userName, $password, $db)
 {
     $this->db = $db;
     $this->dbServer = $dbServer;
     $this->dbPassword = $password;
     $this->dbUsername = $userName;
     self::$instance = $this;
 }