PHP Класс Ansel_Widget_Base, horde

Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Автор: Michael J. Rubinsky ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_autoRender string Determine if this widget will be automatically rendered, or if it is the calling code's responsibility to render it.
$_params array .
$_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).
$_supported_views array List of views this widget supports. Assume we support both. Concrete classes should override this if this is not the case.
$_title string Title for this widget.
$_view Ansel_View Reference to the Ansel_View we are attaching to

Открытые методы

Метод Описание
__construct ( array $params ) : Ansel_Widget Constructor render style
__get ( $property )
attach ( Ansel_View_Base $view ) : boolean Attach this widget to the passed in view. Normally called by the Ansel_View once this widget is added.
html ( ) Get the HTML for this widget

Защищенные методы

Метод Описание
_htmlBegin ( ) : string Default HTML for the beginning of the widget.
_htmlEnd ( ) : string Default HTML for the end of the widget.
isSupported ( string $view ) : boolean Determine if a particular view (Image, Gallery etc.

Описание методов

__construct() публичный Метод

Constructor render style
public __construct ( array $params ) : Ansel_Widget
$params array
Результат Ansel_Widget

__get() публичный Метод

public __get ( $property )

_htmlBegin() защищенный Метод

Default HTML for the beginning of the widget.
protected _htmlBegin ( ) : string
Результат string

_htmlEnd() защищенный Метод

Default HTML for the end of the widget.
protected _htmlEnd ( ) : string
Результат string

attach() публичный Метод

Attach this widget to the passed in view. Normally called by the Ansel_View once this widget is added.
public attach ( Ansel_View_Base $view ) : boolean
$view Ansel_View_Base The view to attach
Результат boolean

html() абстрактный публичный Метод

Get the HTML for this widget
abstract public html ( )

isSupported() защищенный Метод

.) is supported by this widget.
protected isSupported ( string $view ) : boolean
$view string The view to check
Результат boolean

Описание свойств

$_autoRender защищенное свойство

Determine if this widget will be automatically rendered, or if it is the calling code's responsibility to render it.
protected string $_autoRender
Результат string

$_params защищенное свойство

.
protected array $_params
Результат array

$_style защищенное свойство

Holds the style definition for the gallery this view is for (or the image's parent gallery if this is for an image view).
protected array $_style
Результат array

$_supported_views защищенное свойство

List of views this widget supports. Assume we support both. Concrete classes should override this if this is not the case.
protected array $_supported_views
Результат array

$_title защищенное свойство

Title for this widget.
protected string $_title
Результат string

$_view защищенное свойство

Reference to the Ansel_View we are attaching to
protected Ansel_View $_view
Результат Ansel_View