[ class tree: classes ] [ index: classes ] [ all elements ]

Class: favorites

Source Location: /zp-extensions/favoritesHandler/favoritesClass.php

Class favorites

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From AlbumBase

AlbumBase::$albumthumbnail
AlbumBase::$exists
AlbumBase::$images
AlbumBase::$index
AlbumBase::$lastimagesort
AlbumBase::$lastsubalbumsort
AlbumBase::$linkname
AlbumBase::$localpath
AlbumBase::$manage_rights
AlbumBase::$manage_some_rights
AlbumBase::$name
AlbumBase::$parent
AlbumBase::$parentalbum
AlbumBase::$sidecars
AlbumBase::$subalbums
AlbumBase::$subrights
AlbumBase::$view_rights

Inherited From ThemeObject

ThemeObject::$comments

Inherited From PersistentObject

PersistentObject::$id
PersistentObject::$loaded
PersistentObject::$table
PersistentObject::$transient

Inherited From AlbumBase

AlbumBase::__construct()
AlbumBase::albumSubRights()
returns the mitigated album rights.
AlbumBase::checkforGuest()
Checks if guest is loggedin for the album
AlbumBase::copy()
Copy this album to the location specified by $newfolder, copying all metadata, subalbums, and subalbums' metadata with it.
AlbumBase::garbageCollect()
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.
AlbumBase::getAlbumLink()
Returns an URL to the album, including the current page number
AlbumBase::getAlbums()
Returns all folder names for all the subdirectories.
AlbumBase::getAlbumSortKey()
Returns the DB key associated with the subalbum sort type
AlbumBase::getAlbumSortType()
Returns the sort type for subalbums in this album.
AlbumBase::getAlbumTheme()
Returns the theme for the album
AlbumBase::getAlbumThumb()
Gets the thumbnail URL for the album thumbnail image as returned by $this->getAlbumThumbImage();
AlbumBase::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.
AlbumBase::getFileName()
Returns the folder on the filesystem
AlbumBase::getFolder()
Returns the folder on the filesystem
AlbumBase::getGalleryPage()
Returns the page number in the gallery of this album
AlbumBase::getImage()
Returns an image from the album based on the index passed.
AlbumBase::getImages()
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.
AlbumBase::getImageSortKey()
Returns the DB key associated with the image sort type
AlbumBase::getLink()
Returns an URL to the album, including the current page number
AlbumBase::getLocation()
Returns the place data of an album
AlbumBase::getNextAlbum()
Returns the album following the current album
AlbumBase::getNumAlbums()
Returns the count of subalbums
AlbumBase::getNumImages()
Returns the number of images in this album (not counting its subalbums)
AlbumBase::getOwner()
Owner functions
AlbumBase::getParent()
Returns The parent Album of this Album. NULL if this is a top-level album.
AlbumBase::getParentID()
AlbumBase::getPrevAlbum()
Returns the album prior to the current album
AlbumBase::getSearchEngine()
Returns the search engine for a dynamic album
AlbumBase::getSearchParams()
Returns the search parameters for a dynamic album
AlbumBase::getSortDirection()
Returns either the subalbum sort direction or the image sort direction of the album
AlbumBase::getSortType()
Returns the sort type of the album images Will return a parent sort type if the sort type for this album is empty
AlbumBase::getThumb()
Gets the thumbnail URL for the album thumbnail image as returned by $this->getAlbumThumbImage();
AlbumBase::getUpdatedDate()
Date at which the album last discovered an image
AlbumBase::getWatermark()
returns the album watermark
AlbumBase::getWatermarkThumb()
Returns the album watermark thumb
AlbumBase::isDynamic()
Returns true if the album is "dynamic"
AlbumBase::isMyItem()
checks access to the album
AlbumBase::isProtected()
returns true if there is any protection on the album
AlbumBase::loadFileNames()
Load all of the filenames that are found in this Albums directory on disk.
AlbumBase::move()
Move this album to the location specified by $newfolder, copying all metadata, subalbums, and subalbums' metadata with it.
AlbumBase::preLoad()
Simply creates objects of all the images and sub-albums in this album to load accurate values into the database.
AlbumBase::remove()
Delete the entire album PERMANENTLY. Be careful! This is unrecoverable.
AlbumBase::rename()
Rename this album folder. Alias for move($newfoldername);
AlbumBase::setAlbumTheme()
Sets the theme of the album
AlbumBase::setAlbumThumb()
Stores the thumbnail path for an album thumg
AlbumBase::setDefaults()
Sets default values for a new album
AlbumBase::setLocation()
Stores the album place
AlbumBase::setOwner()
AlbumBase::setSearchParams()
Sets the search parameters of a dynamic album
AlbumBase::setSortDirection()
sets sort directions for the album
AlbumBase::setSortType()
Stores the sort type for the album
AlbumBase::setSubalbumSortType()
Stores the subalbum sort type for this abum
AlbumBase::setThumb()
Stores the thumbnail path for an album thumg
AlbumBase::setUpdatedDate()
AlbumBase::setWatermark()
Sets the album watermark
AlbumBase::setWatermarkThumb()
Sets the custom watermark usage
AlbumBase::sortImageArray()
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.
AlbumBase::succeed()
AlbumBase::updateParent()
changes the parent of an album for move/copy
AlbumBase::_move()
common album move code

