Class Ansel_GalleryMode_Normal
Ansel_Gallery_Mode_Normal:: Class for encapsulating gallery methods that
depend on the current display mode of the gallery.
Copyright 2008-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
-
Ansel_GalleryMode_Base
-
Ansel_GalleryMode_Normal
Methods summary
public
array
|
#
getGalleryChildren( integer $perm = Horde_Perms::SHOW, integer $from = 0, integer $to = 0 )
Get the children of this gallery.
Get the children of this gallery.
Parameters
- $perm
- The permissions to limit to.
- $from
- The child to start at.
- $to
- $count The number of children to return.
Returns
array A mixed array of Ansel_Gallery and Ansel_Image objects
that are children of this gallery.
|
public
An
|
#
getGalleryCrumbData( )
Get an array describing where this gallery is in a breadcrumb trail.
Get an array describing where this gallery is in a breadcrumb trail.
Returns
An array of 'title' and 'navdata' hashes with the [0] element
being the deepest part.
|
public
integer
|
#
countGalleryChildren( integer $perm = Horde_Perms::SHOW, boolean $galleries_only = false )
Return the count this gallery's children
Return the count this gallery's children
Parameters
- $perm
- The permissions to require.
- $galleries_only
- Only include galleries, no images.
Returns
integer The count of this gallery's children.
|
public
array
|
#
listImages( integer $from = 0, integer $count = 0 )
Lists a slice of the image ids in this gallery.
Lists a slice of the image ids in this gallery.
Parameters
- $from
- The image to start listing.
- $count
- The numer of images to list.
Returns
array An array of image_ids
|
public
boolean
|
#
moveImagesTo( array $images, Ansel_Gallery $gallery )
Move images from this gallery to another.
Move images from this gallery to another.
Parameters
- $images
- The image ids to move.
- $gallery
- The gallery to move images into.
Returns
boolean
Throws
|
public
boolean
|
#
removeImage( integer $image, boolean $isStack )
Remove an image from Ansel.
Remove an image from Ansel.
Parameters
- $image
- Ansel_Image $image The image id or object
- $isStack
- This represents a stack image
Returns
boolean
Throws
Horde_Exception_NotFound
|
public
|
#
getImages( integer $from = 0, integer $count = 0 )
Gets a slice of the images in this gallery.
Gets a slice of the images in this gallery.
Parameters
- $from
- The image to start fetching.
- $count
- The numer of images to return.
|
public
boolean
|
#
hasSubGalleries( )
Checks if the gallery has any subgallery
Checks if the gallery has any subgallery
Returns
boolean
|
public
integer
|
#
countImages( boolean $subgalleries = false )
Returns the number of images in this gallery and, optionally, all
sub-galleries.
Returns the number of images in this gallery and, optionally, all
sub-galleries.
Parameters
- $subgalleries
- <p>Determines whether subgalleries should
be counted or not.</p>
Returns
integer number of images in this gallery
|