39 return gmdate(
'Y-m-d\TH:i:s',
wfTimestamp( TS_UNIX, $timestamp ) );
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 );
$wgMimeType
The default Content-Type header.
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.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
if(! $wgDBerrorLogTZ) $wgRequest
outItem( $item)
Output a given item.
outFooter()
Outputs the footer for Atom 1.0 feed (basically '</feed>').
getFeedId()
Atom 1.0 requires a unique, opaque IRI as a unique identifier for every feed we create.
formatTime( $timestamp)
Format a date given timestamp, if one is given.
getSelfUrl()
Atom 1.0 requests a self-reference to the feed.
outHeader()
Outputs a basic header for Atom 1.0 feeds.
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