@@ -345,6 +345,12 @@ discard block |
||
345 | 345 | } |
346 | 346 | |
347 | 347 | // public: |
348 | + |
|
349 | + /** |
|
350 | + * @param string $param |
|
351 | + * |
|
352 | + * @return integer |
|
353 | + */ |
|
348 | 354 | function getParameter($param) { |
349 | 355 | //if (property_exists('phpThumb', $param)) { |
350 | 356 | return $this->$param; |
@@ -1119,6 +1125,10 @@ discard block |
||
1119 | 1125 | |
1120 | 1126 | /* True if the provided path points inside one of open_basedirs (or if open_basedirs are disabled) */ |
1121 | 1127 | // http://support.silisoftware.com/phpBB3/viewtopic.php?t=961 |
1128 | + |
|
1129 | + /** |
|
1130 | + * @param string $path |
|
1131 | + */ |
|
1122 | 1132 | function isInOpenBasedir($path) { |
1123 | 1133 | static $open_basedirs = null; |
1124 | 1134 | if (is_null($open_basedirs)) { |
@@ -1136,6 +1146,10 @@ discard block |
||
1136 | 1146 | |
1137 | 1147 | /* 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. */ |
1138 | 1148 | // http://support.silisoftware.com/phpBB3/viewtopic.php?t=961 |
1149 | + |
|
1150 | + /** |
|
1151 | + * @return string |
|
1152 | + */ |
|
1139 | 1153 | function resolvePath($path, $allowed_dirs) { |
1140 | 1154 | $this->DebugMessage('resolvePath: '.$path.' (allowed_dirs: '.print_r($allowed_dirs, true).')', __FILE__, __LINE__); |
1141 | 1155 | |
@@ -4109,6 +4123,9 @@ discard block |
||
4109 | 4123 | return $this->ErrorImage(implode("\n", $DebugOutput), 700, 500, true); |
4110 | 4124 | } |
4111 | 4125 | |
4126 | + /** |
|
4127 | + * @param string $text |
|
4128 | + */ |
|
4112 | 4129 | function FatalError($text) { |
4113 | 4130 | if (is_null($this->fatalerror)) { |
4114 | 4131 | $this->fatalerror = $text; |
@@ -4116,6 +4133,9 @@ discard block |
||
4116 | 4133 | return true; |
4117 | 4134 | } |
4118 | 4135 | |
4136 | + /** |
|
4137 | + * @param string $text |
|
4138 | + */ |
|
4119 | 4139 | function ErrorImage($text, $width=0, $height=0, $forcedisplay=false) { |
4120 | 4140 | $width = ($width ? $width : $this->config_error_image_width); |
4121 | 4141 | $height = ($height ? $height : $this->config_error_image_height); |
@@ -4362,6 +4382,9 @@ discard block |
||
4362 | 4382 | return true; |
4363 | 4383 | } |
4364 | 4384 | |
4385 | + /** |
|
4386 | + * @param string $message |
|
4387 | + */ |
|
4365 | 4388 | function DebugTimingMessage($message, $file='', $line='', $timestamp=0) { |
4366 | 4389 | if (!$timestamp) { |
4367 | 4390 | $timestamp = array_sum(explode(' ', microtime())); |
@@ -332,7 +332,7 @@ |
||
332 | 332 | * @param array $thread |
333 | 333 | * @param int $key |
334 | 334 | * @param array $replies |
335 | - * @param string|int $prefix |
|
335 | + * @param integer $prefix |
|
336 | 336 | * @param bool $admin_view |
337 | 337 | * @param integer $depth |
338 | 338 | * @access private |
@@ -116,7 +116,7 @@ |
||
116 | 116 | class Database |
117 | 117 | { |
118 | 118 | /** |
119 | - * @return object |
|
119 | + * @return XoopsDatabase|null |
|
120 | 120 | */ |
121 | 121 | public function getInstance() |
122 | 122 | { |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | /** |
291 | 291 | * XoopsBlock::getOptions() |
292 | 292 | * |
293 | - * @return bool |
|
293 | + * @return string |
|
294 | 294 | */ |
295 | 295 | public function getOptions() |
296 | 296 | { |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | * 4: centerblock - right |
334 | 334 | * 5: centerblock - center |
335 | 335 | * 6: centerblock - left, right, center |
336 | - * @param $visible 0: not visible 1: visible |
|
336 | + * @param integer $visible 0: not visible 1: visible |
|
337 | 337 | * @param string $orderby order of the blocks |
338 | 338 | * @param int $isactive |
339 | 339 | * @returns array of block objects |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | * XoopsBlock::getByModule() |
461 | 461 | * |
462 | 462 | * @param mixed $moduleid |
463 | - * @param mixed $asobject |
|
463 | + * @param boolean $asobject |
|
464 | 464 | * @return array |
465 | 465 | */ |
466 | 466 | public static function getByModule($moduleid, $asobject = true) |
@@ -490,8 +490,8 @@ discard block |
||
490 | 490 | * |
491 | 491 | * @param mixed $groupid |
492 | 492 | * @param integer $module_id |
493 | - * @param mixed $toponlyblock |
|
494 | - * @param mixed $visible |
|
493 | + * @param boolean $toponlyblock |
|
494 | + * @param integer $visible |
|
495 | 495 | * @param string $orderby |
496 | 496 | * @param integer $isactive |
497 | 497 | * @return array |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * XoopsLocalAbstract::substr() |
28 | 28 | * |
29 | - * @param mixed $str |
|
30 | - * @param mixed $start |
|
31 | - * @param mixed $length |
|
29 | + * @param string $str |
|
30 | + * @param integer $start |
|
31 | + * @param integer $length |
|
32 | 32 | * @param string $trimmarker |
33 | 33 | * |
34 | 34 | * @return mixed|string |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param mixed $text |
71 | 71 | * @param string $to |
72 | 72 | * @param string $from |
73 | - * @return mixed|string |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | public static function convert_encoding($text, $to = 'utf-8', $from = '') |
76 | 76 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public $comments; |
54 | 54 | |
55 | 55 | /** |
56 | - * @param int|array $storyid |
|
56 | + * @param integer $storyid |
|
57 | 57 | */ |
58 | 58 | public function Story($storyid = -1) |
59 | 59 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | } |
267 | 267 | |
268 | 268 | /** |
269 | - * @param $storyid |
|
269 | + * @param integer $storyid |
|
270 | 270 | */ |
271 | 271 | public function getStory($storyid) |
272 | 272 | { |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | /** |
357 | 357 | * @param string $format |
358 | 358 | * |
359 | - * @return mixed |
|
359 | + * @return string |
|
360 | 360 | */ |
361 | 361 | public function title($format = 'Show') |
362 | 362 | { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param $table |
42 | - * @param int|array $topicid |
|
42 | + * @param integer $topicid |
|
43 | 43 | */ |
44 | 44 | public function __construct($table, $topicid = 0) |
45 | 45 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @param $topicid |
|
82 | + * @param integer $topicid |
|
83 | 83 | */ |
84 | 84 | public function getTopic($topicid) |
85 | 85 | { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | /** |
229 | 229 | * @param string $format |
230 | 230 | * |
231 | - * @return mixed |
|
231 | + * @return string |
|
232 | 232 | */ |
233 | 233 | public function topic_title($format = 'S') |
234 | 234 | { |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | /** |
251 | 251 | * @param string $format |
252 | 252 | * |
253 | - * @return mixed |
|
253 | + * @return string |
|
254 | 254 | */ |
255 | 255 | public function topic_imgurl($format = 'S') |
256 | 256 | { |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @param ProfileField $field {@link ProfileField} object to get edit form for |
26 | 26 | * @param mixed $action URL to submit to - or false for $_SERVER['REQUEST_URI'] |
27 | 27 | * |
28 | - * @return object |
|
28 | + * @return XoopsThemeForm |
|
29 | 29 | */ |
30 | 30 | function profile_getFieldForm(ProfileField $field, $action = false) |
31 | 31 | { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * @param int $step Which step we are at |
278 | 278 | * |
279 | 279 | * @internal param \profileRegstep $next_step |
280 | - * @return object |
|
280 | + * @return XoopsThemeForm |
|
281 | 281 | */ |
282 | 282 | function profile_getRegisterForm(XoopsUser $user, $profile, $step = null) |
283 | 283 | { |
@@ -383,10 +383,10 @@ discard block |
||
383 | 383 | * Get {@link XoopsThemeForm} for editing a user |
384 | 384 | * |
385 | 385 | * @param XoopsUser $user {@link XoopsUser} to edit |
386 | - * @param ProfileProfile|XoopsObject|null $profile |
|
386 | + * @param null|ProfileProfile $profile |
|
387 | 387 | * @param bool $action |
388 | 388 | * |
389 | - * @return object |
|
389 | + * @return XoopsThemeForm |
|
390 | 390 | */ |
391 | 391 | function profile_getUserForm(XoopsUser $user, ProfileProfile $profile = null, $action = false) |
392 | 392 | { |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | * @param ProfileRegstep|null $step {@link ProfileRegstep} to edit |
522 | 522 | * @param bool $action |
523 | 523 | * |
524 | - * @return object |
|
524 | + * @return XoopsThemeForm |
|
525 | 525 | */ |
526 | 526 | function profile_getStepForm(ProfileRegstep $step = null, $action = false) |
527 | 527 | { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * XoopsCaptcha::loadConfig() |
70 | 70 | * |
71 | - * @param mixed $filename |
|
71 | + * @param string $filename |
|
72 | 72 | * |
73 | 73 | * @return array |
74 | 74 | */ |