本文整理汇总了PHP中RSSFeed::setCopyright方法的典型用法代码示例。如果您正苦于以下问题:PHP RSSFeed::setCopyright方法的具体用法?PHP RSSFeed::setCopyright怎么用?PHP RSSFeed::setCopyright使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RSSFeed
的用法示例。
在下文中一共展示了RSSFeed::setCopyright方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: r
$rssFeed->setPubDate('2007-08-01');
// Set the feed last build date
$rssFeed->setLastBuildDate(date('Y-m-d'));
// Set the feed webmaster
$rssFeed->setWebMaster('me@mywebsite.com', 'John Doe');
// Set the feed managing editor
$rssFeed->setManagingEditor('me@mywebsite.com', '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');
示例2: RSSFeed
// Création des entêtes du flux RSS
//$oRssFeed = new RSSFeed('utf-8');
$oRssFeed = new RSSFeed('UTF-8');
$oRssFeed->setCloud($_SERVER["SERVER_NAME"], $_SERVER["REMOTE_PORT"], $gepiPath, '', 'http');
$oRssFeed->setProtectString(true);
$oRssFeed->setTitle($title_rss);
$oRssFeed->setDescription($description_rss);
$oRssFeed->setLink($ServerProtocole . $_SERVER["SERVER_NAME"] . $gepiPath);
$oRssFeed->setPubDate('2007-12-31');
$oRssFeed->setLastBuildDate(date('Y-m-d'));
//$oRssFeed->setWebMaster(getSettingValue("gepiSchoolEmail"),'ADMIN');
//$oRssFeed->setManagingEditor(getSettingValue("gepiSchoolEmail"),'ADMIN');
$oRssFeed->setWebMaster($rss_email_defaut, 'ADMIN');
$oRssFeed->setManagingEditor($rss_email_defaut, 'ADMIN');
$oRssFeed->setImage($gepiPath . '/favicon.ico', 'GEPI', $ServerProtocole . $_SERVER["SERVER_NAME"]);
$oRssFeed->setCopyright('(L) - GEPI ' . getSettingValue('version'));
$oRssFeed->setGenerator('Généré par RSSFeed Class de Hugo "Emacs" HAMON - http://www.apprendre-php.com');
$oRssFeed->setLanguage('fr');
$finfo = finfo_open(FILEINFO_MIME_TYPE);
// Ajout des news au flux
if ($items["cdt_dev"]["count"] != 0) {
for ($a = 0; $a < $items["cdt_dev"]["count"]; $a++) {
// On récupère des données
$donnees = get_group($items["cdt_dev"][$a]["id_groupe"]);
$prof = get_prof_login($items["cdt_dev"][$a]["id_login"]);
// Récupération de l'email
//$sEmail = getSettingValue("gepiSchoolEmail");
if (isset($tab_rss_infos_prof[$prof]["email"])) {
$sEmail = $tab_rss_infos_prof[$prof]["email"];
} else {
$sEmail = $rss_email_defaut;