예제 #1
0
 $rssFeed->setManagingEditor('*****@*****.**', 'John Doe');
 // Set the feed image
 $rssFeed->setImage('http://www.mywebsite.com/image/logo.jpg', 'My Logo', 'My blog', 100, 200);
 // Set the feed categories
 $rssFeed->setCategory('http://technorati.com/posts/tag/php', 'PHP Language');
 $rssFeed->setCategory('http://technorati.com/posts/tag/html', 'HTML Language');
 $rssFeed->setCategory('http://technorati.com/posts/tag/java', 'Java Language');
 $rssFeed->setCategory('http://technorati.com/posts/tag/asp', 'ASP Language');
 // Set the feed copyright
 $rssFeed->setCopyright('(C) Copyright 2007 - MyWebsite - All rights reserved');
 // Set the feed rating
 $rssFeed->setRating('(PICS-1.1 "http://www.classify.org/safesurf/" l r (SS--000 1))');
 // Set the feed generator
 $rssFeed->setGenerator('Powered with RSSFeed Class by Hugo "Emacs" HAMON');
 // Set the feed generator
 $rssFeed->setLanguage('fr');
 // Set the feed docs
 $rssFeed->setDocs('http://fr.wikipedia.org/wiki/RSS_(format)');
 // Set the feed cloud
 $monFlux->setCloud('http://www.oreilly.com', 80, '/RPC2', 'pleaseNotify', 'XML-RPC');
 // Set the feed skip days
 $rssFeed->setSkipDay('Monday');
 $rssFeed->setSkipDay('Tuesday');
 $rssFeed->setSkipDay('Wednesday');
 $rssFeed->setSkipDay('Thursday');
 $rssFeed->setSkipDay('Friday');
 $rssFeed->setSkipDay('Saturday');
 // Set the feed skip hours
 for ($i = 0; $i < 21; $i++) {
     $monFlux->setSkipHour($i);
 }