Go to the documentation of this file.
39 return gmdate(
'Y-m-d\TH:i:s',
wfTimestamp( TS_UNIX, $timestamp ) );
59 'version' => $this->
xmlEncode( $wgVersion ),
61 print $this->templateParser->processTemplate(
'AtomHeader', $templateParams );
82 return htmlspecialchars(
$wgRequest->getFullRequestURL() );
94 "uniqueID" => $item->getUniqueID(),
95 "title" => $item->getTitle(),
96 "mimeType" => $this->
xmlEncode( $wgMimeType ),
99 "description" => $item->getDescription(),
100 "author" => $item->getAuthor()
102 print $this->templateParser->processTemplate(
'AtomItem', $templateParams );
getFeedId()
Atom 1.0 requires a unique, opaque IRI as a unique identifier for every feed we create.
outHeader()
Outputs a basic header for Atom 1.0 feeds.
$wgMimeType
The default Content-Type header.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
outXmlHeader()
Output the initial XML headers.
$wgVersion
MediaWiki version number.
outFooter()
Outputs the footer for Atom 1.0 feed (basically '</feed>').
getLanguage()
Get the language of this item.
getTitle()
Get the title of this item; already xml-encoded.
getSelfUrl()
Atom 1.0 requests a self-reference to the feed.
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
formatTime( $timestamp)
Format a date given timestamp, if one is given.
getDescription()
Get the description of this item; already xml-encoded.
Class to support the outputting of syndication feeds in Atom and RSS format.
xmlEncode( $string)
Encode $string so that it can be safely embedded in a XML document.
if(! $wgDBerrorLogTZ) $wgRequest
outItem( $item)
Output a given item.
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
getUrlUnescaped()
Get the URL of this item without any escaping.