Methods summary
public
|
#
__construct( $folder8, $cache = true, $quiet = false )
Class instantiator
Overrides
|
protected
boolean
|
#
_albumCheck( type $folder8, $folderFS, $quiet )
album validity check
Parameters
- $folder8
- $folderFS
- $quiet
Returns
boolean
|
public
array
|
#
getAlbums( string $page = 0, string $sorttype = null, string $sortdirection = null, boolean $care = true, boolean $mine = NULL )
Returns all folder names for all the subdirectories.
Returns all folder names for all the subdirectories.
Parameters
- $page
- Which page of subalbums to display.
- $sorttype
- The sort strategy
- $sortdirection
- The direction of the sort
- $care
- set to false if the order does not matter
- $mine
- set true/false to override ownership
Returns
array
Overrides
|
public
string
|
#
getSearchParams( )
Returns the search parameters for a dynamic album
Returns the search parameters for a dynamic album
Returns
string
Overrides
|
public
|
#
setSearchParams( string $params )
Sets the search parameters of a dynamic album
Sets the search parameters of a dynamic album
Parameters
- $params
- The search string to produce the dynamic album
Overrides
|
public
object
|
#
getSearchEngine( )
Returns the search engine for a dynamic album
Returns the search engine for a dynamic album
Returns
object
Overrides
|
public
array
|
#
getImages( integer $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.
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.
Parameters
- $page
- Which page of images should be returned. If zero, all images are returned.
- $firstPageCount
- count of images that go on the album/image transition page
- $sorttype
- optional sort type
- $sortdirection
- optional sort direction
- $care
- set to false if the order of the images does not matter
- $mine
- set true/false to override ownership
Returns
array
Overrides
|
public
boolean
|
#
remove( )
Delete the entire album PERMANENTLY. Be careful! This is unrecoverable.
Returns true if successful
Delete the entire album PERMANENTLY. Be careful! This is unrecoverable.
Returns true if successful
Returns
boolean
Overrides
|
public
integer
|
#
move( $newfolder, $oldfolder = "" )
Move this album to the location specified by $newfolder, copying all
metadata, subalbums, and subalbums' metadata with it.
Move this album to the location specified by $newfolder, copying all
metadata, subalbums, and subalbums' metadata with it.
Parameters
- $newfolder
- the folder to move to, including the name of the current folder (possibly renamed).
- $oldfolder
Returns
integer 0 on success and error indicator on failure.
Overrides
|
protected
|
|
public
integer
|
#
copy( $newfolder )
Copy this album to the location specified by $newfolder, copying all
metadata, subalbums, and subalbums' metadata with it.
Copy this album to the location specified by $newfolder, copying all
metadata, subalbums, and subalbums' metadata with it.
Parameters
- $newfolder
- the folder to copy to, including the name of the current folder (possibly renamed).
Returns
integer 0 on success and error indicator on failure.
Overrides
|
public
|
#
preLoad( )
Simply creates objects of all the images and sub-albums in this album to
load accurate values into the database.
Simply creates objects of all the images and sub-albums in this album to
load accurate values into the database.
Overrides
|
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.
Load all of the filenames that are found in this Albums directory on disk.
Returns an array with all the names.
Parameters
- $dirs
- or not to return directories ONLY with the file array.
Returns
array
Overrides
|
public
boolean
|
#
isDynamic( )
Returns true if the album is "dynamic"
Returns true if the album is "dynamic"
Returns
boolean
Overrides
|
protected
boolean
|
#
setDefaults( )
Sets default values for a new album
Sets default values for a new album
Returns
boolean
Overrides
|