本文整理汇总了PHP中UniversalFeedCreator::setDir方法的典型用法代码示例。如果您正苦于以下问题:PHP UniversalFeedCreator::setDir方法的具体用法?PHP UniversalFeedCreator::setDir怎么用?PHP UniversalFeedCreator::setDir使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UniversalFeedCreator
的用法示例。
在下文中一共展示了UniversalFeedCreator::setDir方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$f[$feed[0]] = array('class' => $feed[0], 'file' => $feed[1], 'name' => $feed[2], 'active' => $feed[3], 'header' => $feed[4]);
}
if (!isset($f[$action])) {
$t = current($f);
$action = $t['class'];
}
$format = $f[$action];
if ($format['header'] == 1) {
$h = false;
} else {
$h = true;
}
// Header of feeds
$rss = new UniversalFeedCreator();
$rss->encoding = 'UTF-8';
$rss->setDir("feeds/topics_");
$rss->useCached($action, '', $h);
$rss->title = $config['fname'];
$rss->description = $config['fdesc'];
$rss->link = $config['furl'] . "/forum.php";
$rss->language = $lang->phrase('rss_language');
$rss->ttl = $config['rssttl'];
$rss->copyright = $config['fname'];
$rss->lastBuildDate = time();
$rss->editor = $config['fname'];
if ($config['syndication_insert_email'] == 1) {
$rss->editorEmail = $config['forenmail'];
} else {
$rss->editorEmail = '';
}
// Dirty permission hack I