Ansel_StorageClass for interfacing with back end data storage.
Located in /lib/Ansel.php (line 3016)
void
countGalleries
(string $userid, [integer $perm = PERMS_SHOW], [mixed $attributes = null], [string $parent = null], [boolean $allLevels = true])
Ansel_Gallery
createGallery
([array $attributes = array()], [object Perms $perm = null], [mixed $parent = null])
string
getImageJson
(array $images, [string $style = null], [boolean $full = false], [string $image_view = 'mini'], [boolean $view_links = false])
void
getRandomGallery
([ $perm = PERMS_SHOW], [ $attributes = null], [ $parent = null], [ $allLevels = true])
array
getRecentImages
([array $galleries = array()], [integer $limit = 10], [string $slugs = array()], string $where)
mixed
listGalleries
([integer $perm = PERMS_SHOW], [mixed $attributes = null], [mixed $parent = null], [boolean $allLevels = true], [integer $from = 0], [integer $count = 0], [string $sort_by = null], [integer $direction = 0])
mixed
listImages
(integer $gallery_id, [integer $from = 0], [integer $count = 0], [mixed $fields = 'image_id'], [string $where = ''], [mixed $sort = 'image_sort'])
Constructor Ansel_Storage (line 3032)
countCategories (line 3662)
countGalleries (line 3682)
Return the count of galleries that the user has specified permissions to and that match any of the requested attributes.
createGallery (line 3060)
Create and initialise a new gallery object.
emptyGallery (line 3355)
Empties a gallery of all images.
galleryExists (line 3613)
Check if a gallery exists. Need to do this here instead of Horde_Share since Horde_Share::exists() takes a share_name, not a share_id plus we might also be checking by gallery_slug and this is more efficient than a listShares() call for one gallery.
getGalleries (line 3345)
Retrieve an array of Ansel_Gallery objects for the requested ids
getGalleriesBySlugs (line 3320)
Retrieve an array of Ansel_Gallery objects for the given slugs.
getGallery (line 3279)
Retrieve an Ansel_Gallery given the share id
getGalleryBySlug (line 3260)
Retrieve an Ansel_Gallery given the gallery's slug
getImage (line 3437)
Returns the image corresponding to the given id.
getImageJson (line 3756)
Retrieve json data for an arbitrary list of image ids, not necessarily from the same gallery.
getImages (line 3477)
Returns the images corresponding to the given ids.
getImagesGeodata (line 3907)
Return images' geolocation data.
getRandomGallery (line 3828)
Returns a random Ansel_Gallery from a list fitting the search criteria.
getRecentImages (line 3552)
Return a list of image ids of the most recently added images.
getRecentImagesGeodata (line 3929)
Like getRecentImages, but returns geotag data for the most recently added images from the current user. Useful for providing images to help locate images at the same place.
listCategories (line 3634)
Return a list of categories containing galleries with the given permissions for the current user.
listGalleries (line 3729)
Retrieves the current user's gallery list from storage.
listImages (line 3860)
Lists a slice of the image ids in the given gallery.
searchLocations (line 3936)
slugExists (line 3220)
Check that a slug exists.
_getImageCommentCounts (line 3525)
_getImageFields (line 3954)
Helper function to get a string of field names
Documentation generated on Sun, 30 Jan 2011 05:08:43 +0000 by phpDocumentor 1.4.3