@@ -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, |
@@ -598,6 +601,9 @@ discard block |
||
| 598 | 601 | public static $last_connection = null; |
| 599 | 602 | public static $connections = []; |
| 600 | 603 | |
| 604 | + /** |
|
| 605 | + * @param string $func |
|
| 606 | + */ |
|
| 601 | 607 | public static function getConnection($link = null, $func = null) |
| 602 | 608 | { |
| 603 | 609 | if ($link !== null) { |
@@ -616,6 +622,9 @@ discard block |
||
| 616 | 622 | return static::$last_connection; |
| 617 | 623 | } |
| 618 | 624 | |
| 625 | + /** |
|
| 626 | + * @param string $what |
|
| 627 | + */ |
|
| 619 | 628 | public static function mysqlFieldInfo(\mysqli_result $result, $field, $what) |
| 620 | 629 | { |
| 621 | 630 | try { |
@@ -655,6 +664,9 @@ discard block |
||
| 655 | 664 | return false; |
| 656 | 665 | } |
| 657 | 666 | |
| 667 | + /** |
|
| 668 | + * @param string $function |
|
| 669 | + */ |
|
| 658 | 670 | public static function checkValidResult($result, $function) |
| 659 | 671 | { |
| 660 | 672 | if (!($result instanceof \mysqli_result)) { |