Class AlbumBase
Root class for images and albums
- PersistentObject
- ThemeObject
- MediaObject
- AlbumBase
public
|
|
protected
boolean
|
|
public
string
|
|
public
string
|
|
public
object
|
|
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
|
|
public
string
|
|
public
string
|
#
getAlbumSortKey( string $sorttype = null )
Returns the DB key associated with the subalbum sort type |
public
array
|
|
public
integer
|
|
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
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
string
|
#
getAlbumThumb( )
Gets the thumbnail URL for the album thumbnail image as returned by $this->getAlbumThumbImage(); |
public
|
|
public
|
|
public
string
|
#
getAlbumLink( string $page = NULL )
Returns an URL to the album, including the current page number |
public
string
|
|
public
boolean
|
|
protected
integer
|
|
public
integer
|
|
public
boolean
|
|
protected
|
|
public
integer
|
|
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
|
|
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(),
get(),
getData(),
getID(),
instantiate(),
save(),
set()
|
public
|
$name
|
|
public
|
$linkname
|
|
public
|
$localpath
|
|
public
boolean
|
$exists
|
#
true
|
public
|
$images
|
#
null
|
public
|
$parent
|
#
null
|
public
|
$parentalbum
|
#
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
|
$comments
|
$id,
$loaded,
$table,
$transient
|