@@ -37,6 +37,7 @@ discard block |
||
37 | 37 | * @author Instant Zero (http://xoops.instant-zero.com) |
38 | 38 | * @copyright (c) Instant Zero |
39 | 39 | * @param string $option module option's name |
40 | + * @return string |
|
40 | 41 | */ |
41 | 42 | function news_getmoduleoption($option, $repmodule='news') |
42 | 43 | { |
@@ -375,6 +376,7 @@ discard block |
||
375 | 376 | * @package News |
376 | 377 | * @author Instant Zero (http://xoops.instant-zero.com) |
377 | 378 | * @copyright (c) Instant Zero |
379 | + * @param string $content |
|
378 | 380 | */ |
379 | 381 | function news_createmeta_keywords($content) |
380 | 382 | { |
@@ -212,6 +212,7 @@ discard block |
||
212 | 212 | /** |
213 | 213 | * Count the number of files and directories in a given folder |
214 | 214 | * minus the thumbnail folders and thumbnails. |
215 | + * @param string $path |
|
215 | 216 | */ |
216 | 217 | function countFiles($path) |
217 | 218 | { |
@@ -251,7 +252,7 @@ discard block |
||
251 | 252 | /** |
252 | 253 | * Check if the file contains the thumbnail prefix. |
253 | 254 | * @param string $file filename to be checked |
254 | - * @return true if the file contains the thumbnail prefix, false otherwise. |
|
255 | + * @return boolean if the file contains the thumbnail prefix, false otherwise. |
|
255 | 256 | */ |
256 | 257 | function isThumb($file) |
257 | 258 | { |
@@ -265,7 +266,7 @@ discard block |
||
265 | 266 | /** |
266 | 267 | * Check if the given directory is a thumbnail directory. |
267 | 268 | * @param string $entry directory name |
268 | - * @return true if it is a thumbnail directory, false otherwise |
|
269 | + * @return boolean if it is a thumbnail directory, false otherwise |
|
269 | 270 | */ |
270 | 271 | function isThumbDir($entry) |
271 | 272 | { |
@@ -443,7 +444,7 @@ discard block |
||
443 | 444 | * @param string $relative the relative path where the file |
444 | 445 | * should be copied to. |
445 | 446 | * @param array $file the uploaded file from $_FILES |
446 | - * @return boolean true if the file was processed successfully, |
|
447 | + * @return false|string true if the file was processed successfully, |
|
447 | 448 | * false otherwise |
448 | 449 | */ |
449 | 450 | function _processFiles($relative, $file) |
@@ -726,7 +727,7 @@ discard block |
||
726 | 727 | /** |
727 | 728 | * Create new directories. |
728 | 729 | * If in safe_mode, nothing happens. |
729 | - * @return boolean true if created, false otherwise. |
|
730 | + * @return boolean|null true if created, false otherwise. |
|
730 | 731 | */ |
731 | 732 | function processNewDir() |
732 | 733 | { |
@@ -8,6 +8,9 @@ |
||
8 | 8 | |
9 | 9 | require_once(dirname(__FILE__) . '/JSON_Compat.php'); |
10 | 10 | |
11 | +/** |
|
12 | + * @param string $method |
|
13 | + */ |
|
11 | 14 | function flickr_request($method, $params = array()) |
12 | 15 | { |
13 | 16 | global $IMConfig; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * before drawing the text |
110 | 110 | * ) |
111 | 111 | * |
112 | - * @return none |
|
112 | + * @return boolean |
|
113 | 113 | * @see PEAR::isError() |
114 | 114 | */ |
115 | 115 | function addText($params) |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * 'color_mask'=>array(r,g,b), named color or #rrggbb |
158 | 158 | * ) |
159 | 159 | * @author Pierre-Alain Joye |
160 | - * @return mixed none or a PEAR error object on error |
|
160 | + * @return boolean none or a PEAR error object on error |
|
161 | 161 | * @see PEAR::isError() |
162 | 162 | */ |
163 | 163 | function rotate($angle, $options=null) |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * @param int $new_x new width |
341 | 341 | * @param int $new_y new height |
342 | 342 | * |
343 | - * @return true on success or pear error |
|
343 | + * @return boolean on success or pear error |
|
344 | 344 | * @see PEAR::isError() |
345 | 345 | */ |
346 | 346 | function _resize($new_x, $new_y) { |
@@ -371,10 +371,6 @@ discard block |
||
371 | 371 | /** |
372 | 372 | * Crop the image |
373 | 373 | * |
374 | - * @param int $crop_x left column of the image |
|
375 | - * @param int $crop_y top row of the image |
|
376 | - * @param int $crop_width new cropped image width |
|
377 | - * @param int $crop_height new cropped image height |
|
378 | 374 | */ |
379 | 375 | function crop($new_x, $new_y, $new_width, $new_height) |
380 | 376 | { |
@@ -533,7 +529,7 @@ discard block |
||
533 | 529 | * |
534 | 530 | * @param string $filename the name of the file to write to |
535 | 531 | * @param int $quality output DPI, default is 85 |
536 | - * @param string $types define the output format, default |
|
532 | + * @param string $type define the output format, default |
|
537 | 533 | * is the current used format |
538 | 534 | * |
539 | 535 | * @return none |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * Save the image file |
188 | 188 | * |
189 | 189 | * @param string $filename the name of the file to write to |
190 | - * @param quality $quality image dpi, default=75 |
|
190 | + * @param integer $quality image dpi, default=75 |
|
191 | 191 | * @param string $type (JPG,PNG...) |
192 | 192 | * |
193 | 193 | * @return none |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | /** |
229 | 229 | * Destroy image handle |
230 | 230 | * |
231 | - * @return none |
|
231 | + * @return boolean |
|
232 | 232 | */ |
233 | 233 | function free() |
234 | 234 | { |
@@ -191,6 +191,7 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * Count the number of files and directories in a given folder |
193 | 193 | * minus the thumbnail folders and thumbnails. |
194 | + * @param string $path |
|
194 | 195 | */ |
195 | 196 | function countFiles($path) |
196 | 197 | { |
@@ -230,7 +231,7 @@ discard block |
||
230 | 231 | /** |
231 | 232 | * Check if the file contains the thumbnail prefix. |
232 | 233 | * @param string $file filename to be checked |
233 | - * @return true if the file contains the thumbnail prefix, false otherwise. |
|
234 | + * @return boolean if the file contains the thumbnail prefix, false otherwise. |
|
234 | 235 | */ |
235 | 236 | function isThumb($file) |
236 | 237 | { |
@@ -244,7 +245,7 @@ discard block |
||
244 | 245 | /** |
245 | 246 | * Check if the given directory is a thumbnail directory. |
246 | 247 | * @param string $entry directory name |
247 | - * @return true if it is a thumbnail directory, false otherwise |
|
248 | + * @return boolean if it is a thumbnail directory, false otherwise |
|
248 | 249 | */ |
249 | 250 | function isThumbDir($entry) |
250 | 251 | { |
@@ -394,7 +395,7 @@ discard block |
||
394 | 395 | * The dir must be relative to the base_dir and exists. |
395 | 396 | * If 'validate_images' is set to true, only file with |
396 | 397 | * image dimensions will be accepted. |
397 | - * @return null |
|
398 | + * @return null|boolean |
|
398 | 399 | */ |
399 | 400 | function processUploads() |
400 | 401 | { |
@@ -587,7 +588,7 @@ discard block |
||
587 | 588 | |
588 | 589 | /** |
589 | 590 | * Delete and specified files. |
590 | - * @return boolean true if delete, false otherwise |
|
591 | + * @return boolean|null true if delete, false otherwise |
|
591 | 592 | */ |
592 | 593 | function deleteFiles() |
593 | 594 | { |
@@ -648,7 +649,7 @@ discard block |
||
648 | 649 | /** |
649 | 650 | * Create new directories. |
650 | 651 | * If in safe_mode, nothing happens. |
651 | - * @return boolean true if created, false otherwise. |
|
652 | + * @return boolean|null true if created, false otherwise. |
|
652 | 653 | */ |
653 | 654 | function processNewDir() |
654 | 655 | { |
@@ -445,7 +445,7 @@ |
||
445 | 445 | /** |
446 | 446 | * reduce a string by removing leading and trailing comments and whitespace |
447 | 447 | * |
448 | - * @param $str string string value to strip of comments and whitespace |
|
448 | + * @param string $str string string value to strip of comments and whitespace |
|
449 | 449 | * |
450 | 450 | * @return string string value stripped of comments and whitespace |
451 | 451 | * @access private |
@@ -19,6 +19,9 @@ |
||
19 | 19 | return $JSON_Singleton; |
20 | 20 | } |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $str |
|
24 | + */ |
|
22 | 25 | function json_decode($str, $loose = FALSE) |
23 | 26 | { |
24 | 27 | $json =& get_json(); |
@@ -133,6 +133,10 @@ discard block |
||
133 | 133 | |
134 | 134 | |
135 | 135 | // Analyze file by name |
136 | + |
|
137 | + /** |
|
138 | + * @param string $filename |
|
139 | + */ |
|
136 | 140 | public function Analyze($filename) { |
137 | 141 | |
138 | 142 | // Init and save values |
@@ -482,6 +486,12 @@ discard block |
||
482 | 486 | |
483 | 487 | |
484 | 488 | // Convert string between charsets -- iconv() wrapper |
489 | + |
|
490 | + /** |
|
491 | + * @param string $out_charset |
|
492 | + * |
|
493 | + * @return string |
|
494 | + */ |
|
485 | 495 | public function iconv($in_charset, $out_charset, $string, $drop01 = false) { |
486 | 496 | |
487 | 497 | if ($drop01 && ($string === "\x00" || $string === "\x01")) { |
@@ -509,6 +519,9 @@ discard block |
||
509 | 519 | |
510 | 520 | |
511 | 521 | |
522 | + /** |
|
523 | + * @param string $name |
|
524 | + */ |
|
512 | 525 | public function include_module($name) { |
513 | 526 | |
514 | 527 | if (!file_exists($this->include_path.'module.'.$name.'.php')) { |
@@ -520,6 +533,9 @@ discard block |
||
520 | 533 | |
521 | 534 | |
522 | 535 | |
536 | + /** |
|
537 | + * @param string $name |
|
538 | + */ |
|
523 | 539 | public function include_module_optional($name) { |
524 | 540 | |
525 | 541 | if (!file_exists($this->include_path.'module.'.$name.'.php')) { |
@@ -1208,6 +1224,9 @@ discard block |
||
1208 | 1224 | } |
1209 | 1225 | |
1210 | 1226 | |
1227 | + /** |
|
1228 | + * @param integer $whence |
|
1229 | + */ |
|
1211 | 1230 | protected function fseek($bytes, $whence = SEEK_SET) { |
1212 | 1231 | |
1213 | 1232 | if ($this->data_string_flag) { |
@@ -1325,6 +1344,10 @@ discard block |
||
1325 | 1344 | |
1326 | 1345 | |
1327 | 1346 | // Convert number to Little Endian byte string |
1347 | + |
|
1348 | + /** |
|
1349 | + * @param integer $number |
|
1350 | + */ |
|
1328 | 1351 | public static function LittleEndian2String($number, $minbytes=1, $synchsafe=false) { |
1329 | 1352 | $intstring = ''; |
1330 | 1353 | while ($number > 0) { |
@@ -1364,6 +1387,10 @@ discard block |
||
1364 | 1387 | |
1365 | 1388 | |
1366 | 1389 | // Convert Big Endian byte sybc safe string to int - max 32 bits |
1390 | + |
|
1391 | + /** |
|
1392 | + * @param string $byte_word |
|
1393 | + */ |
|
1367 | 1394 | public static function BigEndianSyncSafe2Int($byte_word) { |
1368 | 1395 | |
1369 | 1396 | $int_value = 0; |
@@ -1391,6 +1418,9 @@ discard block |
||
1391 | 1418 | |
1392 | 1419 | |
1393 | 1420 | |
1421 | + /** |
|
1422 | + * @param string $byte_word |
|
1423 | + */ |
|
1394 | 1424 | public static function BigEndian2Float($byte_word) { |
1395 | 1425 | |
1396 | 1426 | // ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic |
@@ -1471,6 +1501,9 @@ discard block |
||
1471 | 1501 | |
1472 | 1502 | |
1473 | 1503 | |
1504 | + /** |
|
1505 | + * @param string $byte_word |
|
1506 | + */ |
|
1474 | 1507 | public static function LittleEndian2Float($byte_word) { |
1475 | 1508 | |
1476 | 1509 | return getid3_lib::BigEndian2Float(strrev($byte_word)); |
@@ -1478,6 +1511,9 @@ discard block |
||
1478 | 1511 | |
1479 | 1512 | |
1480 | 1513 | |
1514 | + /** |
|
1515 | + * @param string $binary_numerator |
|
1516 | + */ |
|
1481 | 1517 | public static function DecimalBinary2Float($binary_numerator) { |
1482 | 1518 | $numerator = bindec($binary_numerator); |
1483 | 1519 | $denominator = bindec('1'.str_repeat('0', strlen($binary_numerator))); |
@@ -1512,6 +1548,9 @@ discard block |
||
1512 | 1548 | // - OR just substring(data) if length is negative! |
1513 | 1549 | // indexes == 'IGNORE**' are ignored |
1514 | 1550 | |
1551 | + /** |
|
1552 | + * @param string $algorithm |
|
1553 | + */ |
|
1515 | 1554 | public static function ReadSequence($algorithm, &$target, &$data, $offset, $parts_array) { |
1516 | 1555 | |
1517 | 1556 | // Loop thru $parts_array |