Class AlbumBase
Album Base Class
- PersistentObject
- ThemeObject
- MediaObject
- AlbumBase
public
|
|
protected
boolean
|
|
public
string
|
|
public
string
|
|
public
object
|
|
public
array|null
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
#
getSortDirection( string $what = 'image' )
Returns either the subalbum sort direction or the image sort direction of the album |
public
string
|
#
getSortType( $what = 'image' )
Returns the sort type of the album images Will return a parent sort type if the sort type for this album is empty |
public
|
|
public
|
|
public
string
|
|
public
string
|
#
getAlbumSortKey( string $sorttype = null )
Returns the DB key associated with the subalbum sort type |
public
array
|
|
public
integer
|
|
public
|
#
getNumAllAlbums( )
Returns the count of all subalbums of all sublevels Note that dynamic albums are not counted |
public
array
|
#
getImages( string $page = 0, integer $firstPageCount = 0, string $sorttype = null, string $sortdirection = null, boolean $care = true, boolean $mine = NULL )
Returns a of a slice of the images for this album. They will also be sorted according to the sort type of this album, or by filename if none has been set. |
public
integer
|
|
public
|
#
getNumAllImages( )
Returns the number of images in this album and subalbums of all levels Note that dynamic albums are not counted. |
public
integer
|
|
public
|
#
getAlbumThumbImage( )
Gets the album's set thumbnail image from the database if one exists, otherwise, finds the first image in the album or sub-album and returns it as an Image object. |
public
string
|
|
public
|
|
public
string
|
|
public
boolean
|
|
protected
integer
|
|
public
integer
|
|
public
boolean
|
|
protected
|
|
public
integer
|
|
public
boolean
|
#
isValidMoveCopyDestination( string $destination )
Checks is the destination is not a subfolder of the current folder itself |
public
|
#
garbageCollect( boolean $deep = false )
For every image in the album, look for its file. Delete from the database if the file does not exist. Same for each sub-directory/album. |
protected
array
|
#
loadFileNames( $dirs = false )
Load all of the filenames that are found in this Albums directory on disk. Returns an array with all the names. |
public
boolean
|
|
public
string
|
|
public
|
|
public
object
|
|
public
|
|
public
|
#
checkforGuest( unknown_type & $hint = NULL, unknown_type & $show = NULL )
Checks if guest is loggedin for the album |
public
|
|
public
boolean
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
protected
array
|
#
sortImageArray( array $images, string $sorttype, string $sortdirection, boolean $mine = NULL )
sortImageArray will sort an array of Images based on the given key. The key must be one of (filename, title, sort_order) at the moment. |
protected
|
|
public
|
|
public
object
|
|
public
object
|
|
public
integer
|
getDesc(),
getExpireDate(),
getPassword(),
getPasswordHint(),
getPublishDate(),
getSortOrder(),
getUser(),
setDesc(),
setExpireDate(),
setPassword(),
setPasswordHint(),
setPublishDate(),
setSortOrder(),
setUser()
|
__toString(),
checkChanges(),
clearCache(),
get(),
getData(),
getID(),
getLastChange(),
getLastChangeUser(),
instantiate(),
save(),
set(),
setLastChange(),
setLastchangeUser()
|
public
|
$name
|
|
public
|
$linkname
|
|
public
|
$localpath
|
|
public
boolean
|
$exists
|
#
true
|
public
|
$images
|
#
null
|
public
|
$parent
|
#
null
|
public
|
$parentalbum
|
#
null
|
public
|
$parentalbums
|
#
null
|
public
array
|
$sidecars
|
#
array()
|
public
|
$manage_rights
|
#
MANAGE_ALL_ALBUM_RIGHTS
|
public
|
$manage_some_rights
|
#
ALBUM_RIGHTS
|
public
|
$view_rights
|
#
ALL_ALBUMS_RIGHTS
|
protected
|
$subalbums
|
#
null
|
protected
|
$index
|
|
protected
|
$lastimagesort
|
#
NULL
|
protected
|
$lastsubalbumsort
|
#
NULL
|
protected
|
$albumthumbnail
|
#
NULL
|
protected
|
$subrights
|
#
NULL
|
protected
|
$num_allalbums
|
#
null
|
protected
|
$num_allimages
|
#
null
|
protected
|
$is_public
|
#
null
|
$comments
|
$id,
$loaded,
$table,
$transient
|