@@ -46,6 +46,11 @@ discard block |
||
| 46 | 46 | return $connection->close(); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $server |
|
| 51 | + * @param string $username |
|
| 52 | + * @param string $password |
|
| 53 | + */ |
|
| 49 | 54 | public function connect($server = null, $username = null, $password = null, $newLink = false, $clientFlags = 0) |
| 50 | 55 | { |
| 51 | 56 | if ($server === null) $server = ini_get("mysql.default_host"); |
@@ -314,6 +319,9 @@ discard block |
||
| 314 | 319 | // @todo |
| 315 | 320 | } |
| 316 | 321 | |
| 322 | + /** |
|
| 323 | + * @param string $query |
|
| 324 | + */ |
|
| 317 | 325 | public function query($query, Connection $linkIdentifier = null) |
| 318 | 326 | { |
| 319 | 327 | $connection = $this->manager->getOpenConnectionOrFail($linkIdentifier); |
@@ -347,6 +355,9 @@ discard block |
||
| 347 | 355 | return $row[$field]; |
| 348 | 356 | } |
| 349 | 357 | |
| 358 | + /** |
|
| 359 | + * @param string $databaseName |
|
| 360 | + */ |
|
| 350 | 361 | public function selectDb($databaseName, Connection $linkIdentifier = null) |
| 351 | 362 | { |
| 352 | 363 | $connection = $this->manager->getOpenConnectionOrFail($linkIdentifier); |