Esempio n. 1
0
 function __construct()
 {
     parent::__construct();
     spl_autoload_register("MS\\MSDb::AutoloadDriver");
     $this->Config = get::Config("Database");
     if ($this->Config["databaseType"] == "mysql") {
         if ($this->Config["driver"] === "pdo") {
             $this->Database = new MSPdo();
             $this->Database->connect($this->Config["server"], $this->Config["username"], $this->Config["password"], $this->Config["dbname"], $this->Config["port"]);
         } else {
             if ($this->Config["driver"] === "mysql") {
                 $this->Database = new MSMysql();
                 $this->Database->connect($this->Config["server"], $this->Config["username"], $this->Config["password"], $this->Config["dbname"], $this->Config["port"]);
             }
         }
     }
 }
Esempio n. 2
0
 function __construct()
 {
     $this->load = new MSLoad();
     parent::__construct();
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     require APPLICATION_PATH . "Config/Database.php";
     $this->db = new SQLite3(APPLICATION_PATH . "Databases/SQLite/" . $fileName);
 }
Esempio n. 4
0
 function __construct()
 {
     parent::__construct();
 }