Example #1
0
 public function __construct()
 {
     parent::__construct();
 }
Example #2
0
File: db.php Project: dapepe/tymio
 public function __construct($server, $dbname, $username, $password)
 {
     if (!function_exists('pg_connect')) {
         throw new \Exception('PostgreSQL extension not available');
     }
     if ($server != '') {
         list($host, $port) = \Zeyon\extractServer($server, 5432);
         $server = 'host=' . quote($host) . " port={$port} ";
     }
     $this->db = pg_connect($server . 'user='******' password='******' dbname=' . quote($dbname));
     pg_set_client_encoding($this->db, 'UTF8');
     pg_query($this->db, 'SET standard_conforming_strings = on');
     parent::__construct();
 }
Example #3
0
 public function __construct()
 {
     /* Construct Conn */
     parent::__construct();
 }