@@ -565,6 +565,9 @@ discard block |
||
565 | 565 | |
566 | 566 | } |
567 | 567 | |
568 | +/** |
|
569 | + * @param string $file |
|
570 | + */ |
|
568 | 571 | function determineIcon($file, $selFile, $mode) |
569 | 572 | { |
570 | 573 | $icons = array( |
@@ -709,6 +712,9 @@ discard block |
||
709 | 712 | return $path; |
710 | 713 | } |
711 | 714 | |
715 | +/** |
|
716 | + * @param string $string |
|
717 | + */ |
|
712 | 718 | function getExtension($string) |
713 | 719 | { |
714 | 720 | $pos = strrpos($string, '.'); |
@@ -744,6 +750,9 @@ discard block |
||
744 | 750 | return @mkdir($strPath); |
745 | 751 | } |
746 | 752 | |
753 | +/** |
|
754 | + * @param string $type |
|
755 | + */ |
|
747 | 756 | function logFileChange($type, $filename) |
748 | 757 | { |
749 | 758 | //global $_lang; |
@@ -160,6 +160,11 @@ discard block |
||
160 | 160 | return $output; |
161 | 161 | } |
162 | 162 | |
163 | +/** |
|
164 | + * @param integer $parent |
|
165 | + * @param string $filedir |
|
166 | + * @param string $mode |
|
167 | + */ |
|
163 | 168 | function importFiles($parent, $filedir, $files, $mode) { |
164 | 169 | global $modx; |
165 | 170 | global $_lang, $allowedfiles; |
@@ -302,6 +307,9 @@ discard block |
||
302 | 307 | } |
303 | 308 | } |
304 | 309 | |
310 | +/** |
|
311 | + * @param string $directory |
|
312 | + */ |
|
305 | 313 | function getFiles($directory, $listing = array(), $count = 0) { |
306 | 314 | global $_lang; |
307 | 315 | global $filesfound; |
@@ -326,6 +334,9 @@ discard block |
||
326 | 334 | return ($listing); |
327 | 335 | } |
328 | 336 | |
337 | +/** |
|
338 | + * @param string $filepath |
|
339 | + */ |
|
329 | 340 | function getFileContent($filepath) { |
330 | 341 | global $_lang; |
331 | 342 | // get the file |
@@ -353,6 +364,9 @@ discard block |
||
353 | 364 | return $new_array; |
354 | 365 | } |
355 | 366 | |
367 | +/** |
|
368 | + * @param null|string $src |
|
369 | + */ |
|
356 | 370 | function treatContent($src, $filename, $alias) { |
357 | 371 | global $modx; |
358 | 372 |
@@ -504,6 +504,9 @@ |
||
504 | 504 | return $iconsPrivate; |
505 | 505 | } |
506 | 506 | |
507 | +/** |
|
508 | + * @return string |
|
509 | + */ |
|
507 | 510 | function getNodeTitle($nodeNameSource, $row) { |
508 | 511 | global $modx; |
509 | 512 |
@@ -3,6 +3,9 @@ |
||
3 | 3 | //Kyle Jaebker - 08/07/06 |
4 | 4 | |
5 | 5 | //Create a new category |
6 | +/** |
|
7 | + * @param string $newCat |
|
8 | + */ |
|
6 | 9 | function newCategory($newCat) { |
7 | 10 | global $modx; |
8 | 11 | $useTable = $modx->getFullTableName('categories'); |
@@ -3968,7 +3968,7 @@ |
||
3968 | 3968 | * @param int|string $options Either a PATHINFO_* constant, |
3969 | 3969 | * or a string name to return only the specified piece |
3970 | 3970 | * |
3971 | - * @return string|array |
|
3971 | + * @return string |
|
3972 | 3972 | */ |
3973 | 3973 | public static function mb_pathinfo($path, $options = null) |
3974 | 3974 | { |
@@ -209,7 +209,7 @@ |
||
209 | 209 | * Connect to a POP3 server. |
210 | 210 | * |
211 | 211 | * @param string $host |
212 | - * @param int|bool $port |
|
212 | + * @param integer $port |
|
213 | 213 | * @param int $tval |
214 | 214 | * |
215 | 215 | * @return bool |
@@ -1314,7 +1314,7 @@ |
||
1314 | 1314 | * If no reply has been received yet, it will return null. |
1315 | 1315 | * If no pattern was matched, it will return false. |
1316 | 1316 | * |
1317 | - * @return bool|null|string |
|
1317 | + * @return string |
|
1318 | 1318 | * |
1319 | 1319 | * @see recordLastTransactionID() |
1320 | 1320 | */ |
@@ -192,6 +192,9 @@ |
||
192 | 192 | return $_; |
193 | 193 | } |
194 | 194 | |
195 | + /** |
|
196 | + * @param string $checksum |
|
197 | + */ |
|
195 | 198 | function setSystemChecksum($checksum) { |
196 | 199 | global $modx; |
197 | 200 | $tbl_system_settings = $modx->getFullTableName('system_settings'); |
@@ -43,6 +43,9 @@ discard block |
||
43 | 43 | $this->random_state = microtime() . uniqid(mt_rand(), TRUE); |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param integer $count |
|
48 | + */ |
|
46 | 49 | function get_random_bytes($count) |
47 | 50 | { |
48 | 51 | $output = ''; |
@@ -66,6 +69,9 @@ discard block |
||
66 | 69 | return $output; |
67 | 70 | } |
68 | 71 | |
72 | + /** |
|
73 | + * @param integer $count |
|
74 | + */ |
|
69 | 75 | function encode64($input, $count) |
70 | 76 | { |
71 | 77 | $output = ''; |
@@ -89,6 +95,9 @@ discard block |
||
89 | 95 | return $output; |
90 | 96 | } |
91 | 97 | |
98 | + /** |
|
99 | + * @param string $input |
|
100 | + */ |
|
92 | 101 | function gensalt_private($input) |
93 | 102 | { |
94 | 103 | $output = '$P$'; |
@@ -137,6 +146,9 @@ discard block |
||
137 | 146 | return $output; |
138 | 147 | } |
139 | 148 | |
149 | + /** |
|
150 | + * @param string $input |
|
151 | + */ |
|
140 | 152 | function gensalt_extended($input) |
141 | 153 | { |
142 | 154 | $count_log2 = min($this->iteration_count_log2 + 8, 24); |
@@ -155,6 +167,9 @@ discard block |
||
155 | 167 | return $output; |
156 | 168 | } |
157 | 169 | |
170 | + /** |
|
171 | + * @param string $input |
|
172 | + */ |
|
158 | 173 | function gensalt_blowfish($input) |
159 | 174 | { |
160 | 175 | // This one needs to use a different order of characters and a |