@@ -64,6 +64,9 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | /////////////////////////////////////////////////////////////////////////////////////////////////// |
| 66 | 66 | |
| 67 | +/** |
|
| 68 | + * @param string $lpszFileName |
|
| 69 | + */ |
|
| 67 | 70 | function gif_outputAsBmp($gif, $lpszFileName, $bgColor = -1) |
| 68 | 71 | { |
| 69 | 72 | if (!isSet($gif) || (@get_class($gif) <> 'cgif') || !$gif->loaded() || ($lpszFileName == '')) { |
@@ -186,6 +189,10 @@ discard block |
||
| 186 | 189 | |
| 187 | 190 | /////////////////////////////////////////////////////////////////////////// |
| 188 | 191 | |
| 192 | + /** |
|
| 193 | + * @param string $data |
|
| 194 | + * @param integer $datLen |
|
| 195 | + */ |
|
| 189 | 196 | function deCompress($data, &$datLen) |
| 190 | 197 | { |
| 191 | 198 | $stLen = strlen($data); |
@@ -210,6 +217,11 @@ discard block |
||
| 210 | 217 | |
| 211 | 218 | /////////////////////////////////////////////////////////////////////////// |
| 212 | 219 | |
| 220 | + /** |
|
| 221 | + * @param boolean $bInit |
|
| 222 | + * |
|
| 223 | + * @return integer |
|
| 224 | + */ |
|
| 213 | 225 | function LZWCommand(&$data, $bInit) |
| 214 | 226 | { |
| 215 | 227 | if ($bInit) { |
@@ -392,6 +404,10 @@ discard block |
||
| 392 | 404 | |
| 393 | 405 | /////////////////////////////////////////////////////////////////////////// |
| 394 | 406 | |
| 407 | + /** |
|
| 408 | + * @param string $lpData |
|
| 409 | + * @param integer $num |
|
| 410 | + */ |
|
| 395 | 411 | function load($lpData, $num) |
| 396 | 412 | { |
| 397 | 413 | $this->m_nColors = 0; |
@@ -503,6 +519,9 @@ discard block |
||
| 503 | 519 | |
| 504 | 520 | /////////////////////////////////////////////////////////////////////////// |
| 505 | 521 | |
| 522 | + /** |
|
| 523 | + * @param integer $hdrLen |
|
| 524 | + */ |
|
| 506 | 525 | function load($lpData, &$hdrLen) |
| 507 | 526 | { |
| 508 | 527 | $hdrLen = 0; |
@@ -540,6 +559,9 @@ discard block |
||
| 540 | 559 | |
| 541 | 560 | /////////////////////////////////////////////////////////////////////////// |
| 542 | 561 | |
| 562 | + /** |
|
| 563 | + * @param string $str |
|
| 564 | + */ |
|
| 543 | 565 | function w2i($str) |
| 544 | 566 | { |
| 545 | 567 | return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8); |
@@ -578,6 +600,10 @@ discard block |
||
| 578 | 600 | |
| 579 | 601 | /////////////////////////////////////////////////////////////////////////// |
| 580 | 602 | |
| 603 | + /** |
|
| 604 | + * @param string $lpData |
|
| 605 | + * @param integer $hdrLen |
|
| 606 | + */ |
|
| 581 | 607 | function load($lpData, &$hdrLen) |
| 582 | 608 | { |
| 583 | 609 | $hdrLen = 0; |
@@ -611,6 +637,9 @@ discard block |
||
| 611 | 637 | |
| 612 | 638 | /////////////////////////////////////////////////////////////////////////// |
| 613 | 639 | |
| 640 | + /** |
|
| 641 | + * @param string $str |
|
| 642 | + */ |
|
| 614 | 643 | function w2i($str) |
| 615 | 644 | { |
| 616 | 645 | return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8); |
@@ -648,6 +677,10 @@ discard block |
||
| 648 | 677 | |
| 649 | 678 | /////////////////////////////////////////////////////////////////////////// |
| 650 | 679 | |
| 680 | + /** |
|
| 681 | + * @param string $data |
|
| 682 | + * @param integer $datLen |
|
| 683 | + */ |
|
| 651 | 684 | function load($data, &$datLen) |
| 652 | 685 | { |
| 653 | 686 | $datLen = 0; |
@@ -695,6 +728,10 @@ discard block |
||
| 695 | 728 | |
| 696 | 729 | /////////////////////////////////////////////////////////////////////////// |
| 697 | 730 | |
| 731 | + /** |
|
| 732 | + * @param string $data |
|
| 733 | + * @param integer $extLen |
|
| 734 | + */ |
|
| 698 | 735 | function skipExt(&$data, &$extLen) |
| 699 | 736 | { |
| 700 | 737 | $extLen = 0; |
@@ -740,6 +777,9 @@ discard block |
||
| 740 | 777 | |
| 741 | 778 | /////////////////////////////////////////////////////////////////////////// |
| 742 | 779 | |
| 780 | + /** |
|
| 781 | + * @param string $str |
|
| 782 | + */ |
|
| 743 | 783 | function w2i($str) |
| 744 | 784 | { |
| 745 | 785 | return ord(substr($str, 0, 1)) + (ord(substr($str, 1, 1)) << 8); |
@@ -811,6 +851,9 @@ discard block |
||
| 811 | 851 | |
| 812 | 852 | /////////////////////////////////////////////////////////////////////////// |
| 813 | 853 | |
| 854 | + /** |
|
| 855 | + * @param integer $iIndex |
|
| 856 | + */ |
|
| 814 | 857 | function loadFile($lpszFileName, $iIndex) |
| 815 | 858 | { |
| 816 | 859 | if ($iIndex < 0) { |
@@ -963,6 +1006,9 @@ discard block |
||
| 963 | 1006 | |
| 964 | 1007 | /////////////////////////////////////////////////////////////////////////// |
| 965 | 1008 | |
| 1009 | + /** |
|
| 1010 | + * @param integer $bgColor |
|
| 1011 | + */ |
|
| 966 | 1012 | function getPng($bgColor) |
| 967 | 1013 | { |
| 968 | 1014 | $out = ''; |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | class systemuserrankHandler extends XoopsPersistableObjectHandler |
| 116 | 116 | { |
| 117 | 117 | /** |
| 118 | - * @param null|XoopsDatabase $db |
|
| 118 | + * @param XoopsDatabase $db |
|
| 119 | 119 | */ |
| 120 | 120 | public function __construct(XoopsDatabase $db) |
| 121 | 121 | { |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * Comment by Taiwen Jiang (a.k.a. phppp): THE METHOD IS NOT COMPLETE AND NOT SAFE. YOU ARE ENCOURAGED TO USE PHP'S NATIVE FILTER_VAR OR FILTER_INPUT FUNCTIONS DIRECTLY BEFORE WE MIGRATE TO XOOPS 3. |
| 21 | 21 | * @param $global |
| 22 | - * @param $key |
|
| 22 | + * @param string $key |
|
| 23 | 23 | * @param string $default |
| 24 | 24 | * @param string $type |
| 25 | 25 | * @return int|mixed|string |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | - * @param $img |
|
| 107 | + * @param string $img |
|
| 108 | 108 | * |
| 109 | 109 | * @return mixed |
| 110 | 110 | */ |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | // irmtfan bug fix: solve templates duplicate issue |
| 57 | 57 | /** |
| 58 | - * @param $module |
|
| 58 | + * @param XoopsModule $module |
|
| 59 | 59 | * |
| 60 | 60 | * @return bool |
| 61 | 61 | */ |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | - * @param $content |
|
| 150 | + * @param string $content |
|
| 151 | 151 | * |
| 152 | 152 | * @return bool |
| 153 | 153 | */ |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * @param $pass |
| 45 | 45 | * @param $vpass |
| 46 | 46 | * |
| 47 | - * @return bool|string |
|
| 47 | + * @return false|string |
|
| 48 | 48 | */ |
| 49 | 49 | function userCheck($uname, $email, $pass, $vpass) |
| 50 | 50 | { |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | public $publisher; |
| 380 | 380 | |
| 381 | 381 | /** |
| 382 | - * @param null|XoopsDatabase $db |
|
| 382 | + * @param XoopsDatabase $db |
|
| 383 | 383 | */ |
| 384 | 384 | public function __construct(XoopsDatabase $db) |
| 385 | 385 | { |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | |
| 531 | 531 | /** |
| 532 | 532 | * @param $category |
| 533 | - * @param $level |
|
| 533 | + * @param integer $level |
|
| 534 | 534 | * @param $cat_array |
| 535 | 535 | * @param $cat_result |
| 536 | 536 | */ |
@@ -845,7 +845,7 @@ discard block |
||
| 845 | 845 | |
| 846 | 846 | /** |
| 847 | 847 | * @param string $content |
| 848 | - * @param string|array $keywords |
|
| 848 | + * @param string $keywords |
|
| 849 | 849 | * |
| 850 | 850 | * @return Text |
| 851 | 851 | */ |
@@ -1083,7 +1083,7 @@ discard block |
||
| 1083 | 1083 | public $publisher; |
| 1084 | 1084 | |
| 1085 | 1085 | /** |
| 1086 | - * @param null|XoopsDatabase $db |
|
| 1086 | + * @param XoopsDatabase $db |
|
| 1087 | 1087 | */ |
| 1088 | 1088 | public function __construct(XoopsDatabase $db) |
| 1089 | 1089 | { |
@@ -1094,7 +1094,7 @@ discard block |
||
| 1094 | 1094 | /** |
| 1095 | 1095 | * @param bool $isNew |
| 1096 | 1096 | * |
| 1097 | - * @return object |
|
| 1097 | + * @return XoopsObject |
|
| 1098 | 1098 | */ |
| 1099 | 1099 | public function &create($isNew = true) |
| 1100 | 1100 | { |
@@ -1111,7 +1111,7 @@ discard block |
||
| 1111 | 1111 | * |
| 1112 | 1112 | * @param int $id itemid of the user |
| 1113 | 1113 | * |
| 1114 | - * @return mixed reference to the {@link PublisherItem} object, FALSE if failed |
|
| 1114 | + * @return XoopsObject|null reference to the {@link PublisherItem} object, FALSE if failed |
|
| 1115 | 1115 | */ |
| 1116 | 1116 | public function &get($id) |
| 1117 | 1117 | { |
@@ -1552,7 +1552,7 @@ discard block |
||
| 1552 | 1552 | } |
| 1553 | 1553 | |
| 1554 | 1554 | /** |
| 1555 | - * @param string|array $notNullFields |
|
| 1555 | + * @param string $notNullFields |
|
| 1556 | 1556 | * @param bool $withAnd |
| 1557 | 1557 | * |
| 1558 | 1558 | * @return string |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * @param string $area |
| 163 | 163 | * @param bool $allow_repost |
| 164 | 164 | * |
| 165 | - * @return bool |
|
| 165 | + * @return null|boolean |
|
| 166 | 166 | */ |
| 167 | 167 | public function check($post = true, $area = '', $allow_repost = true) |
| 168 | 168 | { |
@@ -297,10 +297,10 @@ discard block |
||
| 297 | 297 | } |
| 298 | 298 | |
| 299 | 299 | /** |
| 300 | - * @param $key_name |
|
| 300 | + * @param string $key_name |
|
| 301 | 301 | * @param $tmp_array |
| 302 | 302 | * |
| 303 | - * @return array |
|
| 303 | + * @return string[] |
|
| 304 | 304 | */ |
| 305 | 305 | public function extract_post_recursive($key_name, $tmp_array) |
| 306 | 306 | { |