$resource
$resource : mixed
The ansel resource this view is for.
Ansel_View_EmbeddedRenderer_Slideshow
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
The gallery object (will be eq to $resource in a gallery view
addWidget(\Ansel_Widget $widget)
Add an Ansel_Widget to be displayed in this view.
\Ansel_Widget | $widget | The Ansel_Widget to display |
json(\Ansel_Gallery $gallery, array $params = array()) : string
JSON representation of this gallery's images. We don't use Ansel_Gallery::toJson() on purpose since that is a general jsonification of the gallery data. This method is specific to the view, paging, links etc.
..
\Ansel_Gallery | $gallery | The gallery to represent in this view |
array | $params | An array of parameters for this method: full - Should a full URL be generated? [false] from - Starting image count [0] count - The number of images to include (starting at from) [0] image_view - The type of ImageGenerator to obtain the src url for. [screen] view_links - Should the JSON include links to the Image and/or Gallery View? [false] perpage - Number of images per page [from user prefs] |
A serialized JSON array.
_getGallery(integer $galleryId = null, string $slug = '') : \Ansel_Gallery
Todo
integer | $galleryId | The gallery id |
string | $slug | The gallery slug |
The requested Ansel_Gallery object