@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | define('MYSQL_CLIENT_INTERACTIVE', MYSQLI_CLIENT_INTERACTIVE); |
| 8 | 8 | define('MYSQL_CLIENT_SSL', MYSQLI_CLIENT_SSL); |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param string $hostname |
|
| 12 | + */ |
|
| 10 | 13 | function mysql_connect( |
| 11 | 14 | $hostname = null, |
| 12 | 15 | $username = null, |
@@ -269,6 +272,9 @@ discard block |
||
| 269 | 272 | return mysqli_fetch_row($result); |
| 270 | 273 | } |
| 271 | 274 | |
| 275 | + /** |
|
| 276 | + * @param mysqli_result $result |
|
| 277 | + */ |
|
| 272 | 278 | function mysql_fetch_array($result) /* : array|null */ |
| 273 | 279 | { |
| 274 | 280 | if (\Dshafik\MySQL::checkValidResult($result, __FUNCTION__)) { |
@@ -535,6 +541,9 @@ discard block |
||
| 535 | 541 | public static $last_connection = null; |
| 536 | 542 | public static $connections = []; |
| 537 | 543 | |
| 544 | + /** |
|
| 545 | + * @param string $func |
|
| 546 | + */ |
|
| 538 | 547 | public static function getConnection($link = null, $func = null) |
| 539 | 548 | { |
| 540 | 549 | if ($link !== null) { |
@@ -553,6 +562,9 @@ discard block |
||
| 553 | 562 | return static::$last_connection; |
| 554 | 563 | } |
| 555 | 564 | |
| 565 | + /** |
|
| 566 | + * @param string $what |
|
| 567 | + */ |
|
| 556 | 568 | public static function mysqlFieldInfo(\mysqli_result $result, $field, $what) |
| 557 | 569 | { |
| 558 | 570 | try { |
@@ -592,6 +604,9 @@ discard block |
||
| 592 | 604 | return false; |
| 593 | 605 | } |
| 594 | 606 | |
| 607 | + /** |
|
| 608 | + * @param string $function |
|
| 609 | + */ |
|
| 595 | 610 | public static function checkValidResult($result, $function) |
| 596 | 611 | { |
| 597 | 612 | if (!($result instanceof \mysqli_result)) { |