@@ -387,8 +387,8 @@ discard block |
||
387 | 387 | * save_permissions() |
388 | 388 | * adapted from WF-Downloads |
389 | 389 | * @param $groups |
390 | - * @param $id |
|
391 | - * @param $perm_name |
|
390 | + * @param integer $id |
|
391 | + * @param string $perm_name |
|
392 | 392 | * @return bool |
393 | 393 | */ |
394 | 394 | |
@@ -420,10 +420,14 @@ discard block |
||
420 | 420 | //-- Initial Selector |
421 | 421 | /** |
422 | 422 | * @param $init |
423 | + * @param integer $a |
|
423 | 424 | */ |
424 | 425 | function unichr($a) { |
425 | 426 | return mb_convert_encoding(pack("N",$a), mb_internal_encoding(), 'UCS-4BE'); |
426 | 427 | } |
428 | +/** |
|
429 | + * @param integer $init |
|
430 | + */ |
|
427 | 431 | function lx_getinit($init) |
428 | 432 | { |
429 | 433 | global $init; |
@@ -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) |
@@ -437,6 +437,11 @@ discard block |
||
437 | 437 | } |
438 | 438 | |
439 | 439 | //Retrieve moduleoptions equivalent to $Xoopsmoduleconfig |
440 | +/** |
|
441 | + * @param string $option |
|
442 | + * |
|
443 | + * @return string |
|
444 | + */ |
|
440 | 445 | function lx_getmoduleoption($option, $repmodule='lexikon') { |
441 | 446 | global $xoopsModuleConfig, $xoopsModule; |
442 | 447 | static $tbloptions= Array(); |
@@ -831,6 +836,7 @@ discard block |
||
831 | 836 | /** |
832 | 837 | * @author Monte Ohrt <monte at ohrt dot com>, modified by Amos Robinson |
833 | 838 | * <amos dot robinson at gmail dot com> |
839 | + * @param string $string |
|
834 | 840 | */ |
835 | 841 | function lx_close_tags($string) { |
836 | 842 | // match opened tags |