public function FrxPDO::parseConnectionStr in Forena Reports 7.4
1 call to FrxPDO::parseConnectionStr()
- FrxPDO::searchTableColumns in plugins/
FrxPDO.inc
File
- plugins/
FrxPDO.inc, line 74 - General database engine used to do sql queries.
Class
- FrxPDO
- @file General database engine used to do sql queries.
Code
public function parseConnectionStr() {
$uri = @$this->conf['uri'];
@(list($prot, $conn) = explode(':', $uri, 2));
$conn = str_replace(';', ' ', $conn);
$info = array();
foreach (explode(' ', $conn) as $pairs) {
if (strpos($pairs, '=') !== FALSE) {
list($key, $value) = @explode('=', $pairs, 2);
$info[trim($key)] = trim($value);
}
}
return $info;
}