MediaWiki fundraising/REL1_35
|
Generate an RSS feed. More...
Public Member Functions | |
outFooter () | |
Output an RSS 2.0 footer. | |
outHeader () | |
Output an RSS 2.0 header. | |
outItem ( $item) | |
Output an RSS 2.0 item. | |
Public Member Functions inherited from ChannelFeed | |
__construct ( $title, $description, $url, $date='', $author='', $comments='') | |
Stable to call. | |
httpHeaders () | |
Setup and send HTTP headers. | |
Public Member Functions inherited from FeedItem | |
getAuthor () | |
Get the author of this item; already xml-encoded. | |
getAuthorUnescaped () | |
Get the author of this item without any escaping. | |
getComments () | |
Get the comment of this item; already xml-encoded. | |
getCommentsUnescaped () | |
Get the comment of this item without any escaping. | |
getDate () | |
Get the date of this item. | |
getDescription () | |
Get the description of this item; already xml-encoded. | |
getDescriptionUnescaped () | |
Get the description of this item without any escaping. | |
getLanguage () | |
Get the language of this item. | |
getTitle () | |
Get the title of this item; already xml-encoded. | |
getUniqueID () | |
Get the unique id of this item; already xml-encoded. | |
getUniqueIdUnescaped () | |
Get the unique id of this item, without any escaping. | |
getUrl () | |
Get the URL of this item; already xml-encoded. | |
getUrlUnescaped () | |
Get the URL of this item without any escaping. | |
setUniqueId ( $uniqueId, $rssIsPermalink=false) | |
Set the unique id of an item. | |
xmlEncode ( $string) | |
Encode $string so that it can be safely embedded in a XML document. | |
Private Member Functions | |
formatTime ( $ts) | |
Format a date given a timestamp. | |
Additional Inherited Members | |
Static Public Member Functions inherited from FeedItem | |
static | stripComment ( $text) |
Quickie hack... strip out wikilinks to more legible form from the comment. | |
Public Attributes inherited from FeedItem | |
$author | |
$comments | |
$date | |
$description | |
$rssIsPermalink = false | |
Title | $title |
$uniqueId | |
$url | |
Protected Member Functions inherited from ChannelFeed | |
outXmlHeader () | |
Output the initial XML headers. | |
Protected Attributes inherited from ChannelFeed | |
TemplateParser | $templateParser |
Generate an RSS feed.
Definition at line 29 of file RSSFeed.php.
|
private |
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.
Reimplemented from ChannelFeed.
Definition at line 89 of file RSSFeed.php.
References print.
RSSFeed::outHeader | ( | ) |
Output an RSS 2.0 header.
Reimplemented from ChannelFeed.
Definition at line 47 of file RSSFeed.php.
References formatTime(), FeedItem\getDescription(), FeedItem\getLanguage(), FeedItem\getTitle(), FeedItem\getUrlUnescaped(), MW_VERSION, ChannelFeed\outXmlHeader(), print, PROTO_CURRENT, wfExpandUrl(), wfTimestampNow(), and FeedItem\xmlEncode().
RSSFeed::outItem | ( | $item | ) |
Output an RSS 2.0 item.
FeedItem | $item | Item to be output |
Reimplemented from ChannelFeed.
Definition at line 66 of file RSSFeed.php.
References FeedItem\$comments, formatTime(), print, PROTO_CURRENT, wfExpandUrl(), and FeedItem\xmlEncode().