*
* 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>
/**
* 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
'day' => $day);
$trail[] = array('title' => $text, 'navdata' => $navdata);
-
}
if (!empty($month)) {
/**
* 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)
{
} 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 */