MediaWiki
master
|
Generate an Atom feed. More...
Public Member Functions | |
outFooter () | |
Outputs the footer for Atom 1.0 feed (basically '\</feed\>'). More... | |
outHeader () | |
Outputs a basic header for Atom 1.0 feeds. More... | |
outItem ( $item) | |
Output a given item. More... | |
![]() | |
__construct ( $title, $description, $url, $date='', $author='', $comments='') | |
httpHeaders () | |
Setup and send HTTP headers. More... | |
![]() | |
getAuthor () | |
Get the author of this item; already xml-encoded. More... | |
getAuthorUnescaped () | |
Get the author of this item without any escaping. More... | |
getComments () | |
Get the comment of this item; already xml-encoded. More... | |
getCommentsUnescaped () | |
Get the comment of this item without any escaping. More... | |
getDate () | |
Get the date of this item. More... | |
getDescription () | |
Get the description of this item; already xml-encoded. More... | |
getDescriptionUnescaped () | |
Get the description of this item without any escaping. More... | |
getLanguage () | |
Get the language of this item. More... | |
getTitle () | |
Get the title of this item; already xml-encoded. More... | |
getUniqueID () | |
Get the unique id of this item; already xml-encoded. More... | |
getUniqueIdUnescaped () | |
Get the unique id of this item, without any escaping. More... | |
getUrl () | |
Get the URL of this item; already xml-encoded. More... | |
getUrlUnescaped () | |
Get the URL of this item without any escaping. More... | |
setUniqueId ( $uniqueId, $rssIsPermalink=false) | |
Set the unique id of an item. More... | |
xmlEncode ( $string) | |
Encode $string so that it can be safely embedded in a XML document. More... | |
Additional Inherited Members | |
![]() | |
static | stripComment ( $text) |
Quickie hack... More... | |
![]() | |
$author | |
$comments | |
$date | |
$description | |
$rssIsPermalink = false | |
Title | $title |
$uniqueId | |
$url | |
![]() | |
outXmlHeader () | |
Output the initial XML headers. More... | |
![]() | |
TemplateParser | $templateParser |
Generate an Atom feed.
Definition at line 35 of file AtomFeed.php.
MediaWiki\Feed\AtomFeed::outFooter | ( | ) |
Outputs the footer for Atom 1.0 feed (basically '\</feed\>').
Reimplemented from MediaWiki\Feed\ChannelFeed.
Definition at line 115 of file AtomFeed.php.
MediaWiki\Feed\AtomFeed::outHeader | ( | ) |
Outputs a basic header for Atom 1.0 feeds.
Reimplemented from MediaWiki\Feed\ChannelFeed.
Definition at line 53 of file AtomFeed.php.
References MediaWiki\Feed\FeedItem\getDescription(), MediaWiki\Feed\FeedItem\getLanguage(), MediaWiki\Feed\FeedItem\getTitle(), MediaWiki\Feed\FeedItem\getUrlUnescaped(), MW_VERSION, MediaWiki\Feed\ChannelFeed\outXmlHeader(), PROTO_CURRENT, wfExpandUrl(), wfTimestampNow(), and MediaWiki\Feed\FeedItem\xmlEncode().
MediaWiki\Feed\AtomFeed::outItem | ( | $item | ) |
Output a given item.
FeedItem | $item |
Reimplemented from MediaWiki\Feed\ChannelFeed.
Definition at line 95 of file AtomFeed.php.
References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\MainConfigNames\MimeType, PROTO_CURRENT, wfExpandUrl(), and MediaWiki\Feed\FeedItem\xmlEncode().