MediaWiki
1.34.0
|
Generate an RSS feed. More...
Public Member Functions | |
formatTime ( $ts) | |
Format a date given a timestamp. More... | |
outFooter () | |
Output an RSS 2.0 footer. More... | |
outHeader () | |
Output an RSS 2.0 header. More... | |
outItem ( $item) | |
Output an RSS 2.0 item. More... | |
Generate an RSS feed.
Definition at line 29 of file RSSFeed.php.
RSSFeed::formatTime | ( | $ts | ) |
Format a date given a timestamp.
If a timestamp is not given, nothing is returned
int | null | $ts | Timestamp |
Definition at line 37 of file RSSFeed.php.
References wfTimestamp().
Referenced by outHeader(), and outItem().
RSSFeed::outFooter | ( | ) |
Output an RSS 2.0 footer.
Definition at line 90 of file RSSFeed.php.
RSSFeed::outHeader | ( | ) |
Output an RSS 2.0 header.
Definition at line 46 of file RSSFeed.php.
References $wgVersion, formatTime(), getTitle(), PROTO_CURRENT, wfExpandUrl(), and wfTimestampNow().
RSSFeed::outItem | ( | $item | ) |
Output an RSS 2.0 item.
FeedItem | $item | Item to be output |
Definition at line 67 of file RSSFeed.php.
References formatTime(), PROTO_CURRENT, and wfExpandUrl().