39 private function formatTime( $ts ) {
41 return gmdate(
'D, d M Y H:i:s \G\M\T', (
int)
wfTimestamp( TS_UNIX, $ts ) );
61 print $this->templateParser->processTemplate(
'RSSHeader', $templateParams );
72 "title" => $item->getTitle(),
74 "permalink" => $item->rssIsPermalink,
75 "uniqueID" => $item->getUniqueID(),
76 "description" => $item->getDescription(),
77 "date" => $this->
xmlEncode( $this->formatTime( $item->getDate() ) ),
78 "author" => $item->getAuthor()
80 $comments = $item->getCommentsUnescaped();
83 $templateParams[
"comments"] = $commentsEscaped;
85 print $this->templateParser->processTemplate(
'RSSItem', $templateParams );
92 print
"</channel></rss>";
99class_alias( RSSFeed::class,
'RSSFeed' );
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 using $wgServer (or one of its alternatives).
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.