MediaWiki  REL1_24
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)
 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.

Private Member Functions

 getFeedId ()
 Atom 1.0 requires a unique, opaque IRI as a unique identifier for every feed we create.
 getSelfUrl ()
 Atom 1.0 requests a self-reference to the feed.

Detailed Description

Generate an Atom feed.

Definition at line 338 of file Feed.php.


Member Function Documentation

Todo:
document
Parameters:
string | int$ts
Returns:
string

Definition at line 344 of file Feed.php.

AtomFeed::getFeedId ( ) [private]

Atom 1.0 requires a unique, opaque IRI as a unique identifier 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

Definition at line 378 of file Feed.php.

AtomFeed::getSelfUrl ( ) [private]

Atom 1.0 requests a self-reference to the feed.

Returns:
string

Definition at line 386 of file Feed.php.

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

Reimplemented from ChannelFeed.

Definition at line 419 of file Feed.php.

Outputs a basic header for Atom 1.0 feeds.

Reimplemented from ChannelFeed.

Definition at line 352 of file Feed.php.

AtomFeed::outItem ( item)

Output a given item.

Parameters:
FeedItem$item

Reimplemented from ChannelFeed.

Definition at line 395 of file Feed.php.


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