Class Gallery
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
#
getAlbumSortKey( string $sorttype = null )
Returns the DB field corresponding to the album sort type desired |
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
integer
|
#
getNumAlbums( boolean $db = false, boolean $publishedOnly = false )
Returns the total number of TOPLEVEL albums in the gallery (does not include sub-albums) |
public
array
|
|
public
string
|
#
getCurrentTheme( )
Returns the foldername of the current theme. if no theme is set, picks the "first" theme. |
public
|
|
public
integer
|
|
public
array
|
|
public
boolean
|
#
garbageCollect( boolean $cascade = true, boolean $complete = false, integer $restart = '' )
For every album in the gallery, look for its file. Delete from the database if the file does not exist. Do the same for images. Clean up comments that have been left orphaned. |
public
|
|
public static
|
|
public
array
|
#
sortAlbumArray( array $parentalbum, string $albums, string $sortkey = '`sort_order`', boolean $sortdirection = NULL, $mine = NULL )
Sort the album array based on either according to the sort key.
Default is to sort on the |
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
#
checkforGuest( unknown_type & $hint = NULL, unknown_type & $show = NULL )
Checks if guest is loggedin for the album |
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public static
|
|
public static
boolean
|
|
public static
boolean
|
#
validImageAlt( string $filename )
Returns true if the file is handled by an image handler plugin object |
public static
|
public
|
$albumdir
|
#
NULL
|
public
string
|
$table
|
#
'gallery'
|
protected
|
$albums
|
#
NULL
|
protected
|
$theme
|
|
protected
|
$themes
|
|
protected
|
$lastalbumsort
|
#
NULL
|
protected
array
|
$data
|
#
array()
|
protected
array
|
$unprotected_pages
|
#
array()
|