@@ -303,6 +303,10 @@ discard block |
||
303 | 303 | return 'R ' . floor($result[0]) . ' H ' . floor($result[1]); |
304 | 304 | } |
305 | 305 | |
306 | + /** |
|
307 | + * @param integer $bw |
|
308 | + * @param integer $lw |
|
309 | + */ |
|
306 | 310 | public function wgs2pot($bw, $lw) |
307 | 311 | { |
308 | 312 | /* Copyright (c) 2006, HELMUT H. HEIMEIER |
@@ -602,6 +606,9 @@ discard block |
||
602 | 606 | ]; |
603 | 607 | } |
604 | 608 | |
609 | + /** |
|
610 | + * @param string $name |
|
611 | + */ |
|
605 | 612 | public static function parseRequestLat($name) |
606 | 613 | { |
607 | 614 | if (!isset($_REQUEST[$name . 'NS']) || !isset($_REQUEST[$name . 'Lat']) || !isset($_REQUEST[$name . 'LatMin'])) { |
@@ -620,6 +627,9 @@ discard block |
||
620 | 627 | return $lat; |
621 | 628 | } |
622 | 629 | |
630 | + /** |
|
631 | + * @param string $name |
|
632 | + */ |
|
623 | 633 | public static function parseRequestLon($name) |
624 | 634 | { |
625 | 635 | if (!isset($_REQUEST[$name . 'EW']) || !isset($_REQUEST[$name . 'Lon']) || !isset($_REQUEST[$name . 'LonMin'])) { |
@@ -50,6 +50,11 @@ |
||
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param integer $parShortText |
|
55 | + * |
|
56 | + * @return string |
|
57 | + */ |
|
53 | 58 | public static function Bearing2Text($parBearing, $parShortText, $language) |
54 | 59 | { |
55 | 60 | global $opt, $translate; |
@@ -135,6 +135,11 @@ discard block |
||
135 | 135 | fclose($fp); |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param string $sResp |
|
140 | + * |
|
141 | + * @return string |
|
142 | + */ |
|
138 | 143 | public function extract_return_code($sResp) |
139 | 144 | { |
140 | 145 | $nPos1 = strpos($sResp, ' '); |
@@ -157,6 +162,9 @@ discard block |
||
157 | 162 | return substr($sResp, 0, $nPos); |
158 | 163 | } |
159 | 164 | |
165 | + /** |
|
166 | + * @param string $out |
|
167 | + */ |
|
160 | 168 | public function send_command($fp, $out) |
161 | 169 | { |
162 | 170 | fwrite($fp, $out . "\r\n"); |
@@ -102,6 +102,9 @@ discard block |
||
102 | 102 | } |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @param string $sFilename |
|
107 | + */ |
|
105 | 108 | public function setFilenames($sFilename) |
106 | 109 | { |
107 | 110 | global $opt; |
@@ -129,6 +132,9 @@ discard block |
||
129 | 132 | return $this->nPictureId; |
130 | 133 | } |
131 | 134 | |
135 | + /** |
|
136 | + * @param boolean $bRestoring |
|
137 | + */ |
|
132 | 138 | private function setArchiveFlag($bRestoring, $original_id = 0) |
133 | 139 | { |
134 | 140 | global $login; |
@@ -175,11 +181,17 @@ discard block |
||
175 | 181 | sql_slave("SET @original_picid=0"); |
176 | 182 | } |
177 | 183 | |
184 | + /** |
|
185 | + * @return string |
|
186 | + */ |
|
178 | 187 | public function getUrl() |
179 | 188 | { |
180 | 189 | return $this->rePicture->getValue('url'); |
181 | 190 | } |
182 | 191 | |
192 | + /** |
|
193 | + * @param string $value |
|
194 | + */ |
|
183 | 195 | public function setUrl($value) |
184 | 196 | { |
185 | 197 | return $this->rePicture->setValue('url', $value); |
@@ -224,6 +236,9 @@ discard block |
||
224 | 236 | return $this->rePicture->getValue('local') != 0; |
225 | 237 | } |
226 | 238 | |
239 | + /** |
|
240 | + * @param integer $value |
|
241 | + */ |
|
227 | 242 | public function setLocal($value) |
228 | 243 | { |
229 | 244 | return $this->rePicture->setValue('local', $value ? 1 : 0); |
@@ -292,6 +307,9 @@ discard block |
||
292 | 307 | return $opt['logic']['pictures']['thumb_dir'] . $dir1 . '/' . $dir2 . '/' . $filename; |
293 | 308 | } |
294 | 309 | |
310 | + /** |
|
311 | + * @return string |
|
312 | + */ |
|
295 | 313 | public function getLogId() |
296 | 314 | { |
297 | 315 | if ($this->getObjectType() == OBJECT_CACHELOG) { |
@@ -328,6 +346,9 @@ discard block |
||
328 | 346 | return $firstlogs; |
329 | 347 | } |
330 | 348 | |
349 | + /** |
|
350 | + * @return string |
|
351 | + */ |
|
331 | 352 | public function getCacheId() |
332 | 353 | { |
333 | 354 | if ($this->getObjectType() == OBJECT_CACHELOG) { |
@@ -491,6 +512,9 @@ discard block |
||
491 | 512 | return true; |
492 | 513 | } |
493 | 514 | |
515 | + /** |
|
516 | + * @param string $filename |
|
517 | + */ |
|
494 | 518 | private function deleted_filename($filename) |
495 | 519 | { |
496 | 520 | $fna = mb_split('\\/', $filename); |
@@ -648,6 +672,9 @@ discard block |
||
648 | 672 | return move_uploaded_file($tmpFile, $this->getFilename()); |
649 | 673 | } |
650 | 674 | |
675 | + /** |
|
676 | + * @param Imagick $image |
|
677 | + */ |
|
651 | 678 | public function imagick_rotate(&$image) |
652 | 679 | { |
653 | 680 | $exif = $image->getImageProperties(); |
@@ -46,6 +46,11 @@ discard block |
||
46 | 46 | /* sChaneFreq = {always, hourly, daily, weekly, monthly, yearly, never} |
47 | 47 | * nPriority = {0.0 to 1.0} |
48 | 48 | */ |
49 | + |
|
50 | + /** |
|
51 | + * @param string $sFile |
|
52 | + * @param integer $dLastMod |
|
53 | + */ |
|
49 | 54 | public function write($sFile, $dLastMod, $sChangeFreq = false, $nPriority = 0.5) |
50 | 55 | { |
51 | 56 | if ($sChangeFreq == false) { |
@@ -62,6 +67,9 @@ discard block |
||
62 | 67 | $this->writeInternal($sXML); |
63 | 68 | } |
64 | 69 | |
70 | + /** |
|
71 | + * @param string $str |
|
72 | + */ |
|
65 | 73 | public function writeInternal($str) |
66 | 74 | { |
67 | 75 | global $opt; |
@@ -143,6 +143,9 @@ discard block |
||
143 | 143 | return $this->reUser->getValue('username'); |
144 | 144 | } |
145 | 145 | |
146 | + /** |
|
147 | + * @param string $value |
|
148 | + */ |
|
146 | 149 | public function setUsername($value) |
147 | 150 | { |
148 | 151 | if (!mb_ereg_match(REGEX_USERNAME, $value)) { |
@@ -210,6 +213,9 @@ discard block |
||
210 | 213 | return $this->reUser->getValue('first_name'); |
211 | 214 | } |
212 | 215 | |
216 | + /** |
|
217 | + * @param string $value |
|
218 | + */ |
|
213 | 219 | public function setFirstName($value) |
214 | 220 | { |
215 | 221 | if ($value != '') { |
@@ -226,6 +232,9 @@ discard block |
||
226 | 232 | return $this->reUser->getValue('last_name'); |
227 | 233 | } |
228 | 234 | |
235 | + /** |
|
236 | + * @param string $value |
|
237 | + */ |
|
229 | 238 | public function setLastName($value) |
230 | 239 | { |
231 | 240 | if ($value != '') { |
@@ -275,6 +284,9 @@ discard block |
||
275 | 284 | return $this->reUser->getValue('latitude'); |
276 | 285 | } |
277 | 286 | |
287 | + /** |
|
288 | + * @param double $value |
|
289 | + */ |
|
278 | 290 | public function setLatitude($value) |
279 | 291 | { |
280 | 292 | if (($value + 0) > 90 || ($value + 0) < - 90) { |
@@ -289,6 +301,9 @@ discard block |
||
289 | 301 | return $this->reUser->getValue('longitude'); |
290 | 302 | } |
291 | 303 | |
304 | + /** |
|
305 | + * @param double $value |
|
306 | + */ |
|
292 | 307 | public function setLongitude($value) |
293 | 308 | { |
294 | 309 | if (($value + 0) > 180 || ($value + 0) < - 180) { |
@@ -303,6 +318,9 @@ discard block |
||
303 | 318 | return $this->reUser->getValue('notify_radius'); |
304 | 319 | } |
305 | 320 | |
321 | + /** |
|
322 | + * @param integer $value |
|
323 | + */ |
|
306 | 324 | public function setNotifyRadius($value) |
307 | 325 | { |
308 | 326 | if (($value + 0) < 0 || ($value + 0) > 150) { |
@@ -317,6 +335,9 @@ discard block |
||
317 | 335 | return $this->reUser->getValue('notify_oconly') != 0; |
318 | 336 | } |
319 | 337 | |
338 | + /** |
|
339 | + * @param boolean $value |
|
340 | + */ |
|
320 | 341 | public function setNotifyOconly($value) |
321 | 342 | { |
322 | 343 | return $this->reUser->setValue('notify_oconly', $value ? 1 : 0); |
@@ -397,6 +418,9 @@ discard block |
||
397 | 418 | return $this->reUser->getValue('new_pw_code'); |
398 | 419 | } |
399 | 420 | |
421 | + /** |
|
422 | + * @param string|null $value |
|
423 | + */ |
|
400 | 424 | public function setNewPWCode($value) |
401 | 425 | { |
402 | 426 | return $this->reUser->setValue('new_pw_code', $value); |
@@ -407,6 +431,9 @@ discard block |
||
407 | 431 | return $this->reUser->getValue('new_pw_date'); |
408 | 432 | } |
409 | 433 | |
434 | + /** |
|
435 | + * @param integer|null $value |
|
436 | + */ |
|
410 | 437 | public function setNewPWDate($value) |
411 | 438 | { |
412 | 439 | return $this->reUser->setValue('new_pw_date', $value); |
@@ -417,6 +444,9 @@ discard block |
||
417 | 444 | return $this->reUser->getValue('new_email_code'); |
418 | 445 | } |
419 | 446 | |
447 | + /** |
|
448 | + * @param string|null $value |
|
449 | + */ |
|
420 | 450 | public function setNewEMailCode($value) |
421 | 451 | { |
422 | 452 | return $this->reUser->setValue('new_email_code', $value); |
@@ -427,6 +457,9 @@ discard block |
||
427 | 457 | return $this->reUser->getValue('new_email_date'); |
428 | 458 | } |
429 | 459 | |
460 | + /** |
|
461 | + * @param integer|null $value |
|
462 | + */ |
|
430 | 463 | public function setNewEMailDate($value) |
431 | 464 | { |
432 | 465 | return $this->reUser->setValue('new_email_date', $value); |
@@ -493,6 +526,9 @@ discard block |
||
493 | 526 | return $this->reUser->getValue('watchmail_nextmail'); |
494 | 527 | } |
495 | 528 | |
529 | + /** |
|
530 | + * @param string $value |
|
531 | + */ |
|
496 | 532 | public function setWatchmailNext($value) |
497 | 533 | { |
498 | 534 | return $this->reUser->setValue('watchmail_nextmail', $value); |
@@ -130,6 +130,9 @@ discard block |
||
130 | 130 | return mb_send_mail($this->to, $opt['mail']['subject'] . $this->subject, $body, $mailheaders); |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param string $domain |
|
135 | + */ |
|
133 | 136 | public static function is_existent_maildomain($domain) |
134 | 137 | { |
135 | 138 | if ($domain == "localhost") { |
@@ -154,6 +157,9 @@ discard block |
||
154 | 157 | return false; |
155 | 158 | } |
156 | 159 | |
160 | + /** |
|
161 | + * @param string $mail |
|
162 | + */ |
|
157 | 163 | public static function getToMailDomain($mail) |
158 | 164 | { |
159 | 165 | if ($mail == '') { |
@@ -245,6 +245,9 @@ |
||
245 | 245 | return $retval; |
246 | 246 | } |
247 | 247 | |
248 | + /** |
|
249 | + * @param integer|null $menuid |
|
250 | + */ |
|
248 | 251 | public function pAppendSubMenu($menuid, $ids, &$items) |
249 | 252 | { |
250 | 253 | global $menuitem, $login; |
@@ -2760,7 +2760,7 @@ discard block |
||
2760 | 2760 | * |
2761 | 2761 | * @param int $d One digit to encode |
2762 | 2762 | * |
2763 | - * @return char Encoded digit |
|
2763 | + * @return string Encoded digit |
|
2764 | 2764 | * @access private |
2765 | 2765 | */ |
2766 | 2766 | private function _encodeDigit($d) |
@@ -2771,7 +2771,7 @@ discard block |
||
2771 | 2771 | /** |
2772 | 2772 | * Decode a certain digit. |
2773 | 2773 | * |
2774 | - * @param char $cp One digit (character) to decode |
|
2774 | + * @param string $cp One digit (character) to decode |
|
2775 | 2775 | * |
2776 | 2776 | * @return int Decoded digit |
2777 | 2777 | * @access private |
@@ -2785,7 +2785,7 @@ discard block |
||
2785 | 2785 | /** |
2786 | 2786 | * Do Nameprep according to RFC3491 and RFC3454. |
2787 | 2787 | * |
2788 | - * @param array $input Unicode Characters |
|
2788 | + * @param string $input Unicode Characters |
|
2789 | 2789 | * |
2790 | 2790 | * @return string Unicode Characters, Nameprep'd |
2791 | 2791 | * @throws Exception |
@@ -2885,7 +2885,7 @@ discard block |
||
2885 | 2885 | * |
2886 | 2886 | * @param integer $char 32bit UCS4 code point |
2887 | 2887 | * |
2888 | - * @return array Either Hangul Syllable decomposed or original 32bit |
|
2888 | + * @return integer[] Either Hangul Syllable decomposed or original 32bit |
|
2889 | 2889 | * value as one value array |
2890 | 2890 | * @access private |
2891 | 2891 | */ |