12use Wikimedia\Timestamp\TimestampFormat as TS;
27 private function formatTime( $ts ) {
29 return gmdate(
'D, d M Y H:i:s \G\M\T', (
int)
wfTimestamp( TS::UNIX, $ts ) );
44 $this->urlUtils->expand( $this->getUrlUnescaped(),
PROTO_CURRENT ) ??
''
51 print $this->templateParser->processTemplate(
'RSSHeader', $templateParams );
62 "title" => $item->getTitle(),
64 $this->urlUtils->expand( $item->getUrlUnescaped(),
PROTO_CURRENT ) ??
''
66 "permalink" => $item->rssIsPermalink,
67 "uniqueID" => $item->getUniqueID(),
68 "description" => $item->getDescription(),
70 "author" => $item->getAuthor()
72 $comments = $item->getCommentsUnescaped();
77 $templateParams[
"comments"] = $commentsEscaped;
79 print $this->templateParser->processTemplate(
'RSSItem', $templateParams );
86 print
"</channel></rss>";
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.