Inherited From MediaObject

MediaObject::__construct()
Class instantiator
MediaObject::getDesc()
Returns the description
MediaObject::getExpireDate()
Returns the expire date
MediaObject::getPassword()
Returns the password
MediaObject::getPasswordHint()
Returns the password hint
MediaObject::getPublishDate()
Returns the publish date
MediaObject::getSortOrder()
Returns the sort order
MediaObject::getUser()
Returns the guest user
MediaObject::setDesc()
Stores the description
MediaObject::setExpireDate()
sets the expire date
MediaObject::setPassword()
Sets the encrypted password
MediaObject::setPasswordHint()
Sets the password hint
MediaObject::setPublishDate()
sets the publish date
MediaObject::setSortOrder()
Stores the sort order
MediaObject::setUser()
Sets the guest user

Inherited From ThemeObject

ThemeObject::__construct()
Class instantiator
ThemeObject::addComment()
Adds comments to the album assumes data is coming straight from GET or POST
ThemeObject::checkAccess()
Checks if viewing of object is allowed
ThemeObject::checkForGuest()
returns false (deny) if gallery is "private"
ThemeObject::countHit()
counts visits to the object
ThemeObject::getCodeblock()
Returns the codeblocks as an serialized array
ThemeObject::getCommentCount()
Returns the count of comments in the album. Ignores comments in moderation
ThemeObject::getComments()
Returns an array of comments for this album
ThemeObject::getCommentsAllowed()
Retuns true if comments are allowed
ThemeObject::getCustomData()
returns the custom data field
ThemeObject::getDateTime()
Returns the unformatted date
ThemeObject::getHitcounter()
Returns the hitcount
ThemeObject::getParentID()
Returns the partent id
ThemeObject::getShow()
Returns true published
ThemeObject::getTags()
Returns the tag data
ThemeObject::getTitle()
Returns the title
ThemeObject::hasTag()
Checks if an object has a tag assigned.
ThemeObject::isMyItem()
Checks basic access rights of an object
ThemeObject::setCodeblock()
set the codeblocks as an serialized array
ThemeObject::setCommentsAllowed()
Sets the comments allowed flag
ThemeObject::setCustomData()
Sets the custom data field
ThemeObject::setDateTime()
Stores the date
ThemeObject::setParentID()
Sets the ParentID field
ThemeObject::setShow()
Stores the published value
ThemeObject::setTags()
Stores tag information
ThemeObject::setTitle()
Stores the title

Inherited From PersistentObject

PersistentObject::PersistentObject()
PersistentObject::copy()
Copy this record to another unique set. Checks if the record exists there first, if so returns false. If successful returns true. No changes are made to this object and no other objects are created, just the database entry.
PersistentObject::get()
Get the value of a variable. If $current is false, return the value as of the last save of this object.
PersistentObject::getData()
returns the database record of the object
PersistentObject::getID()
Returns the id
PersistentObject::instantiate()
Prime instantiator for Zenphoto objects
PersistentObject::move()
Change one or more values of the unique set assigned to this record.
PersistentObject::remove()
Deletes object from the database
PersistentObject::save()
Save the updates made to this object since the last update. Returns true if successful, false if not.
PersistentObject::set()
Set a variable in this object. Does not persist to the database until save() is called. So, IMPORTANT: Call save() after set() to persist.
PersistentObject::setDefaults()
Sets default values for new objects using the set() method.
PersistentObject::__toString()
"Magic" function to return a string identifying the object when it is treated as a string

