Свойство | Тип | Описание | |
---|---|---|---|
$_date | array | The date part array for the current grouping. | |
$_features | array | Supported features | |
$_subGalleries | array | The subgalleries whose images need to be included in this date grouping. |
Метод | Описание | |
---|---|---|
countGalleryChildren ( integer $perm = Horde_Perms::SHOW, boolean $galleries_only = false, boolean $noauto = true ) : integer | Return the count of this gallery's children | |
countImages ( boolean $subgalleries = false ) : integer | Returns the number of images in this gallery and, optionally, all sub-galleries. | |
getDate ( ) : array | Getter for date | |
getGalleryChildren ( integer $perm = Horde_Perms::SHOW, integer $from, integer $to, boolean $noauto = false ) : array | Get the children of this gallery. | |
getGalleryCrumbData ( ) : array | Get an array describing where this gallery is in a breadcrumb trail. | |
getImages ( integer $from, integer $count ) | Gets a slice of the images in this gallery. | |
hasFeature ( string $feature ) : boolean | See if a feature is supported. | |
hasSubGalleries ( ) : boolean | Checks if the gallery has any subgalleries. This will always be false for a gallery in date view. | |
listImages ( integer $from, integer $count ) : array | Lists a slice of the image ids in this gallery. | |
moveImagesTo ( array $images, Ansel_Gallery $gallery ) : boolean | Moves images from one gallery to another. Since we're viewing by date some images might belong to a subgallery so we need to take care to udate the appropriate gallery data. | |
removeImage ( mixed $image, boolean $isStack ) : boolean | Remove an image from this gallery. Note that the image might actually belong to a subgallery of this gallery since we are viewing by date. | |
setDate ( array $date = [] ) | Setter for date |
Метод | Описание | |
---|---|---|
_getArraySlice ( unknown_type $array, unknown_type $from, unknown_type $count, $preserve = false ) : unknown | Helper function to get an array slice while preserving keys. | |
_loadSubGalleries ( ) | Get this gallery's subgalleries. Populates the private member _subGalleries |
protected _getArraySlice ( unknown_type $array, unknown_type $from, unknown_type $count, $preserve = false ) : unknown | ||
$array | unknown_type | |
$from | unknown_type | |
$count | unknown_type | |
Результат | unknown |
protected _loadSubGalleries ( ) |
public countGalleryChildren ( integer $perm = Horde_Perms::SHOW, boolean $galleries_only = false, boolean $noauto = true ) : integer | ||
$perm | integer | The permissions to require. |
$galleries_only | boolean | Only include galleries, no images. (Ignored since this makes no sense for a gallery grouped by dates). |
$noauto | boolean | Auto navigate down to the first populated date grouping. |
Результат | integer | The count of this gallery's children. The count is either a count of of the number of date groupings (months, days, etc..) that need to be displayed, or a count of all the images in the current date grouping (for a specific day). |
public countImages ( boolean $subgalleries = false ) : integer | ||
$subgalleries | boolean | Determines whether subgalleries should be counted or not. |
Результат | integer | number of images in this gallery |
public getGalleryChildren ( integer $perm = Horde_Perms::SHOW, integer $from, integer $to, boolean $noauto = false ) : array | ||
$perm | integer | The permissions to limit to. |
$from | integer | The child to start at. |
$to | integer | The child to end with. |
$noauto | boolean | Whether or not to automatically drill down to the first grouping with more then one group. |
Результат | array | A mixed array of Ansel_Gallery_Decorator_Date and Ansel_Image objects. |
public getGalleryCrumbData ( ) : array | ||
Результат | array | An array of 'title' and 'navdata' hashes with the [0] element being the deepest part. |
public hasFeature ( string $feature ) : boolean | ||
$feature | string | The feature |
Результат | boolean |
public hasSubGalleries ( ) : boolean | ||
Результат | boolean |
public moveImagesTo ( array $images, Ansel_Gallery $gallery ) : boolean | ||
$images | array | An array of image_ids to move. |
$gallery | Ansel_Gallery | The Ansel_Gallery to move them to. |
Результат | boolean |
protected array $_date | ||
Результат | array |
protected array $_subGalleries | ||
Результат | array |