ShashinPhotoFor manipulating and displaying Picasa photos in Shashin.
Located in /ShashinPhoto.php (line 21)
static array
getPhotos
([string|array $keywords = 'sp.*'], [string|array $conditions = null], [string $other = null])
string
_getDivMarkup
(array $match, [boolean $thumb = false], [integer $group = null], [boolean $controller = false], [ $admin = false])
static getAlbumPhotosMarkup (line 348)
Static method that display thumbnails for photos in an album. Can be invoked by the salbumphotos tag, or with $_REQUEST['shashin_album_key'] when an album cover thumbnail is clicked.
static getNewestMarkup (line 282)
Translates the "snewest" Shashin tag into xhtml displaying a table of thumbnails of your newest photos (by upload date). If album keys are not provided, then it will pick from among all photos.
static getPhotos (line 201)
A static method for retrieving an arbitrary set of photos.
static getRandomMarkup (line 250)
Translates the "srandom" Shashin tag into xhtml displaying a table of random photos. If album keys are not provided, then it will pick from among all photos.
Note that if an album has include_in_random=n, no photos from it will be displayed, even if the photos in it have include_in_random=y.
static getThumbsMarkup (line 311)
Static method that translates the "sthumbs" Shashin tag into an xhtml table displaying the specified thumbnails, each with a hyperlink to the photo (either in Highslide or at Picasa).
static _getTableMarkup (line 481)
Generates an xhtml table containing the passed in photos. Note that $photos is an array of arrays of photo data, not ShashinPhoto objects.
static _setMaxPicasaSize (line 444)
Finds the maximum possible Picasa image size for a given number of thumbnail columns. Assumes 10px of padding/margin per image.
NOTE: The calculation will be incorrect for pictures with a portrait orientation
Constructor ShashinPhoto (line 33)
The constructor sets $this->ref_data, which maps Picasa photo properties to ShashinPhoto object properties. It's also used for creating the shashin_photo table and for generating form input fields.
getPhoto (line 140)
Populates a ShashinPhoto object based on an identifier (can be a Picasa ID, photo title, or Shashin key) or a passed-in array of photo data.
getPhotoMarkup (line 217)
Translates the "simage" Shashin tag into xhtml displaying the specified photo, with a hyperlink to the photo (either in Highslide or at Picasa).
setPhotoLocal (line 176)
Updates local photo data (i.e. data that doesn't come from the Picasa RSS feed).
_getDivMarkup (line 628)
Generates the xhtml div for displaying an image.
_isVideo (line 855)
Test to see whether we're dealing with a picture or a video
_setDimensions (line 574)
Calculates the height or width for an image, based on $max. See See http://code.google.com/apis/picasaweb/reference.html for an explanation of the supported image sizes.
$max is your desired maximum image dimension. It will be applied to the width of the image if it has a landscape orientation, or to the height if it has a portrait orientation (that's how Picasa works). The dimensions are added to $this->data as user_width, user_height, and user_max
Documentation generated on Wed, 01 Jul 2009 07:48:18 -0400 by phpDocumentor 1.4.2