$resource
$resource : mixed
The ansel resource this view is for.
The Ansel_View_List:: provides a view for handling lists of galleries.
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 |
__construct(array $params = array())
Const'r
array | $params | Any parameters that the view might need. In addition to the params taken by Ansel_View_Gallery, this view can also take: groupby - Group the results (owner) owner - The owner to group by tags - Limit to galleries matching tags gallery_ids - No fitering, just show these galleries pager_url - The url for the pager to use see Ansel_Gallery for more information on the url parameters. |
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