[ Top ]
Property Summary
mixed   $albumSortDirection  
mixed   $albumSortType  
mixed   $imageSortDirection  
mixed   $imageSortType  
mixed   $instance  
mixed   $list  
mixed   $owner  

[ Top ]
Method Summary
static void   ad_removeButton()  
static void   getWatchers()  
static void   loadScript()  
static void   pageCount()  
static void   showWatchers()  
static void   toolbox()  
favorites   __construct()  
void   addAlbum()  
void   addImage()  
array   getAlbums()   Returns all folder names for all the subdirectories.
array   getImages()   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.
void   getInstance()  
void   getLink()  
void   getList()  
void   removeAlbum()  
void   removeImage()  

[ Top ]
Properties
mixed   $albumSortDirection [line 9]

[ Top ]
mixed   $albumSortType [line 11]

[ Top ]
mixed   $imageSortDirection [line 8]

[ Top ]
mixed   $imageSortType [line 10]

[ Top ]
mixed   $instance = '' [line 14]

[ Top ]
mixed   $list = array('') [line 12]

[ Top ]
mixed   $owner [line 13]

[ Top ]
Methods
static method ad_removeButton  [line 305]

  static void ad_removeButton( $obj, $id, $v, $add, $instance, $multi  )

Parameters:
   $obj: 
   $id: 
   $v: 
   $add: 
   $instance: 
   $multi: 


[ Top ]
static method getWatchers  [line 77]

  static void getWatchers( $obj  )

Parameters:
   $obj: 


[ Top ]
static method loadScript  [line 238]

  static void loadScript( $script, $request  )

Parameters:
   $script: 
   $request: 


[ Top ]
static method pageCount  [line 258]

  static void pageCount( $count, $gallery_page, $page  )

Parameters:
   $count: 
   $gallery_page: 
   $page: 


[ Top ]
static method showWatchers  [line 99]

  static void showWatchers( $html, $obj, $prefix  )

Parameters:
   $html: 
   $obj: 
   $prefix: 


[ Top ]
static method toolbox  [line 283]

  static void toolbox( $zf  )

Parameters:
   $zf: 


[ Top ]
Constructor __construct  [line 16]

  favorites __construct( $user  )

Parameters:
   $user: 


Redefinition of:
AlbumBase::__construct()

[ Top ]
addAlbum  [line 63]

  void addAlbum( $alb  )

Parameters:
   $alb: 


[ Top ]
addImage  [line 47]

  void addImage( $img  )

Parameters:
   $img: 


[ Top ]
getAlbums  [line 138]

  array getAlbums( [string $page = 0], [string $sorttype = null], [string $sortdirection = null], [bool $care = true], [bool $mine = NULL]  )

Returns all folder names for all the subdirectories.

Parameters:
string   $page:  Which page of subalbums to display.
string   $sorttype:  The sort strategy
string   $sortdirection:  The direction of the sort
bool   $care:  set to false if the order does not matter
bool   $mine:  set true/false to override ownership


Redefinition of:
AlbumBase::getAlbums()
Returns all folder names for all the subdirectories.

[ Top ]
getImages  [line 196]

  array getImages( [string $page = 0], [int $firstPageCount = 0], [string $sorttype = null], [string $sortdirection = null], [bool $care = true], [bool $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.

Parameters:
string   $page:  Which page of images should be returned. If zero, all images are returned.
int   $firstPageCount:  count of images that go on the album/image transition page
string   $sorttype:  optional sort type
string   $sortdirection:  optional sort direction
bool   $care:  set to false if the order of the images does not matter
bool   $mine:  set true/false to override ownership


Redefinition of:
AlbumBase::getImages()
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.

[ Top ]
getInstance  [line 35]

  void getInstance( )


API Tags:
Access:  protected


[ Top ]
getLink  [line 288]

  void getLink( [ $page = NULL], [ $instance = NULL]  )

Parameters:
   $page: 
   $instance: 


Redefinition of:
AlbumBase::getLink()
Returns an URL to the album, including the current page number

[ Top ]
getList  [line 43]

  void getList( )



[ Top ]
removeAlbum  [line 70]

  void removeAlbum( $alb  )

Parameters:
   $alb: 


[ Top ]
removeImage  [line 55]

  void removeImage( $img  )

Parameters:
   $img: 


[ Top ]

Documentation generated on Sat, 07 Jun 2014 18:03:29 +0200 by phpDocumentor 1.4.3