ShashinAlbumInstantiate this class and use its methods to manipulate Picasa albums in Shashin. Also has a static population method, getAlbums() and a static method for generating markup, getAlbumMarkup().
Located in /ShashinAlbum.php (line 23)
static mixed
getAlbums
([string|array $keywords = '*'], [string|array $conditions = null], [string $other = null])
static array
setUserAlbums
(string $user_name, [array $local_data = null], [boolean $sync_only = true])
array
getAlbumPhotos
([string $order_by = 'photo_id'], [integer $limit = null], [boolean $include_deleted = false])
static getAlbumListMarkup (line 683)
Returns xhtml markup for displaying album thumbnails paired with the album description, and optional other data to display. Will instead call ShashinPhoto::getAlbumPhotosMarkup() if there is an album key in the $_REQUEST.
static getAlbums (line 528)
Retrieves data for multiple albums from the shashin_album table.
static getAlbumThumbsMarkup (line 646)
Returns xhtml markup for displaying album thumbnails in a table. Will instead call ShashinPhoto::getAlbumPhotosMarkup() if there is an album key in the $_REQUEST.
static getUsers (line 754)
Get all the user_names in the album table.
static setUserAlbums (line 549)
Inserts or updates all albums for a Picasa user.
static _getOrderedAlbums (line 766)
Returns the requested albums in the desired order.
static _getTableMarkup (line 879)
Generates an xhtml table containing thumbnails of the the passed in albums. Note that $albums is an array of arrays of album data, not ShashinAlbum objects.
Constructor ShashinAlbum (line 34)
The constructor sets $this->ref_data, which is used for creating the shashin_album table, for mapping Picasa RSS feed params to table field names, and for generating form input fields.
deleteAlbum (line 231)
Deletes an album and all its photos from Shashin. Works only if getAlbum() was successfully called first.
getAlbum (line 109)
Populates a ShashinAlbum object based on an album identifier (can be a Picasa ID, album name, or Shashin key) or a passed-in array of album data.
getAlbumMarkup (line 445)
DEPRECATED - use getAlbumThumbsMarkup instead.
Translates the "salbum" Shashin tag into xhtml displaying the thumbnail for the album cover. Picasa thumbnail size is fixed at 160x160.
getAlbumPhotos (line 262)
Retrieves all photos in the shashin_photo table for an album. Must call getAlbum() first.
setAlbum (line 156)
Inserts or updates a Picasa album in Shashin.
Reads the user's Picasa feed of all albums and retieves data for the specified album. Does not insert/update album photos. On success, calls getAlbum() to (re)populate the album object.
setAlbumLocal (line 420)
Updates local album data (i.e. data that doesn't come from the Picasa RSS feed).
setAlbumPhotos (line 312)
Inserts or updates photos for a Picasa album. Must successfully call getAlbum() or setAlbum() first.
Reads the Picasa photo feed for a given album. Calls getAlbumPhotos() to copmpare new data to old data. New photos are inserted, and old photos are updated as needed (can be flagged as deleted or moved to another album). On success, calls getAlbumPhotos() to refresh the data in memory.
_getAlbumLink (line 488)
Generates a link to an album's photo, either at Picasa or locally, depending on the option shashin_album_photos_url. The link includes an opening anchor tag but not a closing one.
_getAlbumThumbTag (line 470)
Generates the xhtml markup for an album thumbnail, with an appropriate link for accessing the album photos
_getDivMarkup (line 818)
Generates the xhtml div for displaying an album thumbnail.
Documentation generated on Wed, 01 Jul 2009 07:48:18 -0400 by phpDocumentor 1.4.2