topical media & game development
mashup-flickr-11-Step-3-lib-NewsVisualizer.php / php
<?php
class NewsVisualizer
{
var feedUrl;
var maxPhotos = 6;
var feedUrl)
{
global flickrApiSecret;
flickrApiKey, this->feedUrl = this->rss = fetch_rss(this->rss->channel['title'];
}
function getDescription()
{
return this->rss->channel['link'];
}
function getItems()
{
this->rss->items as newsItem = new NewsItem(photos = newsItem->getKeywords());
photos as squarePhoto = 'http://static.flickr.com/' . photo['id'] . '_' .photoPage = 'http://www.flickr.com/photos/' . photo['id'] . '/';
squarePhoto, photoCount >= items, items) >= items;
}
function findImages(args = array(
'tags' => join(this->maxPhotos,
);
this->flickr->photos_search(this->flickr->getErrorCode())
{
// Display error message and return an empty set of photos
echo photos['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.