Functions

Function Description
addTags Adds tags to this photo.
getContext Gets information about the next and previous photos in the photo stream.
getExif Gets EXIF/TIFF/GPS information about this photo.
getFavorites Returns the users who have favorited this photo.
getInfo Returns additional information on this photo.
delete Deletes this photo.
next Returns the next photo in the photo stream.
previous Returns the previous photo in the photo stream.
setContentType Sets the content type of the image.
setDateTaken Sets the date taken of the image.
setPermissions Sets the permissions of the image.
setSafetyLevel Sets the safety level of the image.
setTags Sets the tags of the image.
setTitleAndDescription Sets the title and description of the image.

addTags

Adds tags to this photo.

Return Value: true if successful

addTags($tags)
Parameter Description
$tags A single tag as a string or an array of tags.

getContext

Gets information about the next and previous photos in the photo stream.

getContext()

getExif

Gets EXIF/TIFF/GPS information about this photo.

getExif()

getFavorites

Returns the users who have favorited this photo.

Return Value: A BigTreeFlickrResultSet of BigTreeFlickrPerson objects.

getFavorites($per_page, $params)
Parameter Description
$per_page Number of results per page (defaults to 50, max 50)
$params Additional parameters to pass to the flickr.photos.getFavorites API call

getInfo

Returns additional information on this photo.
Useful if another call returned limited information about a photo.

Return Value: A new BigTreeFlickrPhoto object or false if the call fails.

getInfo()

delete

Deletes this photo.

Return Value: true if successful

delete()

setContentType

Sets the content type of the image.

Return Value: true if successful

setContentType($type)
Parameter Description
$type 1 (Photo), 2 (Screenshot), 3 (Other)

setDateTaken

Sets the date taken of the image.

Return Value: true if successful

setDateTaken($date)
Parameter Description
$date Date in a format understood by strtotime

setPermissions

Sets the permissions of the image.

Return Value: true if successful

setPermissions($public = true, $friends = true, $family = true, $comments = 3, $metadata)
Parameter Description
$public Visible to public (defaults to true)
$friends Visible to friends (defaults to true)
$family Visible to family (defaults to true)
$comments Who can comment on this image (0 = none, 1 = friends & family, 2 = contacts, 3 = everyone
$metadata Who can add metadata (tags & notes) to this image (0 = none/owner

setSafetyLevel

Sets the safety level of the image.

Return Value: true if successful

setSafetyLevel($level)
Parameter Description
$level 1 (safe, default), 2 (moderate), 3 (restricted)

setTags

Sets the tags of the image.

Return Value: true if successful

setTags($tags)
Parameter Description
$tags An array of tags or a comma separated string of tags

setTitleAndDescription

Sets the title and description of the image.

Return Value: true if successful

setTitleAndDescription($title, $description)
Parameter Description
$title Title to set
$description Description to set