\Ansel_View_GalleryProperties

Class to encapsulate the UI for adding/viewing/changing galleries.

Copyright 2010-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()
run()
No public properties found
No constants found
_thumbStyles()
_galleryViewStyles()
$_params
$_properties
$_title
N/A
_loadDefaults()
_output()
_runNew()
_runNewChild()
_runEdit()
_runSave()
No private properties found
N/A

Properties

$_params

$_params : array

View parameters

Type

array

$_properties

$_properties : array

Hash of gallery properties.

Type

array

$_title

$_title : string

The view title

Type

string

Methods

__construct()

__construct(array  $params = array()) 

Const'r

Parameters

array $params

Parameters for the view

run()

run() : void

Runs the view

_thumbStyles()

_thumbStyles() : array

Get a list of available, currently usable thumbnail styles.

Returns

array —

An array of Classnames => titles

_galleryViewStyles()

_galleryViewStyles() : array

Get a list of available Gallery View styles

Returns

array

_loadDefaults()

_loadDefaults() 

_output()

_output() : void

Outputs the view to the browser.

_runNew()

_runNew() : void

Set up for adding new galleries.

_runNewChild()

_runNewChild() : void

Set up for adding a new child gallery.

_runEdit()

_runEdit() : void

Handle setting up the form for editing an existing gallery

Throws

\InvalidArgumentException

_runSave()

_runSave() : void

Handles saving the gallery information from the form submission, and redirects back to previous view when complete.