MediaWiki
1.34.0
|
Generate an Atom feed. More...
Public Member Functions | |
formatTime ( $timestamp) | |
Format a date given timestamp, if one is given. More... | |
outFooter () | |
Outputs the footer for Atom 1.0 feed (basically '\</feed\>'). More... | |
outHeader () | |
Outputs a basic header for Atom 1.0 feeds. More... | |
outItem ( $item) | |
Output a given item. More... | |
Private Member Functions | |
getFeedId () | |
Atom 1.0 requires a unique, opaque IRI as a unique identifier for every feed we create. More... | |
getSelfUrl () | |
Atom 1.0 requests a self-reference to the feed. More... | |
Generate an Atom feed.
Definition at line 29 of file AtomFeed.php.
AtomFeed::formatTime | ( | $timestamp | ) |
Format a date given timestamp, if one is given.
string | int | null | $timestamp |
Definition at line 36 of file AtomFeed.php.
References wfTimestamp().
Referenced by outHeader(), and outItem().
|
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.
Definition at line 72 of file AtomFeed.php.
References getSelfUrl().
Referenced by outHeader().
|
private |
Atom 1.0 requests a self-reference to the feed.
Definition at line 80 of file AtomFeed.php.
References $wgRequest.
Referenced by getFeedId(), and outHeader().
AtomFeed::outFooter | ( | ) |
Outputs the footer for Atom 1.0 feed (basically '\</feed\>').
Definition at line 108 of file AtomFeed.php.
AtomFeed::outHeader | ( | ) |
Outputs a basic header for Atom 1.0 feeds.
Definition at line 46 of file AtomFeed.php.
References $wgVersion, formatTime(), getFeedId(), getSelfUrl(), getTitle(), PROTO_CURRENT, wfExpandUrl(), and wfTimestampNow().
AtomFeed::outItem | ( | $item | ) |
Output a given item.
FeedItem | $item |
Definition at line 89 of file AtomFeed.php.
References $wgMimeType, formatTime(), PROTO_CURRENT, and wfExpandUrl().