From: Michael J. Rubinsky Date: Tue, 31 Aug 2010 15:45:47 +0000 (-0400) Subject: ws, phpdoc X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=942bf89bab0d677af430b8893eadf2cc88ad330e;p=horde.git ws, phpdoc --- diff --git a/ansel/lib/Gallery.php b/ansel/lib/Gallery.php index 5d278aa0b..dc405172d 100644 --- a/ansel/lib/Gallery.php +++ b/ansel/lib/Gallery.php @@ -5,7 +5,7 @@ * * Copyright 2001-2010 The Horde Project (http://www.horde.org/) * - * See the enclos ed file COPYING for license information (GPL). If you + * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. * * @author Michael J. Rubinsky diff --git a/ansel/lib/Gallery/Decorator/Date.php b/ansel/lib/Gallery/Decorator/Date.php index cc7511f25..d6d6fb978 100644 --- a/ansel/lib/Gallery/Decorator/Date.php +++ b/ansel/lib/Gallery/Decorator/Date.php @@ -37,9 +37,8 @@ class Ansel_Gallery_Decorator_Date /** * The Ansel_Gallery_Date constructor. * - * The client - * code (Ansel_GalleryMode_Date) needs to call the setDate() method on the - * new GalleryMode_Date object before it's used. + * The client code (Ansel_GalleryMode_Date) needs to call the setDate() + * method on the new GalleryMode_Date object before it's used. * * @param Ansel_Gallery $gallery The gallery we are decorating. * @param array $images An array of image ids that this grouping diff --git a/ansel/lib/GalleryMode/Date.php b/ansel/lib/GalleryMode/Date.php index 576b432a6..cbb7440d5 100644 --- a/ansel/lib/GalleryMode/Date.php +++ b/ansel/lib/GalleryMode/Date.php @@ -83,7 +83,6 @@ class Ansel_GalleryMode_Date extends Ansel_GalleryMode_Base 'day' => $day); $trail[] = array('title' => $text, 'navdata' => $navdata); - } if (!empty($month)) { @@ -145,11 +144,13 @@ class Ansel_GalleryMode_Date extends Ansel_GalleryMode_Base /** * Get the children of this gallery. * - * @param integer $perm The permissions to limit to. - * @param integer $from The child to start at. - * @param integer $to The child to end with. + * @param integer $perm The permissions to limit to. + * @param integer $from The child to start at. + * @param integer $to The child to end with. + * @param boolean $noauto Whether or not to automatically drill down to the + * first grouping with more then one group. * - * @return A mixed array of Ansel_Gallery_Decorator_Date and Ansel_Image objects. + * @return array A mixed array of Ansel_Gallery_Decorator_Date and Ansel_Image objects. */ public function getGalleryChildren($perm = Horde_Perms::SHOW, $from = 0, $to = 0, $noauto = false) { @@ -171,8 +172,8 @@ class Ansel_GalleryMode_Date extends Ansel_GalleryMode_Base } else { $gallery_where = 'gallery_id = ' . $this->_gallery->id; } - $sorted_dates = array(); + /* First let's see how specific the date is */ if (!count($this->_date) || empty($this->_date['year'])) { /* All available images - grouped by year */