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"]); } } } }
function __construct() { $this->load = new MSLoad(); parent::__construct(); }
function __construct() { parent::__construct(); require APPLICATION_PATH . "Config/Database.php"; $this->db = new SQLite3(APPLICATION_PATH . "Databases/SQLite/" . $fileName); }
function __construct() { parent::__construct(); }