db->hostname};" ."port=5432;" ."dbname={$config_local->db->database};" ."user={$config_local->db->username};" ."password={$config_local->db->password}"; parent::__construct($dsn); } else{ if(is_string($DSN)) { parent::__construct($DSN); } else{ $dsn = "pgsql:host={$DSN['host']};" ."port={$DSN['port']};" ."dbname={$DSN['db']};" ."user={$DSN['user']};" ."password={$DSN['pwd']}"; parent::__construct($dsn); } } } }