\Ansel_Style

The Ansel_Style:: class is responsible for holding information about a single Ansel style.

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()
requiresPng()
getHash()
__get()
__set()
__isset()
__wakeup()
$widgets
No constants found
No protected methods found
$_properties
N/A
No private methods found
No private properties found
N/A

Properties

$widgets

$widgets : 

Work around issue with arrays and __get

Type

$_properties

$_properties : array

Holds the style definition. Currently supported properties are: <pre> 'thumbstyle' - The ImageGenerator to use for thumbnails, e.g. PolaroidThumb or RoundedThumb 'background' - The background color of the view area. If needed, generated images will contain this as their background color.

'gallery_view' - The GalleryRenderer type to use for the gallery view, e.g. GalleryLightbox or Gallery. 'widgets' - An array of widgets and their configuration values to display on the gallery view. e.g. Array('Geotag' => array(), 'Tags' => array('view' => 'gallery')) 'width' - Optional width of generated thumbnails. 'height' - Option height of generated thumbnails. 'image_widgets' - @TODO: not yet implemented.

Type

array

Methods

__construct()

__construct(  $properties) 

Parameters

$properties

requiresPng()

requiresPng() : boolean

Return if this style requires PNG support in the browser. Assumes that any thumbstyle other than the traditional "Thumb", withOUT a background is considered to requre PNG support in the browser.

Returns

boolean

getHash()

getHash(  $view) 

Parameters

$view

__get()

__get(  $property) 

Parameters

$property

__set()

__set(  $property,   $value) 

Parameters

$property
$value

__isset()

__isset(  $property) 

Parameters

$property

__wakeup()

__wakeup() 

HACK - not sure how to upgrade the serialized Ansel_Style objects in the stored galleries.

.. the data is protected, so unserializing it wouldn't give access to the needed information to move it.