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

보호된 프로퍼티들

프로퍼티 타입 설명
$_features array
$_gallery Ansel_Gallery

공개 메소드들

메소드 설명
__construct ( Ansel_Gallery $gallery ) : Ansel_GalleryMode_Base Constructor
countGalleryChildren ( integer $perm = Horde_Perms::SHOW, boolean $galleries_only = false ) : integer Return the count this gallery's children
countImages ( boolean $subgalleries = false ) : integer Returns the number of images in this gallery and, optionally, all sub-galleries.
getDate ( ) : array
getGalleryChildren ( integer $perm = Horde_Perms::SHOW, integer $from, $to ) : array Get the children of this gallery.
getGalleryCrumbData ( ) : An 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 ( $feature )
hasSubGalleries ( ) : boolean Checks if the gallery has any subgallery
listImages ( integer $from, integer $count ) : array List a slice of the image ids in this gallery.
moveImagesTo ( array $images, Ansel_Gallery $gallery ) : boolean Move images from this gallery to another.
removeImage ( $image, boolean $isStack ) : boolean Remove an image from Ansel.
setDate ( array $date = [] )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Ansel_Gallery $gallery ) : Ansel_GalleryMode_Base
$gallery Ansel_Gallery The gallery to bind to.
리턴 Ansel_GalleryMode_Base

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

Return the count this gallery's children
abstract public countGalleryChildren ( integer $perm = Horde_Perms::SHOW, boolean $galleries_only = false ) : integer
$perm integer The permissions to require.
$galleries_only boolean Only include galleries, no images.
리턴 integer The count of this gallery's children.

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

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

getDate() 공개 메소드

public getDate ( ) : array
리턴 array Date parts array.

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

Get the children of this gallery.
abstract public getGalleryChildren ( integer $perm = Horde_Perms::SHOW, integer $from, $to ) : array
$perm integer The permissions to limit to.
$from integer The child to start at.
리턴 array A mixed array of Ansel_Gallery and Ansel_Image objects that are children of this gallery.

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

Get an array describing where this gallery is in a breadcrumb trail.
abstract public getGalleryCrumbData ( ) : An
리턴 An array of 'title' and 'navdata' hashes with the [0] element being the deepest part.

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

Gets a slice of the images in this gallery.
abstract public getImages ( integer $from, integer $count )
$from integer The image to start fetching.
$count integer The numer of images to return.

hasFeature() 공개 메소드

public hasFeature ( $feature )

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

Checks if the gallery has any subgallery
abstract public hasSubGalleries ( ) : boolean
리턴 boolean

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

List a slice of the image ids in this gallery.
abstract public listImages ( integer $from, integer $count ) : array
$from integer The image to start listing.
$count integer The numer of images to list.
리턴 array An array of image_ids

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

Move images from this gallery to another.
abstract public moveImagesTo ( array $images, Ansel_Gallery $gallery ) : boolean
$images array The image ids to move.
$gallery Ansel_Gallery The gallery to move images into.
리턴 boolean

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

Remove an image from Ansel.
abstract public removeImage ( $image, boolean $isStack ) : boolean
$isStack boolean This represents a stack image
리턴 boolean

setDate() 공개 메소드

public setDate ( array $date = [] )
$date array Date parts array

프로퍼티 상세

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

protected array $_features
리턴 array