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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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