@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Number Formats |
| 49 | 49 | * |
| 50 | 50 | * @param unknown_type $number |
| 51 | - * @return unknown |
|
| 51 | + * @return string |
|
| 52 | 52 | */ |
| 53 | 53 | public function number_format($number) |
| 54 | 54 | { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @param string $format |
| 62 | 62 | * @param string $number |
| 63 | - * @return money format |
|
| 63 | + * @return string format |
|
| 64 | 64 | */ |
| 65 | 65 | public function money_format($format, $number) |
| 66 | 66 | { |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | * @param XoopsUser $user {@link XoopsUser} object to get the value of |
| 239 | 239 | * @param profileProfile $profile object to get the value of |
| 240 | 240 | * |
| 241 | - * @return mixed |
|
| 241 | + * @return string |
|
| 242 | 242 | **/ |
| 243 | 243 | public function getOutputValue(&$user, $profile) |
| 244 | 244 | { |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | class ProfileFieldHandler extends XoopsPersistableObjectHandler |
| 434 | 434 | { |
| 435 | 435 | /** |
| 436 | - * @param null|XoopsDatabase $db |
|
| 436 | + * @param XoopsDatabase $db |
|
| 437 | 437 | */ |
| 438 | 438 | public function __construct(XoopsDatabase $db) |
| 439 | 439 | { |
@@ -644,7 +644,7 @@ discard block |
||
| 644 | 644 | /** |
| 645 | 645 | * Get array of standard variable names (user table) |
| 646 | 646 | * |
| 647 | - * @return array |
|
| 647 | + * @return string[] |
|
| 648 | 648 | */ |
| 649 | 649 | public function getUserVars() |
| 650 | 650 | { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @param ProfileField $field {@link ProfileField} object to get edit form for |
| 27 | 27 | * @param mixed $action URL to submit to - or false for $_SERVER['REQUEST_URI'] |
| 28 | 28 | * |
| 29 | - * @return object |
|
| 29 | + * @return XoopsThemeForm |
|
| 30 | 30 | */ |
| 31 | 31 | function profile_getFieldForm(ProfileField $field, $action = false) |
| 32 | 32 | { |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | * @param int $step Which step we are at |
| 279 | 279 | * |
| 280 | 280 | * @internal param \profileRegstep $next_step |
| 281 | - * @return object |
|
| 281 | + * @return XoopsThemeForm |
|
| 282 | 282 | */ |
| 283 | 283 | function profile_getRegisterForm(XoopsUser $user, $profile, $step = null) |
| 284 | 284 | { |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | * @param ProfileProfile|null $profile |
| 388 | 388 | * @param bool $action |
| 389 | 389 | * |
| 390 | - * @return object |
|
| 390 | + * @return XoopsThemeForm |
|
| 391 | 391 | */ |
| 392 | 392 | function profile_getUserForm(XoopsUser $user, ProfileProfile $profile = null, $action = false) |
| 393 | 393 | { |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | * @param ProfileRegstep|null $step {@link ProfileRegstep} to edit |
| 523 | 523 | * @param bool $action |
| 524 | 524 | * |
| 525 | - * @return object |
|
| 525 | + * @return XoopsThemeForm |
|
| 526 | 526 | */ |
| 527 | 527 | function profile_getStepForm(ProfileRegstep $step = null, $action = false) |
| 528 | 528 | { |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | } |
| 529 | 529 | |
| 530 | 530 | /** |
| 531 | - * @param $dirname |
|
| 531 | + * @param string $dirname |
|
| 532 | 532 | * @param $template |
| 533 | 533 | * @param string $type |
| 534 | 534 | * |
@@ -1388,9 +1388,9 @@ discard block |
||
| 1388 | 1388 | |
| 1389 | 1389 | /** |
| 1390 | 1390 | * @param $module |
| 1391 | - * @param $title |
|
| 1391 | + * @param string $title |
|
| 1392 | 1392 | * |
| 1393 | - * @return array |
|
| 1393 | + * @return string[] |
|
| 1394 | 1394 | */ |
| 1395 | 1395 | function xoops_module_log_header($module, $title) |
| 1396 | 1396 | { |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * Create new Object |
| 116 | 116 | * |
| 117 | 117 | * @param bool $isNew |
| 118 | - * @return object |
|
| 118 | + * @return SystemAvatar |
|
| 119 | 119 | */ |
| 120 | 120 | public function &create($isNew = true) |
| 121 | 121 | { |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * |
| 143 | 143 | * @param array tables 'list of tables' |
| 144 | 144 | * @param array maintenance 'optimize, check, repair, analyze' |
| 145 | - * @return array |
|
| 145 | + * @return string |
|
| 146 | 146 | */ |
| 147 | 147 | public function CheckRepairAnalyzeOptimizeQueries($tables, $maintenance) |
| 148 | 148 | { |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | * |
| 215 | 215 | * @param array tables 'list of tables' |
| 216 | 216 | * @param int drop |
| 217 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
| 217 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
| 218 | 218 | */ |
| 219 | 219 | public function dump_tables($tables, $drop) |
| 220 | 220 | { |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * |
| 244 | 244 | * @param array modules 'list of modules' |
| 245 | 245 | * @param int drop |
| 246 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
| 246 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
| 247 | 247 | */ |
| 248 | 248 | public function dump_modules($modules, $drop) |
| 249 | 249 | { |
@@ -285,7 +285,10 @@ discard block |
||
| 285 | 285 | * @param string table |
| 286 | 286 | * @param int drop |
| 287 | 287 | * @param string class |
| 288 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
| 288 | + * @param string[] $ret |
|
| 289 | + * @param string $table |
|
| 290 | + * @param string $class |
|
| 291 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
| 289 | 292 | */ |
| 290 | 293 | public function dump_table_structure($ret, $table, $drop, $class) |
| 291 | 294 | { |
@@ -314,7 +317,9 @@ discard block |
||
| 314 | 317 | * |
| 315 | 318 | * @param array |
| 316 | 319 | * @param string table |
| 317 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
| 320 | + * @param string[] $ret |
|
| 321 | + * @param string $table |
|
| 322 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
| 318 | 323 | */ |
| 319 | 324 | public function dump_table_datas($ret, $table) |
| 320 | 325 | { |
@@ -379,7 +384,8 @@ discard block |
||
| 379 | 384 | * Dump Write |
| 380 | 385 | * |
| 381 | 386 | * @param array |
| 382 | - * @return array 'ret[0] = dump, ret[1] = display result |
|
| 387 | + * @param string[] $ret |
|
| 388 | + * @return string[] 'ret[0] = dump, ret[1] = display result |
|
| 383 | 389 | */ |
| 384 | 390 | public function dump_write($ret) |
| 385 | 391 | { |
@@ -1120,6 +1120,10 @@ discard block |
||
| 1120 | 1120 | |
| 1121 | 1121 | /* True if the provided path points inside one of open_basedirs (or if open_basedirs are disabled) */ |
| 1122 | 1122 | // http://support.silisoftware.com/phpBB3/viewtopic.php?t=961 |
| 1123 | + |
|
| 1124 | + /** |
|
| 1125 | + * @param string $path |
|
| 1126 | + */ |
|
| 1123 | 1127 | function isInOpenBasedir($path) { |
| 1124 | 1128 | static $open_basedirs = null; |
| 1125 | 1129 | if (is_null($open_basedirs)) { |
@@ -1137,6 +1141,10 @@ discard block |
||
| 1137 | 1141 | |
| 1138 | 1142 | /* Resolves all symlinks in $path, checking that each continuous part ends in an allowed zone. Returns null, if any component leads outside of allowed zone. */ |
| 1139 | 1143 | // http://support.silisoftware.com/phpBB3/viewtopic.php?t=961 |
| 1144 | + |
|
| 1145 | + /** |
|
| 1146 | + * @return string |
|
| 1147 | + */ |
|
| 1140 | 1148 | function resolvePath($path, $allowed_dirs) { |
| 1141 | 1149 | $this->DebugMessage('resolvePath: '.$path.' (allowed_dirs: '.print_r($allowed_dirs, true).')', __FILE__, __LINE__); |
| 1142 | 1150 | |
@@ -4116,6 +4124,9 @@ discard block |
||
| 4116 | 4124 | return $this->ErrorImage(implode("\n", $DebugOutput), 700, 500, true); |
| 4117 | 4125 | } |
| 4118 | 4126 | |
| 4127 | + /** |
|
| 4128 | + * @param string $text |
|
| 4129 | + */ |
|
| 4119 | 4130 | function FatalError($text) { |
| 4120 | 4131 | if (is_null($this->fatalerror)) { |
| 4121 | 4132 | $this->fatalerror = $text; |
@@ -4123,6 +4134,9 @@ discard block |
||
| 4123 | 4134 | return true; |
| 4124 | 4135 | } |
| 4125 | 4136 | |
| 4137 | + /** |
|
| 4138 | + * @param string $text |
|
| 4139 | + */ |
|
| 4126 | 4140 | function ErrorImage($text, $width=0, $height=0, $forcedisplay=false) { |
| 4127 | 4141 | $width = ($width ? $width : $this->config_error_image_width); |
| 4128 | 4142 | $height = ($height ? $height : $this->config_error_image_height); |
@@ -4368,6 +4382,9 @@ discard block |
||
| 4368 | 4382 | return true; |
| 4369 | 4383 | } |
| 4370 | 4384 | |
| 4385 | + /** |
|
| 4386 | + * @param string $message |
|
| 4387 | + */ |
|
| 4371 | 4388 | function DebugTimingMessage($message, $file='', $line='', $timestamp=0) { |
| 4372 | 4389 | if (!$timestamp) { |
| 4373 | 4390 | $timestamp = array_sum(explode(' ', microtime())); |
@@ -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 | { |