public function FrxPostgres::parseConnectionStr in Forena Reports 7.4
1 call to FrxPostgres::parseConnectionStr()
- FrxPostgres::searchTableColumns in plugins/
FrxPostgres.inc
File
- plugins/
FrxPostgres.inc, line 223 - Postgres specific driver that takes advantage of native XML support
Class
- FrxPostgres
- @file Postgres specific driver that takes advantage of native XML support
Code
public function parseConnectionStr() {
$uri = @$this->conf['uri'];
$uri = str_replace(';', ' ', $uri);
$info = array();
foreach (explode(' ', $uri) as $pairs) {
if (strpos($pairs, '=') !== FALSE) {
list($key, $value) = @explode('=', $pairs, 2);
$info[trim($key)] = trim($value);
}
}
return $info;
}