Свойство | Type | Description | |
---|---|---|---|
$_gallery | Ansel_Gallery | The gallery we are decorating | |
$_images | array | An array of image ids that this gallery contains | |
$_modeHelper | The gallery mode helper |
Méthode | Description | |
---|---|---|
__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. |
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. |
public countImages ( boolean $subgalleries = false ) : integer | ||
$subgalleries | boolean | Determines whether subgalleries should be counted or not. |
Résultat | integer | number of images in this gallery |
public getImagesByGrouping ( ) |
public getKeyImage ( Ansel_Style $style = null ) : mixed | ||
$style | Ansel_Style | Force the use of this style, if it's available |
Résultat | mixed | The image_id of the key image or false. |
public getParent ( ) : Ansel_Gallery | ||
Résultat | Ansel_Gallery | The direct parent Horde_Share_Object |
public getRecentImages ( integer $limit = 10 ) : array | ||
$limit | integer | The maximum number of images to return. |
Résultat | array | An array of Ansel_Image objects |
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. |
protected Ansel_Gallery $_gallery | ||
Résultat | Ansel_Gallery |
protected array $_images | ||
Résultat | array |