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>";
$wgVersion
MediaWiki version number.
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