Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
_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. |
public __construct ( Ansel_View_Gallery $view = null ) | ||
$view | Ansel_View_Gallery |
protected _getHordeView ( ) : Horde_View | ||
return | Horde_View |
protected _getPagerUrl ( ) : Horde_Url | ||
return | Horde_Url | The url |
protected _setupPager ( Horde_View &$view ) | ||
$view | Horde_View | The Horde_View object. |
public fetchChildren ( boolean $noauto ) | ||
$noauto | boolean | Flag to indicate if we shouldn't automatically drill down on views that support this. E.g., DateMode. |
public getChildImageIds ( ) : array | ||
return | array | An array of image ids. |
public init ( ) |
public $children |
public $date |
public int $galleryId | ||
return | integer |
public string $gallerySlug | ||
return | string |
public int $numTiles | ||
return | integer |
public int $pageend | ||
return | integer |
public int $pagestart | ||
return | integer |
public int $perpage | ||
return | integer |
public string $title | ||
return | string |