ws, phpdoc
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 31 Aug 2010 15:45:47 +0000 (11:45 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 31 Aug 2010 23:06:00 +0000 (19:06 -0400)
ansel/lib/Gallery.php
ansel/lib/Gallery/Decorator/Date.php
ansel/lib/GalleryMode/Date.php

index 5d278aa..dc40517 100644 (file)
@@ -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 <mrubinsk@horde.org>
index cc7511f..d6d6fb9 100644 (file)
@@ -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
index 576b432..cbb7440 100644 (file)
@@ -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 */