@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Access the only instance of this class |
224 | 224 | * |
225 | - * @return object |
|
225 | + * @return MyTextSanitizer |
|
226 | 226 | * @static |
227 | 227 | * @staticvar object |
228 | 228 | */ |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | * Replace XoopsCodes with their equivalent HTML formatting |
395 | 395 | * |
396 | 396 | * @param string $text |
397 | - * @param bool|int $allowimage Allow images in the text? |
|
397 | + * @param integer $allowimage Allow images in the text? |
|
398 | 398 | * On FALSE, uses links to images. |
399 | 399 | * @return string |
400 | 400 | */ |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | * A quick solution for filtering XSS scripts |
481 | 481 | * |
482 | 482 | * @TODO : To be improved |
483 | - * @param $text |
|
483 | + * @param string $text |
|
484 | 484 | * @return mixed |
485 | 485 | */ |
486 | 486 | public function filterXss($text) |
@@ -576,11 +576,11 @@ discard block |
||
576 | 576 | * Filters textarea form data in DB for display |
577 | 577 | * |
578 | 578 | * @param string $text |
579 | - * @param bool|int $html allow html? |
|
580 | - * @param bool|int $smiley allow smileys? |
|
581 | - * @param bool|int $xcode allow xoopscode? |
|
582 | - * @param bool|int $image allow inline images? |
|
583 | - * @param bool|int $br convert linebreaks? |
|
579 | + * @param integer $html allow html? |
|
580 | + * @param integer $smiley allow smileys? |
|
581 | + * @param integer $xcode allow xoopscode? |
|
582 | + * @param integer $image allow inline images? |
|
583 | + * @param integer $br convert linebreaks? |
|
584 | 584 | * @return string |
585 | 585 | */ |
586 | 586 | public function &displayTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1) |
@@ -624,11 +624,11 @@ discard block |
||
624 | 624 | * Filters textarea form data submitted for preview |
625 | 625 | * |
626 | 626 | * @param string $text |
627 | - * @param bool|int $html allow html? |
|
628 | - * @param bool|int $smiley allow smileys? |
|
629 | - * @param bool|int $xcode allow xoopscode? |
|
630 | - * @param bool|int $image allow inline images? |
|
631 | - * @param bool|int $br convert linebreaks? |
|
627 | + * @param integer $html allow html? |
|
628 | + * @param integer $smiley allow smileys? |
|
629 | + * @param integer $xcode allow xoopscode? |
|
630 | + * @param integer $image allow inline images? |
|
631 | + * @param integer $br convert linebreaks? |
|
632 | 632 | * @return string |
633 | 633 | */ |
634 | 634 | public function &previewTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1) |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | * MyTextSanitizer::codePreConv() |
661 | 661 | * |
662 | 662 | * @param mixed $text |
663 | - * @param mixed $xcode |
|
663 | + * @param integer $xcode |
|
664 | 664 | * @return mixed |
665 | 665 | */ |
666 | 666 | public function codePreConv($text, $xcode = 1) |
@@ -696,8 +696,8 @@ discard block |
||
696 | 696 | * MyTextSanitizer::codeConv() |
697 | 697 | * |
698 | 698 | * @param mixed $text |
699 | - * @param mixed $xcode |
|
700 | - * @return mixed |
|
699 | + * @param integer $xcode |
|
700 | + * @return string |
|
701 | 701 | */ |
702 | 702 | public function codeConv($text, $xcode = 1) |
703 | 703 | { |
@@ -713,7 +713,7 @@ discard block |
||
713 | 713 | /** |
714 | 714 | * MyTextSanitizer::executeExtensions() |
715 | 715 | * |
716 | - * @return bool |
|
716 | + * @return boolean|null |
|
717 | 717 | */ |
718 | 718 | public function executeExtensions() |
719 | 719 | { |
@@ -798,8 +798,8 @@ discard block |
||
798 | 798 | * MyTextSanitizer::codeSanitizer() |
799 | 799 | * |
800 | 800 | * @param mixed $str |
801 | - * @param mixed $image |
|
802 | - * @return mixed|string |
|
801 | + * @param integer $image |
|
802 | + * @return string |
|
803 | 803 | */ |
804 | 804 | public function codeSanitizer($str, $image = 1) |
805 | 805 | { |
@@ -816,8 +816,8 @@ discard block |
||
816 | 816 | * @param mixed $text |
817 | 817 | * @param integer $allowhtml |
818 | 818 | * @param integer $smiley |
819 | - * @param mixed $bbcode |
|
820 | - * @return mixed|string |
|
819 | + * @param integer $bbcode |
|
820 | + * @return string |
|
821 | 821 | */ |
822 | 822 | public function sanitizeForDisplay($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) |
823 | 823 | { |
@@ -847,8 +847,8 @@ discard block |
||
847 | 847 | * @param mixed $text |
848 | 848 | * @param integer $allowhtml |
849 | 849 | * @param integer $smiley |
850 | - * @param mixed $bbcode |
|
851 | - * @return mixed|string |
|
850 | + * @param integer $bbcode |
|
851 | + * @return string |
|
852 | 852 | */ |
853 | 853 | public function sanitizeForPreview($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) |
854 | 854 | { |
@@ -891,8 +891,8 @@ discard block |
||
891 | 891 | * MyTextSanitizer::makeTboxData4Show() |
892 | 892 | * |
893 | 893 | * @param mixed $text |
894 | - * @param mixed $smiley |
|
895 | - * @return mixed|string |
|
894 | + * @param integer $smiley |
|
895 | + * @return string |
|
896 | 896 | */ |
897 | 897 | public function makeTboxData4Show($text, $smiley = 0) |
898 | 898 | { |
@@ -919,8 +919,8 @@ discard block |
||
919 | 919 | * MyTextSanitizer::makeTboxData4Preview() |
920 | 920 | * |
921 | 921 | * @param mixed $text |
922 | - * @param mixed $smiley |
|
923 | - * @return mixed|string |
|
922 | + * @param integer $smiley |
|
923 | + * @return string |
|
924 | 924 | */ |
925 | 925 | public function makeTboxData4Preview($text, $smiley = 0) |
926 | 926 | { |
@@ -964,8 +964,8 @@ discard block |
||
964 | 964 | * @param mixed $text |
965 | 965 | * @param integer $html |
966 | 966 | * @param integer $smiley |
967 | - * @param mixed $xcode |
|
968 | - * @return mixed|string |
|
967 | + * @param integer $xcode |
|
968 | + * @return string |
|
969 | 969 | */ |
970 | 970 | public function &makeTareaData4Show(&$text, $html = 1, $smiley = 1, $xcode = 1) |
971 | 971 | { |
@@ -994,8 +994,8 @@ discard block |
||
994 | 994 | * @param mixed $text |
995 | 995 | * @param integer $html |
996 | 996 | * @param integer $smiley |
997 | - * @param mixed $xcode |
|
998 | - * @return mixed|string |
|
997 | + * @param integer $xcode |
|
998 | + * @return string |
|
999 | 999 | */ |
1000 | 1000 | public function &makeTareaData4Preview(&$text, $html = 1, $smiley = 1, $xcode = 1) |
1001 | 1001 | { |
@@ -114,7 +114,7 @@ |
||
114 | 114 | class SystemuserrankHandler extends XoopsPersistableObjectHandler |
115 | 115 | { |
116 | 116 | /** |
117 | - * @param null|XoopsDatabase $db |
|
117 | + * @param XoopsDatabase $db |
|
118 | 118 | */ |
119 | 119 | public function __construct(XoopsDatabase $db) |
120 | 120 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | class Protector_postcommon_post_deny_by_httpbl extends ProtectorFilterAbstract |
10 | 10 | { |
11 | 11 | /** |
12 | - * @return bool |
|
12 | + * @return null|boolean |
|
13 | 13 | */ |
14 | 14 | public function execute() |
15 | 15 | { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | class Protector_postcommon_post_deny_by_rbl extends ProtectorFilterAbstract |
7 | 7 | { |
8 | 8 | /** |
9 | - * @return bool |
|
9 | + * @return null|boolean |
|
10 | 10 | */ |
11 | 11 | public function execute() |
12 | 12 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | class Protector_postcommon_post_need_multibyte extends ProtectorFilterAbstract |
10 | 10 | { |
11 | 11 | /** |
12 | - * @return bool |
|
12 | + * @return boolean|null |
|
13 | 13 | */ |
14 | 14 | public function execute() |
15 | 15 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class Protector_postcommon_post_register_moratorium extends ProtectorFilterAbstract |
9 | 9 | { |
10 | 10 | /** |
11 | - * @return bool |
|
11 | + * @return boolean|null |
|
12 | 12 | */ |
13 | 13 | public function execute() |
14 | 14 | { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | class Protector_postcommon_register_insert_js_check extends ProtectorFilterAbstract |
7 | 7 | { |
8 | 8 | /** |
9 | - * @return bool |
|
9 | + * @return null|boolean |
|
10 | 10 | */ |
11 | 11 | public function execute() |
12 | 12 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * Tries to find and include a file for a cache engine and returns object instance |
80 | 80 | * |
81 | 81 | * @param $name Name of the engine |
82 | - * @return mixed $engine object or null |
|
82 | + * @return boolean $engine object or null |
|
83 | 83 | * @access private |
84 | 84 | */ |
85 | 85 | private function loadEngine($name) |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @param string $key Identifier for the data |
208 | 208 | * @param mixed $value Data to be cached - anything except a resource |
209 | - * @param mixed $duration Optional - string configuration name OR how long to cache the data, either in seconds or a |
|
209 | + * @param string $duration Optional - string configuration name OR how long to cache the data, either in seconds or a |
|
210 | 210 | * string that can be parsed by the strtotime() function OR array('config' => 'default', 'duration' => '3600') |
211 | 211 | * @return boolean True if the data was successfully cached, false on failure |
212 | 212 | * @access public |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | * generates a safe key |
385 | 385 | * |
386 | 386 | * @param string $key the key passed over |
387 | - * @return mixed string $key or false |
|
387 | + * @return false|string string $key or false |
|
388 | 388 | * @access private |
389 | 389 | */ |
390 | 390 | public function key($key) |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | * @param string $key Identifier for the data |
450 | 450 | * @param mixed $value Data to be cached |
451 | 451 | * @param mixed $duration How long to cache the data, in seconds |
452 | - * @return boolean True if the data was successfully cached, false on failure |
|
452 | + * @return boolean|null True if the data was successfully cached, false on failure |
|
453 | 453 | * @access public |
454 | 454 | */ |
455 | 455 | public function write($key, $value, $duration = null) |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | * Delete a key from the cache |
474 | 474 | * |
475 | 475 | * @param string $key Identifier for the data |
476 | - * @return boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed |
|
476 | + * @return boolean|null True if the value was successfully deleted, false if it didn't exist or couldn't be removed |
|
477 | 477 | * @access public |
478 | 478 | */ |
479 | 479 | public function delete($key) |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | * Delete all keys from the cache |
485 | 485 | * |
486 | 486 | * @param boolean $check if true will check expiration, otherwise delete all |
487 | - * @return boolean True if the cache was successfully cleared, false otherwise |
|
487 | + * @return boolean|null True if the cache was successfully cleared, false otherwise |
|
488 | 488 | * @access public |
489 | 489 | */ |
490 | 490 | public function clear($check) |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | /** |
495 | 495 | * Cache Engine settings |
496 | 496 | * |
497 | - * @return array settings |
|
497 | + * @return integer settings |
|
498 | 498 | * @access public |
499 | 499 | */ |
500 | 500 | public function settings() |
@@ -212,7 +212,7 @@ |
||
212 | 212 | /** |
213 | 213 | * Constructor |
214 | 214 | * @param $caption |
215 | - * @param $name |
|
215 | + * @param string $name |
|
216 | 216 | * @param $groupId |
217 | 217 | * @param null $values |
218 | 218 | */ |