37 private function formatTime( $ts ) {
39 return gmdate(
'D, d M Y H:i:s \G\M\T', (
int)
wfTimestamp( TS_UNIX, $ts ) );
59 print $this->templateParser->processTemplate(
'RSSHeader', $templateParams );
70 "title" => $item->getTitle(),
72 "permalink" => $item->rssIsPermalink,
73 "uniqueID" => $item->getUniqueID(),
74 "description" => $item->getDescription(),
75 "date" => $this->
xmlEncode( $this->formatTime( $item->getDate() ) ),
76 "author" => $item->getAuthor()
78 $comments = $item->getCommentsUnescaped();
81 $templateParams[
"comments"] = $commentsEscaped;
83 print $this->templateParser->processTemplate(
'RSSItem', $templateParams );
90 print "</channel></rss>";
const MW_VERSION
The running version of MediaWiki.
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
Class to support the outputting of syndication feeds in Atom and RSS format.
outXmlHeader()
Output the initial XML headers.
getLanguage()
Get the language of this item.
getDescription()
Get the description of this item; already xml-encoded.
getTitle()
Get the title of this item; already xml-encoded.
xmlEncode( $string)
Encode $string so that it can be safely embedded in a XML document.
getUrlUnescaped()
Get the URL of this item without any escaping.
while(( $__line=Maintenance::readconsole()) !==false) print