Go to the documentation of this file.
39 return gmdate(
'D, d M Y H:i:s \G\M\T',
wfTimestamp( TS_UNIX, $ts ) );
57 'version' => $this->
xmlEncode( $wgVersion ),
60 print $this->templateParser->processTemplate(
'RSSHeader', $templateParams );
71 "title" => $item->getTitle(),
73 "permalink" => $item->rssIsPermalink,
74 "uniqueID" => $item->getUniqueID(),
75 "description" => $item->getDescription(),
77 "author" => $item->getAuthor()
79 $comments = $item->getCommentsUnescaped();
82 $templateParams[
"comments"] = $commentsEscaped;
84 print $this->templateParser->processTemplate(
'RSSItem', $templateParams );
91 print "</channel></rss>";
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
outXmlHeader()
Output the initial XML headers.
$wgVersion
MediaWiki version number.
getLanguage()
Get the language of this item.
getTitle()
Get the title of this item; already xml-encoded.
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
getDescription()
Get the description of this item; already xml-encoded.
Class to support the outputting of syndication feeds in Atom and RSS format.
xmlEncode( $string)
Encode $string so that it can be safely embedded in a XML document.
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
getUrlUnescaped()
Get the URL of this item without any escaping.