Fist step to #4
This commit is contained in:
Regular → Executable
+2
-2
@@ -25,11 +25,11 @@ class Connections {
|
|||||||
return self::$_connections;
|
return self::$_connections;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function add_connection($pdo, $name = 'default') {
|
public static function addConnection($pdo, $name = 'default') {
|
||||||
self::getInstance()->connections[$name] = $pdo;
|
self::getInstance()->connections[$name] = $pdo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function get_connection($name = 'default') {
|
public static function getConnection($name = 'default') {
|
||||||
return self::getInstance()->connections[$name];
|
return self::getInstance()->connections[$name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user