AtomFeed Class Reference
[Feed]

Generate an Atom feed. More...

Inherits ChannelFeed.

List of all members.

Public Member Functions

 formatTime ($ts)
 outHeader ()
 Outputs a basic header for Atom 1.0 feeds.
 getFeedId ()
 Atom 1.0 requires a unique, opaque IRI as a unique indentifier for every feed we create.
 getSelfUrl ()
 Atom 1.0 requests a self-reference to the feed.
 outItem ($item)
 Output a given item.
 outFooter ()
 Outputs the footer for Atom 1.0 feed (basicly '</feed>').


Detailed Description

Generate an Atom feed.

Definition at line 330 of file Feed.php.


Member Function Documentation

AtomFeed::formatTime ( ts  ) 

Todo:
document

Definition at line 334 of file Feed.php.

References wfTimestamp().

AtomFeed::getFeedId (  ) 

Atom 1.0 requires a unique, opaque IRI as a unique indentifier for every feed we create.

For now just use the URL, but who can tell if that's right? If we put options on the feed, do we have to change the id? Maybe? Maybe not.

Returns:
string
Access:
private

Definition at line 367 of file Feed.php.

AtomFeed::getSelfUrl (  ) 

Atom 1.0 requests a self-reference to the feed.

Returns:
string
Access:
private

Definition at line 376 of file Feed.php.

References $wgRequest.

AtomFeed::outFooter (  ) 

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

Reimplemented from ChannelFeed.

Definition at line 408 of file Feed.php.

AtomFeed::outHeader (  ) 

Outputs a basic header for Atom 1.0 feeds.

Reimplemented from ChannelFeed.

Definition at line 342 of file Feed.php.

References $wgVersion, RSSFeed::formatTime(), FeedItem::getDescription(), FeedItem::getTitle(), ChannelFeed::outXmlHeader(), print, wfTimestampNow(), and xml.

AtomFeed::outItem ( item  ) 

Output a given item.

Parameters:
$item 

Reimplemented from ChannelFeed.

Definition at line 385 of file Feed.php.

References $wgMimeType, RSSFeed::formatTime(), and print.


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

Generated on Sat Apr 30 22:57:33 2011 for MediaWiki by  doxygen 1.5.9