Пример #1
0
 public static function getInstance($name, $host, $user, $pass)
 {
     if (!isset(self::$instance)) {
         $nameClass = __CLASS__;
         self::$instance = new $nameClass();
         include "ClassConnect.php";
         $con = new db_mysql();
         self::$status = $con->conectar($name, $host, $user, $pass);
     }
     return self::$instance;
 }