39 private function formatTime( $ts ) {
41 return gmdate(
'D, d M Y H:i:s \G\M\T', (
int)
wfTimestamp( TS_UNIX, $ts ) );
56 $this->urlUtils->expand( $this->getUrlUnescaped(),
PROTO_CURRENT ) ??
''
63 print $this->templateParser->processTemplate(
'RSSHeader', $templateParams );
74 "title" => $item->getTitle(),
76 $this->urlUtils->expand( $item->getUrlUnescaped(),
PROTO_CURRENT ) ??
''
78 "permalink" => $item->rssIsPermalink,
79 "uniqueID" => $item->getUniqueID(),
80 "description" => $item->getDescription(),
81 "date" => $this->
xmlEncode( $this->formatTime( $item->getDate() ) ),
82 "author" => $item->getAuthor()
84 $comments = $item->getCommentsUnescaped();
89 $templateParams[
"comments"] = $commentsEscaped;
91 print $this->templateParser->processTemplate(
'RSSItem', $templateParams );
98 print
"</channel></rss>";
103class_alias( RSSFeed::class,
'RSSFeed' );
const MW_VERSION
The running version of MediaWiki.
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.