MediaWiki  REL1_19
AtomFeed Class Reference

Generate an Atom feed. More...

Inheritance diagram for AtomFeed:
Collaboration diagram for AtomFeed:

List of all members.

Public Member Functions

 formatTime ($ts)
 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.
 outFooter ()
 Outputs the footer for Atom 1.0 feed (basicly '</feed>').
 outHeader ()
 Outputs a basic header for Atom 1.0 feeds.
 outItem ($item)
 Output a given item.

Detailed Description

Generate an Atom feed.

Definition at line 334 of file Feed.php.


Member Function Documentation

Todo:
document

Definition at line 338 of file Feed.php.

References wfTimestamp().

Here is the call graph for this function:

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

Atom 1.0 requests a self-reference to the feed.

Returns:
string
Access:
private

Definition at line 380 of file Feed.php.

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

Reimplemented from ChannelFeed.

Definition at line 412 of file Feed.php.

Outputs a basic header for Atom 1.0 feeds.

Reimplemented from ChannelFeed.

Definition at line 346 of file Feed.php.

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

Here is the call graph for this function:

AtomFeed::outItem ( item)

Output a given item.

Parameters:
$item

Reimplemented from ChannelFeed.

Definition at line 389 of file Feed.php.

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

Here is the call graph for this function:


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