Class Ansel_View_Gallery
The Ansel_View_Gallery:: class wraps display of individual images.
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
-
Ansel_View_Base
-
Ansel_View_Ansel
-
Ansel_View_Gallery
Methods summary
public
|
#
__construct( array $params = array() )
Const'r
Parameters
- $params
- Any parameters that the view might need.
<pre>gallery_id The gallery id this view is <span class="php-keyword1">for</span>. <span class="php-keyword1">If</span> omitted, it
looks <span class="php-keyword1">for</span> a query parameter called <span class="php-quote">'gallery'</span>
gallery_slug Same <span class="php-keyword1">as</span> above, but a slug
gallery_view_url <span class="php-keyword1">If</span> set, this is used <span class="php-keyword1">as</span> the <span class="php-keyword2">link</span> to a gallery
view. %g is replaced by the gallery_id <span class="php-keyword1">and</span> %s is
replaced by the gallery_slug.
gallery_view The specific Renderer to <span class="php-keyword1">use</span>, <span class="php-keyword1">if</span> needed.
(GalleryLightbox, Gallery etc...).
image_view_url <span class="php-keyword1">If</span> this is set, the image tiles will <span class="php-keyword1">use</span> this url
<span class="php-keyword1">for</span> the image view <span class="php-keyword2">link</span>. %i <span class="php-keyword1">and</span> %g will be
replaced by image_id <span class="php-keyword1">and</span> gallery_id respectively.
%s will be replaced by the gallery_slug
image_view_src <span class="php-keyword1">If</span> this is set to <span class="php-keyword1">true</span>, the image view <span class="php-keyword2">link</span> will go
directly to the actual image. This overrides any
setting of image_view_url.
image_view_attributes An optional <span class="php-keyword1">array</span> of attribute => value pairs
that are used <span class="php-keyword1">as</span> attributes of the image view
<span class="php-keyword2">link</span>.
image_view_title Specifies which property of the image object
to <span class="php-keyword1">use</span> <span class="php-keyword1">as</span> the image caption.
image_onclick Specifies a onclick handler <span class="php-keyword1">for</span> the image tile
links.
style Force the <span class="php-keyword1">use</span> of this named style.
api <span class="php-keyword1">If</span> set, we are being called from the external api
page The gallery page number to display <span class="php-keyword1">if</span> not the
<span class="php-keyword1">default</span> value of the first page (page = <span class="php-num">0</span>)
day, month, year Numeric <span class="php-keyword2">date</span> part values to describe the gallery
<span class="php-keyword2">date</span> grouping to view in <span class="php-keyword2">date</span> mode.
force_date_grouping <span class="php-keyword1">Do</span> not auto navigate to the first <span class="php-keyword2">date</span> grouping
with more then one resource. Used from the api
when clicking on breadcrumb links, <span class="php-keyword1">for</span> example.</pre>
See
Overrides
|
public
|
|
public
string
|
#
getTitle( )
Get this gallery's title.
Get this gallery's title.
Returns
string The gallery's title.
|
public
string
|
#
html( )
Return the HTML representing this view.
Return the HTML representing this view.
Returns
string The HTML.
|
public
|
|