| @@ 50-53 (lines=4) @@ | ||
| 47 | * @return bool `true` if correctly changed |
|
| 48 | */ |
|
| 49 | public static function defaultTo($name){ |
|
| 50 | if (isset(self::$connections[$name])){ |
|
| 51 | self::$current = $name; |
|
| 52 | return true; |
|
| 53 | } else return false; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| @@ 65-68 (lines=4) @@ | ||
| 62 | if ($name === null) { |
|
| 63 | foreach (self::$connections as $conn) $conn->close(); |
|
| 64 | return true; |
|
| 65 | } else if (isset(self::$connections[$name])){ |
|
| 66 | self::$connections[$name]->close(); |
|
| 67 | return true; |
|
| 68 | } else return false; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|