MediaWiki  1.34.0
RSSFeed Class Reference

Generate an RSS feed. More...

Inheritance diagram for RSSFeed:
Collaboration diagram for RSSFeed:

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...
 

Detailed Description

Generate an RSS feed.

Definition at line 29 of file RSSFeed.php.

Member Function Documentation

◆ formatTime()

RSSFeed::formatTime (   $ts)

Format a date given a timestamp.

If a timestamp is not given, nothing is returned

Parameters
int | null$tsTimestamp
Returns
string|null Date string

Definition at line 37 of file RSSFeed.php.

References wfTimestamp().

Referenced by outHeader(), and outItem().

◆ outFooter()

RSSFeed::outFooter ( )

Output an RSS 2.0 footer.

Definition at line 90 of file RSSFeed.php.

◆ outHeader()

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().

◆ outItem()

RSSFeed::outItem (   $item)

Output an RSS 2.0 item.

Parameters
FeedItem$itemItem to be output

Definition at line 67 of file RSSFeed.php.

References formatTime(), PROTO_CURRENT, and wfExpandUrl().


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