$_modeHelper
$_modeHelper : \Ansel_GalleryMode_Base
The gallery mode helper
A decorator around an Ansel_Gallery to allow multiple date groupings to access the same Ansel_Gallery instance.
Copyright 2008-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
$_modeHelper : \Ansel_GalleryMode_Base
The gallery mode helper
$_gallery : \Ansel_Gallery
The gallery we are decorating
__construct(\Ansel_Gallery $gallery, array $images = array())
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.
\Ansel_Gallery | $gallery | The gallery we are decorating. |
array | $images | An array of image ids that this grouping contains. |
getTile(\Ansel_Gallery $parent = null, \Ansel_Style $style = null, boolean $mini = false, array $params = array())
Output the HTML for this gallery's tile.
\Ansel_Gallery | $parent | The parent Ansel_Gallery object |
\Ansel_Style | $style | A gallery style to use. |
boolean | $mini | Force the use of a mini thumbnail? |
array | $params | Any additional parameters the Ansel_Tile object may need. |
getImage(integer $id) : \Ansel_Image
Returns the image in this gallery corresponding to the given id.
integer | $id | The ID of the image to retrieve. |
The image object corresponding to the given id.
getKeyImage(\Ansel_Style $style = null) : mixed
Returns the key image for this gallery.
\Ansel_Style | $style | Force the use of this style, if it's available |
The image_id of the key image or false.
countChildren(string $user, integer $perm = \Horde_Perms::SHOW, boolean $allLevels = true) : integer
Return a count of the number of children this share has
string | $user | The user to use for checking perms |
integer | $perm | A Horde_Perms::* constant |
boolean | $allLevels | Count grandchildren or just children |
The number of child shares
getParent() : \Ansel_Gallery
Returns a child's direct parent
The direct parent Horde_Share_Object