diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-03-05 15:46:04 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-03-05 15:46:04 -0800 |
commit | c38d4695a01c939840357d7f59aa836169571048 (patch) | |
tree | 997461c479b453f2cb8f9978f5199123821fd23a /modules/gallery/helpers/gallery_graphics.php | |
parent | 5ff6409a0856134a113c64768e4474e14a6c86ea (diff) |
Add missing phpDoc for the extra Item_Model argument to graphics calls
and make the param optional. #1646.
Diffstat (limited to 'modules/gallery/helpers/gallery_graphics.php')
-rw-r--r-- | modules/gallery/helpers/gallery_graphics.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/gallery/helpers/gallery_graphics.php b/modules/gallery/helpers/gallery_graphics.php index 1f47a65c..716bad18 100644 --- a/modules/gallery/helpers/gallery_graphics.php +++ b/modules/gallery/helpers/gallery_graphics.php @@ -24,8 +24,9 @@ class gallery_graphics_Core { * @param string $input_file * @param string $output_file * @param array $options + * @param Item_Model $item (optional) */ - static function rotate($input_file, $output_file, $options, $item) { + static function rotate($input_file, $output_file, $options, $item=null) { graphics::init_toolkit(); module::event("graphics_rotate", $input_file, $output_file, $options, $item); @@ -45,8 +46,9 @@ class gallery_graphics_Core { * @param string $input_file * @param string $output_file * @param array $options + * @param Item_Model $item (optional) */ - static function resize($input_file, $output_file, $options, $item) { + static function resize($input_file, $output_file, $options, $item=null) { graphics::init_toolkit(); module::event("graphics_resize", $input_file, $output_file, $options, $item); @@ -86,8 +88,9 @@ class gallery_graphics_Core { * @param string $input_file * @param string $output_file * @param array $options + * @param Item_Model $item (optional) */ - static function composite($input_file, $output_file, $options, $item) { + static function composite($input_file, $output_file, $options, $item=null) { try { graphics::init_toolkit(); |