@@ -23,6 +23,10 @@ |
||
23 | 23 | return self::getAttrbutesListArrayInternal($cacheId, false, $firstLetterUppercase); |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param boolean $bOnlySelectable |
|
28 | + * @param boolean $firstLetterUppercase |
|
29 | + */ |
|
26 | 30 | public static function getAttrbutesListArrayInternal($cacheId, $bOnlySelectable, $firstLetterUppercase) |
27 | 31 | { |
28 | 32 | global $opt; |
@@ -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'])) { |
@@ -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; |
@@ -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 | */ |
@@ -18,6 +18,9 @@ discard block |
||
18 | 18 | // Use {page} in link_url als placeholder for the selected page number |
19 | 19 | // and/or {offset} for the 0-based data offset of the selected page. |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $link_url |
|
23 | + */ |
|
21 | 24 | public function __construct($link_url, $min_pages_shown = 2, $max_pages_shown = 15) |
22 | 25 | { |
23 | 26 | global $tpl; |
@@ -31,6 +34,10 @@ discard block |
||
31 | 34 | } |
32 | 35 | |
33 | 36 | |
37 | + /** |
|
38 | + * @param double $current_page |
|
39 | + * @param double $total_pages |
|
40 | + */ |
|
34 | 41 | public function make_from_pagenr($current_page, $total_pages, $page_size = false) |
35 | 42 | { |
36 | 43 | global $tpl; |
@@ -94,6 +101,9 @@ discard block |
||
94 | 101 | } |
95 | 102 | |
96 | 103 | |
104 | + /** |
|
105 | + * @param boolean $page_size |
|
106 | + */ |
|
97 | 107 | private function pagelink($page, $page_size) |
98 | 108 | { |
99 | 109 | return mb_ereg_replace( |
@@ -76,6 +76,10 @@ discard block |
||
76 | 76 | } |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $sCode |
|
81 | + * @param integer $nStartSearch |
|
82 | + */ |
|
79 | 83 | public function findEndOfPHPString($sCode, $nStartSearch) |
80 | 84 | { |
81 | 85 | $nEnd = 0; |
@@ -116,6 +120,10 @@ discard block |
||
116 | 120 | } |
117 | 121 | |
118 | 122 | // TODO: performance ... scan once at __construct and store line positions |
123 | + |
|
124 | + /** |
|
125 | + * @param integer $nPos |
|
126 | + */ |
|
119 | 127 | public function findLineOfPos($nPos) |
120 | 128 | { |
121 | 129 | $nLine = 1; |
@@ -197,6 +197,9 @@ |
||
197 | 197 | return 0; |
198 | 198 | } |
199 | 199 | |
200 | +/** |
|
201 | + * @param string $domain |
|
202 | + */ |
|
200 | 203 | function is_existent_maildomain($domain) |
201 | 204 | { |
202 | 205 | $smtp_serverlist = []; |