AtomFeed Class Reference

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 241 of file Feed.php.


Member Function Documentation

AtomFeed::formatTime ( ts  ) 

Todo:
document

Definition at line 245 of file Feed.php.

References $ts, and 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 278 of file Feed.php.

AtomFeed::getSelfUrl (  ) 

Atom 1.0 requests a self-reference to the feed.

Returns:
string
Access:
private

Definition at line 287 of file Feed.php.

References $wgRequest.

AtomFeed::outFooter (  ) 

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

Reimplemented from ChannelFeed.

Definition at line 319 of file Feed.php.

AtomFeed::outHeader (  ) 

Outputs a basic header for Atom 1.0 feeds.

Reimplemented from ChannelFeed.

Definition at line 253 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 296 of file Feed.php.

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


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

Generated on Sat Sep 5 02:08:33 2009 for MediaWiki by  doxygen 1.5.9