@@ -33,6 +33,9 @@ discard block |
||
| 33 | 33 | define('MYSQL_CLIENT_INTERACTIVE', 1024); |
| 34 | 34 | define('MYSQL_CLIENT_IGNORE_SPACE', 256); |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $hostname |
|
| 38 | + */ |
|
| 36 | 39 | function mysql_connect( |
| 37 | 40 | $hostname = null, |
| 38 | 41 | $username = null, |
@@ -650,6 +653,9 @@ discard block |
||
| 650 | 653 | public static $last_connection = null; |
| 651 | 654 | public static $connections = array(); |
| 652 | 655 | |
| 656 | + /** |
|
| 657 | + * @param string $func |
|
| 658 | + */ |
|
| 653 | 659 | public static function getConnection($link = null, $func = null) |
| 654 | 660 | { |
| 655 | 661 | if ($link !== null) { |
@@ -668,6 +674,9 @@ discard block |
||
| 668 | 674 | return static::$last_connection; |
| 669 | 675 | } |
| 670 | 676 | |
| 677 | + /** |
|
| 678 | + * @param string $what |
|
| 679 | + */ |
|
| 671 | 680 | public static function mysqlFieldInfo(\mysqli_result $result, $field, $what) |
| 672 | 681 | { |
| 673 | 682 | try { |
@@ -703,6 +712,9 @@ discard block |
||
| 703 | 712 | return false; |
| 704 | 713 | } |
| 705 | 714 | |
| 715 | + /** |
|
| 716 | + * @param string $function |
|
| 717 | + */ |
|
| 706 | 718 | public static function checkValidResult($result, $function) |
| 707 | 719 | { |
| 708 | 720 | if (!($result instanceof \mysqli_result)) { |