Add a custom stylesheet to the current page
void
attachStylesheet
(string $stylesheet, [boolean $link = false])
-
string
$stylesheet: The stylesheet to add. A path relative to $themesfs
-
boolean
$link: Immediately output the CSS link
Downloads all requested images as a zip file. Assumes all permissions have been checked on the requested resource.
void
downloadImagesAsZip
([ $gallery = null], [unknown_type $images = array()])
-
unknown_type
$images
-
$gallery
Get an array of all currently viewable styles.
void
getAvailableStyles
()
Generate a list of breadcrumbs showing where we are in the gallery tree.
void
getBreadCrumbs
([ $separator = ' » '], [ $gallery = null])
Get a date parts array containing only enough date parts for the depth we are at. If an empty array is passed, attempt to get the parts from url parametrs. Any missing date parts must be set to 0.
A
getDateParameter
([array $date = array()])
-
array
$date: A full date parts array or an empty array.
Create and initialize the database object.
mixed
&getDb
()
Return a link to a photo placeholder, suitable for use in an <img/> tag (or a Horde::img() call, with the path parameter set to * '').
This photo should be used as a placeholder if the correct photo can't be retrieved
string
getErrorImage
([string $view = 'screen'])
-
string
$view: The view ('screen', 'thumb', or 'full') to show. Defaults to 'screen'.
Read an image from the filesystem.
array
getImageFromFile
(string $file, [array $override = array()])
-
string
$file: The filename of the image.
-
array
$override: Overwrite the file array with these values.
Obtain a Horde_Image object
Horde_Image
getImageObject
([array $params = array()])
-
array
$params: Any additional parameters
Return a link to an image, suitable for use in an <img/> tag Takes into account $conf['vfs']['direct'] and other factors.
string
getImageUrl
(string $imageId, [string $view = 'screen'], [boolean $full = false], [string $style = null])
-
string
$imageId: The id of the image.
-
string
$view: The view ('screen', 'thumb', 'prettythumb' or 'full') to show.
-
boolean
$full: Return a path that includes the server name?
-
string
$style: Use this gallery style
Build Ansel's list of menu items.
void
getMenu
([ $returnType = 'object'])
Get a style definition for the requested named style
array
getStyleDefinition
(string $style)
-
string
$style: The name of the style to fetch
Build a HTML <select> element containing all the available gallery styles.
string
getStyleSelect
(string $element_name, [string $selected = ''])
-
string
$element_name: The element's id/name attribute.
-
string
$selected: Mark this element as currently selected.
Return a properly formatted link depending on the global pretty url configuration
void
getUrlFor
(string $controller, array $data, [boolean $full = false], [integer $append_session = 0], string 4)
-
string
$controller: The controller to generate a URL for.
-
array
$data: The data needed to generate the URL.
-
boolean
$full: Generate a full URL.
-
integer
$append_session:
- = only if needed, 1 = always,
-1 = never.
-
string
4: The generated URL
Create and initialize the VFS object
VFS
&getVFS
()
Check to see if a particular image manipulation function is available.
boolean
isAvailable
(string $feature)
-
string
$feature: The name of the function.
Return a string containing an <option> listing of the given gallery array.
string
selectGalleries
([array $selected = null], [integer $perm = PERMS_SHOW], [mixed $attributes = null], [string $parent = null], [ $allLevels = true], [integer $from = 0], [integer $count = 0], [integer $ignore = null])
-
array
$selected: The gallery_id of the gallery that is selected by default in the returned option list.
-
integer
$perm: The permissions filter to use.
-
mixed
$attributes: Restrict the galleries returned to those matching $attributes. An array of attribute/values pairs or a gallery owner username.
-
string
$parent: The parent share to start listing at.
-
integer
$from: The gallery to start listing at.
-
integer
$count: The number of galleries to return.
-
integer
$ignore: An Ansel_Gallery id to ignore when building the tree.
-
$allLevels
Output the stylesheet links
void
stylesheetLinks
([boolean $custom_only = false])
-
boolean
$custom_only: Don't include ansel's base CSS file