\Ansel_Widget_OtherGalleries

Ansel_Widget_OtherGalleries:: class to display a widget containing mini thumbnails and links to other galleries owned by the same user as the currently viewed image/gallery.

Copyright 2008-2017 Horde LLC (http://www.horde.org/)

Summary

Methods
Properties
Constants
__construct()
attach()
__get()
html()
No public properties found
No constants found
_htmlBegin()
_htmlEnd()
isSupported()
_getOtherGalleries()
$_params
$_view
$_style
$_title
$_autoRender
$_supported_views
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

Any parameters this widget will need.

.

Type

array

$_view

$_view : \Ansel_View

Reference to the Ansel_View we are attaching to

Type

\Ansel_View

$_style

$_style : array

Holds the style definition for the gallery this view is for (or the image's parent gallery if this is for an image view).

Type

array

$_title

$_title : string

Title for this widget.

Type

string

$_autoRender

$_autoRender : string

Determine if this widget will be automatically rendered, or if it is the calling code's responsibility to render it.

Type

string

$_supported_views

$_supported_views : array

List of views this widget supports. Assume we support both. Concrete classes should override this if this is not the case.

Type

array

Methods

__construct()

__construct(array  $params) : \Ansel_Widget

Constructor render style

Parameters

array $params

Returns

\Ansel_Widget

attach()

attach(\Ansel_View_Base  $view) : boolean

Override the parent class' attach method and set the owner in the title string.

Parameters

\Ansel_View_Base $view

The view we are attaching to

Returns

boolean

__get()

__get(  $property) 

Parameters

$property

html()

html() : string

Build the HTML for this widget.

Returns

string —

The HTML representing this widget.

_htmlBegin()

_htmlBegin() : string

Default HTML for the beginning of the widget.

Returns

string

_htmlEnd()

_htmlEnd() : string

Default HTML for the end of the widget.

Returns

string

isSupported()

isSupported(string  $view) : boolean

Determine if a particular view (Image, Gallery etc.

.) is supported by this widget.

Parameters

string $view

The view to check

Returns

boolean

_getOtherGalleries()

_getOtherGalleries(\Horde_View  $view) 

Build the HTML for the other galleries widget content.

Parameters

\Horde_View $view

The view object.