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

보호된 프로퍼티들

프로퍼티 타입 설명
$_gallery Ansel_Gallery The gallery we are decorating
$_images array An array of image ids that this gallery contains
$_modeHelper The gallery mode helper

공개 메소드들

메소드 설명
__call ( string $method, array $args ) : mixed Magic method - pass thru methods to the wrapped Ansel_Gallery:: or to the Ansel_GalleryMode_Base:: handler.
__construct ( Ansel_Gallery $gallery, array $images = [] ) The Ansel_Gallery_Date constructor.
__get ( $property )
countChildren ( string $user, integer $perm = Horde_Perms::SHOW, boolean $allLevels = true ) : integer Return a count of the number of children this share has
countImages ( boolean $subgalleries = false ) : integer Returns the number of images in this gallery and, optionally, all sub-galleries.
getImage ( integer $id ) : Ansel_Image Returns the image in this gallery corresponding to the given id.
getImagesByGrouping ( ) Returns all image ids that this grouping contains.
getKeyImage ( Ansel_Style $style = null ) : mixed Returns the key image for this gallery.
getParent ( ) : Ansel_Gallery Returns a child's direct parent
getRecentImages ( integer $limit = 10 ) : array Return the most recently added images in this gallery.
getTile ( Ansel_Gallery $parent = null, Ansel_Style $style = null, boolean $mini = false, array $params = [] ) Output the HTML for this gallery's tile.

메소드 상세

__call() 공개 메소드

Magic method - pass thru methods to the wrapped Ansel_Gallery:: or to the Ansel_GalleryMode_Base:: handler.
public __call ( string $method, array $args ) : mixed
$method string
$args array
리턴 mixed

__construct() 공개 메소드

The client code (Ansel_GalleryMode_Date) needs to call the setDate() method on the new GalleryMode_Date object before it's used.
public __construct ( Ansel_Gallery $gallery, array $images = [] )
$gallery Ansel_Gallery The gallery we are decorating.
$images array An array of image ids that this grouping contains.

__get() 공개 메소드

public __get ( $property )

countChildren() 공개 메소드

Return a count of the number of children this share has
public countChildren ( string $user, integer $perm = Horde_Perms::SHOW, boolean $allLevels = true ) : integer
$user string The user to use for checking perms
$perm integer A Horde_Perms::* constant
$allLevels boolean Count grandchildren or just children
리턴 integer The number of child shares

countImages() 공개 메소드

Returns the number of images in this gallery and, optionally, all sub-galleries.
public countImages ( boolean $subgalleries = false ) : integer
$subgalleries boolean Determines whether subgalleries should be counted or not.
리턴 integer number of images in this gallery

getImage() 공개 메소드

Returns the image in this gallery corresponding to the given id.
public getImage ( integer $id ) : Ansel_Image
$id integer The ID of the image to retrieve.
리턴 Ansel_Image The image object corresponding to the given id.

getImagesByGrouping() 공개 메소드

Returns all image ids that this grouping contains.
public getImagesByGrouping ( )

getKeyImage() 공개 메소드

Returns the key image for this gallery.
public getKeyImage ( Ansel_Style $style = null ) : mixed
$style Ansel_Style Force the use of this style, if it's available
리턴 mixed The image_id of the key image or false.

getParent() 공개 메소드

Returns a child's direct parent
public getParent ( ) : Ansel_Gallery
리턴 Ansel_Gallery The direct parent Horde_Share_Object

getRecentImages() 공개 메소드

Return the most recently added images in this gallery.
public getRecentImages ( integer $limit = 10 ) : array
$limit integer The maximum number of images to return.
리턴 array An array of Ansel_Image objects

getTile() 공개 메소드

Output the HTML for this gallery's tile.
public getTile ( Ansel_Gallery $parent = null, Ansel_Style $style = null, boolean $mini = false, array $params = [] )
$parent Ansel_Gallery The parent Ansel_Gallery object
$style Ansel_Style A gallery style to use.
$mini boolean Force the use of a mini thumbnail?
$params array Any additional parameters the Ansel_Tile object may need.

프로퍼티 상세

$_images 보호되어 있는 프로퍼티

An array of image ids that this gallery contains
protected array $_images
리턴 array

$_modeHelper 보호되어 있는 프로퍼티

The gallery mode helper
protected $_modeHelper