\Ansel_Widget_Geotag

Ansel_Widget_Geotag:: class to wrap the display of a Google map showing images with geolocation data.

Copyright 2009-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.

Summary

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

Properties

$_params

$_params : array

Default params

.

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

Attach widget to supplied view.

Parameters

\Ansel_View_Base $view

The view to attach

Returns

boolean

__get()

__get(  $property) 

Parameters

$property

html()

html() : string

Build the HTML for the widget

Returns

string

_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

_getGalleryImagesWithGeodata()

_getGalleryImagesWithGeodata() : array

Returns

array