PHP 클래스 Ansel_View_GalleryRenderer_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 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$children The Ansel_Image or Ansel_DateGallery objects that appear on the current page in the current view.
$date If we are grouping by date, this holds the currently selected date parts.
$galleryId integer The gallery id for this view's gallery (Convenience instead of $this->view->gallery->id)
$gallerySlug string Gallery slug for current gallery.
$mode integer 0 == Normal 1 == Group by date
$numTiles integer The total number of tiles that this view contains
$page integer The current page we are viewing
$pageend integer The last tile number on the current page.
$pagestart integer The tile number we are starting with on the current page.
$perpage integer Holds number of tiles to display per page
$style Ansel_Style The style definition.
$title string Human readable title for this view type
$view Ansel_View_Gallery The Ansel_View_Gallery object that this Renderer belongs to.

공개 메소드들

메소드 설명
__construct ( Ansel_View_Gallery $view = null ) Constructor
fetchChildren ( boolean $noauto ) Default implementation for fetching children/images for this view.
getChildImageIds ( ) : array Return the image ids contained in the gallery.
html ( ) : string Return the HTML for this view. Done this way so we can override this in subclasses if desired.
init ( ) Initialize the renderer. This *must* be called before any attempt is made to display or otherwise interact with the renderer.

보호된 메소드들

메소드 설명
_getHordeView ( ) : Horde_View Return an initialized Horde_View instance, populated with all the values common to all Gallery views.
_getPagerUrl ( ) : Horde_Url Return the current pagerurl.
_init ( ) Stub to be overridden by child classes if needed.
_setupPager ( Horde_View &$view ) Populate the Horde_View with the $pager object.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Ansel_View_Gallery $view = null )
$view Ansel_View_Gallery

_getHordeView() 보호된 메소드

Return an initialized Horde_View instance, populated with all the values common to all Gallery views.
protected _getHordeView ( ) : Horde_View
리턴 Horde_View

_getPagerUrl() 보호된 메소드

Return the current pagerurl.
protected _getPagerUrl ( ) : Horde_Url
리턴 Horde_Url The url

_init() 보호된 메소드

Stub to be overridden by child classes if needed.
protected _init ( )

_setupPager() 보호된 메소드

Populate the Horde_View with the $pager object.
protected _setupPager ( Horde_View &$view )
$view Horde_View The Horde_View object.

fetchChildren() 공개 메소드

Other view classes can override this if they need anything special.
public fetchChildren ( boolean $noauto )
$noauto boolean Flag to indicate if we shouldn't automatically drill down on views that support this. E.g., DateMode.

getChildImageIds() 공개 메소드

Return the image ids contained in the gallery.
public getChildImageIds ( ) : array
리턴 array An array of image ids.

html() 추상적인 공개 메소드

Return the HTML for this view. Done this way so we can override this in subclasses if desired.
abstract public html ( ) : string
리턴 string

init() 공개 메소드

Initialize the renderer. This *must* be called before any attempt is made to display or otherwise interact with the renderer.
public init ( )

프로퍼티 상세

$children 공개적으로 프로퍼티

The Ansel_Image or Ansel_DateGallery objects that appear on the current page in the current view.
public $children

$date 공개적으로 프로퍼티

If we are grouping by date, this holds the currently selected date parts.
public $date

$galleryId 공개적으로 프로퍼티

The gallery id for this view's gallery (Convenience instead of $this->view->gallery->id)
public int $galleryId
리턴 integer

$gallerySlug 공개적으로 프로퍼티

Gallery slug for current gallery.
public string $gallerySlug
리턴 string

$mode 공개적으로 프로퍼티

0 == Normal 1 == Group by date
public int $mode
리턴 integer

$numTiles 공개적으로 프로퍼티

The total number of tiles that this view contains
public int $numTiles
리턴 integer

$page 공개적으로 프로퍼티

The current page we are viewing
public int $page
리턴 integer

$pageend 공개적으로 프로퍼티

The last tile number on the current page.
public int $pageend
리턴 integer

$pagestart 공개적으로 프로퍼티

The tile number we are starting with on the current page.
public int $pagestart
리턴 integer

$perpage 공개적으로 프로퍼티

Holds number of tiles to display per page
public int $perpage
리턴 integer

$style 공개적으로 프로퍼티

The style definition.
public Ansel_Style $style
리턴 Ansel_Style

$title 공개적으로 프로퍼티

Human readable title for this view type
public string $title
리턴 string

$view 공개적으로 프로퍼티

The Ansel_View_Gallery object that this Renderer belongs to.
public Ansel_View_Gallery $view
리턴 Ansel_View_Gallery