MediaWiki master
MediaWiki\Feed\AtomFeed Class Reference

Generate an Atom feed. More...

Inherits MediaWiki\Feed\ChannelFeed.

Collaboration diagram for MediaWiki\Feed\AtomFeed:

Public Member Functions

 outFooter ()
 Outputs the footer for Atom 1.0 feed (basically '\</feed\>').
 
 outHeader ()
 Outputs a basic header for Atom 1.0 feeds.
 
 outItem ( $item)
 Output a given item.
 
- Public Member Functions inherited from MediaWiki\Feed\ChannelFeed
 __construct ( $title, $description, $url, $date='', $author='', $comments='')
 
 httpHeaders ()
 Setup and send HTTP headers.
 
- Public Member Functions inherited from MediaWiki\Feed\FeedItem
 getAuthor ()
 Get the author of this item; already xml-encoded.
 
 getAuthorUnescaped ()
 Get the author of this item without any escaping.
 
 getComments ()
 Get the comment of this item; already xml-encoded.
 
 getCommentsUnescaped ()
 Get the comment of this item without any escaping.
 
 getDate ()
 Get the date of this item.
 
 getDescription ()
 Get the description of this item; already xml-encoded.
 
 getDescriptionUnescaped ()
 Get the description of this item without any escaping.
 
 getLanguage ()
 Get the language of this item.
 
 getTitle ()
 Get the title of this item; already xml-encoded.
 
 getUniqueID ()
 Get the unique id of this item; already xml-encoded.
 
 getUniqueIdUnescaped ()
 Get the unique id of this item, without any escaping.
 
 getUrl ()
 Get the URL of this item; already xml-encoded.
 
 getUrlUnescaped ()
 Get the URL of this item without any escaping.
 
 setUniqueId ( $uniqueId, $rssIsPermalink=false)
 Set the unique id of an item.
 
 xmlEncode ( $string)
 Encode $string so that it can be safely embedded in a XML document.
 

Additional Inherited Members

- Static Public Member Functions inherited from MediaWiki\Feed\FeedItem
static stripComment ( $text)
 Quickie hack... strip out wikilinks to more legible form from the comment.
 
- Public Attributes inherited from MediaWiki\Feed\FeedItem
 $author
 
 $comments
 
 $date
 
 $description
 
 $rssIsPermalink = false
 
Title $title
 
 $uniqueId
 
 $url
 
- Protected Member Functions inherited from MediaWiki\Feed\ChannelFeed
 outXmlHeader ()
 Output the initial XML headers.
 
- Protected Attributes inherited from MediaWiki\Feed\ChannelFeed
TemplateParser $templateParser
 

Detailed Description

Generate an Atom feed.

Definition at line 35 of file AtomFeed.php.

Member Function Documentation

◆ outFooter()

MediaWiki\Feed\AtomFeed::outFooter ( )

Outputs the footer for Atom 1.0 feed (basically '\</feed\>').

Reimplemented from MediaWiki\Feed\ChannelFeed.

Definition at line 107 of file AtomFeed.php.

◆ outHeader()

◆ outItem()

MediaWiki\Feed\AtomFeed::outItem ( $item)

Output a given item.

Parameters
FeedItem$item

Reimplemented from MediaWiki\Feed\ChannelFeed.

Definition at line 87 of file AtomFeed.php.

References MediaWiki\MediaWikiServices\getInstance(), MediaWiki\MainConfigNames\MimeType, PROTO_CURRENT, wfExpandUrl(), and MediaWiki\Feed\FeedItem\xmlEncode().


The documentation for this class was generated from the following file: