@@ -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 | { |
@@ -108,6 +108,7 @@ |
||
| 108 | 108 | * @param string $action, should be 'crop', 'scale', 'rotate','flip', or 'save' |
| 109 | 109 | * @param string $relative the relative image filename |
| 110 | 110 | * @param string $fullpath the fullpath to the image file |
| 111 | + * @param string $action |
|
| 111 | 112 | * @return array with image information |
| 112 | 113 | * <code>array('src'=>'url of the image', 'dimensions'=>'width="xx" height="yy"', |
| 113 | 114 | * 'file'=>'image file, relative', 'fullpath'=>'full path to the image');</code> |
@@ -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(); |