1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-16 19:14:17 +02:00

- removed NException, ability of catching PHP error moved to DibiDriverException

This commit is contained in:
David Grudl
2008-03-04 14:01:22 +00:00
parent 1459c6c95d
commit 2632953541
8 changed files with 125 additions and 162 deletions

View File

@@ -58,7 +58,7 @@ class DibiConnection extends NObject
/**
* Creates object and (optionally) connects to a database.
*
* @param array|string connection parameters
* @param array|string|IMap connection parameters
* @throws DibiException
*/
public function __construct($config)
@@ -66,6 +66,9 @@ class DibiConnection extends NObject
// DSN string
if (is_string($config)) {
parse_str($config, $config);
} elseif ($config instanceof IMap) {
$config = $config->toArray();
}
if (!isset($config['driver'])) {