Beispiel #1
0
 private function __construct()
 {
     // Get db configuration and then connect
     $dsn = DBConfig::dbVars();
     $this->dbconn =& DB::Connect($dsn, array());
     if (PEAR::isError($this->dbconn)) {
         throw new Exception('Unable to connect to the database');
     }
 }