MODE_NORMAL
MODE_NORMAL
Ansel_Gallery_Mode_Normal:: Class for encapsulating gallery methods that depend on the current display mode of the gallery.
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.
$_gallery : \Ansel_Gallery
__construct(\Ansel_Gallery $gallery) : \Ansel_GalleryMode_Base
Constructor
\Ansel_Gallery | $gallery | The gallery to bind to. |
getGalleryChildren(integer $perm = \Horde_Perms::SHOW, integer $from, $to) : array
Get the children of this gallery.
integer | $perm | The permissions to limit to. |
integer | $from | The child to start at. |
$to |
A mixed array of Ansel_Gallery and Ansel_Image objects that are children of this gallery.
countGalleryChildren(integer $perm = \Horde_Perms::SHOW, boolean $galleries_only = false) : integer
Return the count this gallery's children
integer | $perm | The permissions to require. |
boolean | $galleries_only | Only include galleries, no images. |
The count of this gallery's children.
moveImagesTo(array $images, \Ansel_Gallery $gallery) : boolean
Move images from this gallery to another.
array | $images | The image ids to move. |
\Ansel_Gallery | $gallery | The gallery to move images into. |