@@ -12,7 +12,8 @@ |
||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * @param $options |
| 15 | - * @return array |
|
| 15 | + * @param integer $a |
|
| 16 | + * @return string |
|
| 16 | 17 | */ |
| 17 | 18 | function uchr($a) { |
| 18 | 19 | if (is_scalar($a)) $a= func_get_args(); |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | - * @param $user |
|
| 199 | + * @param integer $user |
|
| 200 | 200 | */ |
| 201 | 201 | public static function getUserForm($user) |
| 202 | 202 | { |
@@ -347,6 +347,10 @@ discard block |
||
| 347 | 347 | $catids = implode(',', $allowed_cats); |
| 348 | 348 | $catperms = " AND categoryID IN ($catids) "; |
| 349 | 349 | $alpha = array(); |
| 350 | + |
|
| 351 | + /** |
|
| 352 | + * @param integer $a |
|
| 353 | + */ |
|
| 350 | 354 | function unichr($a) { |
| 351 | 355 | return mb_convert_encoding(pack("N",$a), mb_internal_encoding(), 'UCS-4BE'); |
| 352 | 356 | } |
@@ -838,7 +842,7 @@ discard block |
||
| 838 | 842 | |
| 839 | 843 | //Retrieve moduleoptions equivalent to $Xoopsmoduleconfig |
| 840 | 844 | /** |
| 841 | - * @param $option |
|
| 845 | + * @param string $option |
|
| 842 | 846 | * @param string $repmodule |
| 843 | 847 | * @return bool |
| 844 | 848 | */ |
@@ -894,8 +898,8 @@ discard block |
||
| 894 | 898 | /** |
| 895 | 899 | * Retreive an editor according to the module's option "form_options" |
| 896 | 900 | * following function is from News modified by trabis |
| 897 | - * @param $caption |
|
| 898 | - * @param $name |
|
| 901 | + * @param string $caption |
|
| 902 | + * @param string $name |
|
| 899 | 903 | * @param string $value |
| 900 | 904 | * @param string $width |
| 901 | 905 | * @param string $height |
@@ -1151,7 +1155,7 @@ discard block |
||
| 1151 | 1155 | // functionset to assign terms with accentuated or umlaut initials to the adequate initial |
| 1152 | 1156 | /** |
| 1153 | 1157 | * @param $string |
| 1154 | - * @return mixed|string |
|
| 1158 | + * @return string |
|
| 1155 | 1159 | */ |
| 1156 | 1160 | public static function removeAccents($string) |
| 1157 | 1161 | { |
@@ -1291,7 +1295,7 @@ discard block |
||
| 1291 | 1295 | |
| 1292 | 1296 | /** |
| 1293 | 1297 | * @param $field |
| 1294 | - * @return mixed|string |
|
| 1298 | + * @return string |
|
| 1295 | 1299 | */ |
| 1296 | 1300 | public static function sanitizeFieldName($field) |
| 1297 | 1301 | { |
@@ -1410,7 +1414,7 @@ discard block |
||
| 1410 | 1414 | /** |
| 1411 | 1415 | * @author Monte Ohrt <monte at ohrt dot com>, modified by Amos Robinson |
| 1412 | 1416 | * <amos dot robinson at gmail dot com> |
| 1413 | - * @param $string |
|
| 1417 | + * @param string $string |
|
| 1414 | 1418 | * @return string |
| 1415 | 1419 | */ |
| 1416 | 1420 | public static function closeTags($string) |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | //sets the names of table, unique id, and parend id |
| 42 | 42 | /** |
| 43 | 43 | * @param $table_name |
| 44 | - * @param $id_name |
|
| 45 | - * @param $pid_name |
|
| 44 | + * @param string $id_name |
|
| 45 | + * @param string $pid_name |
|
| 46 | 46 | * @return lexikontree |
| 47 | 47 | */ |
| 48 | 48 | public function __construct($table_name, $id_name, $pid_name) |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | /** |
| 300 | 300 | * Enter description here... |
| 301 | 301 | * |
| 302 | - * @param int|mixed $sel_id |
|
| 302 | + * @param integer $sel_id |
|
| 303 | 303 | * @param string|mixed $order |
| 304 | 304 | * @param array|mixed $parray |
| 305 | 305 | * |
@@ -328,8 +328,8 @@ discard block |
||
| 328 | 328 | /** |
| 329 | 329 | * Enter description here... |
| 330 | 330 | * |
| 331 | - * @param int|mixed $sel_id |
|
| 332 | - * @param string|mixed $order |
|
| 331 | + * @param integer $sel_id |
|
| 332 | + * @param string $order |
|
| 333 | 333 | * @param array|mixed $parray |
| 334 | 334 | * @param string|mixed $r_prefix |
| 335 | 335 | * @return array|unknown|unknown_type |
@@ -561,6 +561,11 @@ discard block |
||
| 561 | 561 | } |
| 562 | 562 | |
| 563 | 563 | //Retrieve moduleoptions equivalent to $Xoopsmoduleconfig |
| 564 | +/** |
|
| 565 | + * @param string $option |
|
| 566 | + * |
|
| 567 | + * @return string |
|
| 568 | + */ |
|
| 564 | 569 | function lx_getmoduleoption($option, $repmodule='lexikon') { |
| 565 | 570 | global $xoopsModuleConfig, $xoopsModule; |
| 566 | 571 | static $tbloptions= []; |
@@ -983,6 +988,7 @@ discard block |
||
| 983 | 988 | /** |
| 984 | 989 | * @author Monte Ohrt <monte at ohrt dot com>, modified by Amos Robinson |
| 985 | 990 | * <amos dot robinson at gmail dot com> |
| 991 | + * @param string $string |
|
| 986 | 992 | */ |
| 987 | 993 | function lx_close_tags($string) { |
| 988 | 994 | // match opened tags |
@@ -392,8 +392,8 @@ discard block |
||
| 392 | 392 | * save_permissions() |
| 393 | 393 | * adapted from WF-Downloads |
| 394 | 394 | * @param $groups |
| 395 | - * @param $id |
|
| 396 | - * @param $perm_name |
|
| 395 | + * @param integer $id |
|
| 396 | + * @param string $perm_name |
|
| 397 | 397 | * @return bool |
| 398 | 398 | */ |
| 399 | 399 | |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | |
| 425 | 425 | //-- Initial Selector |
| 426 | 426 | /** |
| 427 | - * @param $init |
|
| 427 | + * @param integer $init |
|
| 428 | 428 | */ |
| 429 | 429 | function lx_getinit($init) |
| 430 | 430 | { |
@@ -457,6 +457,9 @@ discard block |
||
| 457 | 457 | }*/ |
| 458 | 458 | echo "</select></div>"; |
| 459 | 459 | } |
| 460 | +/** |
|
| 461 | + * @param integer $a |
|
| 462 | + */ |
|
| 460 | 463 | function uchr($a) { |
| 461 | 464 | if (is_scalar($a)) $a= func_get_args(); |
| 462 | 465 | $str= ''; |