topical media & game development
mashup-flickr-13-Complete-lib-FlickrGallery.php / php
<?php
class FlickrGallery extends FlickrAuthenticator
{
var flickrApiKey;
global this->FlickrAuthenticator(flickrApiSecret);
}
function findRecentPhotos(args = array(
'user_id' => n
);
this->flickr->photos_search(this->flickr->getErrorCode())
{
echo ("Error fetching photos: " . p['photo'];
}
function getPhotoInfo(p = id);
if (this->flickr->getErrorMsg());
}
return linkPage, n = 20, tagMode = "all", s = "";
linkPage . '?title=' . urlencode(tags)
. "&n=tagMode&sort=photos = tags, sort);
if (is_array(photos) > 0)
{
photos[0];
photo['server'] . '/' . photo['secret'] . '_s.jpg';
url\"><img src=\"s .= "<p class=\"smart-set-caption\">" . s;
}
function getSmartSet(tags = "", sort = "date-posted-desc")
{
args = array(
'user_id' => sort,
'page' => 1,
'per_page' => tags))
{
tags;
tagMode;
}
this->flickr->photos_search(this->flickr->getErrorCode())
{
echo ("Error fetching photos: " . p['photo']) && count(ret = ret;
}
function setMeta(title, this->flickr->photos_setMeta(title, this->flickr->getErrorCode())
{
echo ("Error setting metadata: " . this->nsid == id, this->flickr->photos_setTags(tags);
if (this->flickr->getErrorMsg());
}
}
function uploadPhoto(title = null, tags = null,
isFriend = null, id = file, description, isPublic,
isFamily);
if (this->flickr->getErrorMsg());
}
return file, id = file, this->flickr->getErrorCode())
{
echo ("Error replacing photo: " . id;
}
function getWithGeoData(bbox == NULL)
{
args = array(
'user_id' => bbox,
'extras' => 'geo',
'per_page' => 500,
);
this->flickr->photos_search(this->flickr->getErrorCode())
{
echo ("Error fetching photos with GeoData: " . p['photo'];
}
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.