__construct() public method

Constructor: Opens the connection to the database
public __construct ( boolean $connect = true, string $database = null, string $server = null, string $username = null, string $password = null, string $charset = null )
$connect boolean (Optional) Auto-connect when object is created
$database string (Optional) Database name
$server string (Optional) Host address
$username string (Optional) User name
$password string (Optional) Password
$charset string (Optional) Character set
Ejemplo n.º 1
0
 function __construct($connect = true, $database = null, $server = null, $username = null, $password = null, $charset = "utf8", $port = null)
 {
     parent::__construct($connect, $database, $server, $username, $password, $charset, $port);
     if (parent::Error()) {
         parent::Kill();
     }
     $this->ErrorMsgs = array();
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 3
0
 /**
  * Constructor. Sets driver to mysqli and turns on prepared statments. 
  */
 function __construct()
 {
     parent::__construct();
     $this->driver = 'mysqli';
     $this->prepared = true;
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     $this->setJobAtRandom();
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_NAME, array(\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => TRUE));
 }
 public function __construct()
 {
     parent::__construct();
     $this->config = $this->getConfig();
 }