Ejemplo n.º 1
0
 /**
  * @return mySQL|null
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new mySQL();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 public function configure($dbServer, $userName, $password, $db)
 {
     $this->db = $db;
     $this->dbServer = $dbServer;
     $this->dbPassword = $password;
     $this->dbUsername = $userName;
     self::$instance = $this;
 }