/** * construct * * @param $server * A string containing the IP or URL to the database server. * @param $database * A string containing the name of the database for this connection. * @param $username * A string containing the username for the connection's security login. * @param $password * A string containing the password for the connection's security login. * @param $persistent * (optional) Setting to TRUE will enable persistent connections. [FALSE] */ public function __construct($server, $database, $username, $password, $persistent = false, $tablePrefix = '') { parent::__construct($server, $database, $username, $password, $persistent, $tablePrefix); // unset($this->server); // unset($this->database); // unset($this->username); // unset($this->password); // unset($this->persistent); // $this->addProperty('server', 'localhost'); // $this->addProperty('database', ''); // $this->addProperty('username', ''); // $this->addProperty('password', ''); // $this->addProperty('persistent', false); // $this->server = $server; // $this->database = $database; // $this->username = $username; // $this->password = $password; // $this->persistent = $persistent; }
/** * construct * * @param $server * A string containing the IP or URL to the database server. * @param $database * A string containing the name of the database for this connection. * @param $username * A string containing the username for the connection's security login. * @param $password * A string containing the password for the connection's security login. * @param $persistent * (optional) Setting to TRUE will enable persistent connections. [FALSE] */ public function __construct() { parent::__construct(); }