MediaWiki
1.28.0
|
Generate a 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... | |
Public Member Functions inherited from ChannelFeed | |
httpHeaders () | |
Setup and send HTTP headers. More... | |
outFooter () | |
Generate Footer of the feed. More... | |
outHeader () | |
Generate Header of the feed. More... | |
outItem ($item) | |
Generate an item. More... | |
Public Member Functions inherited from FeedItem | |
__construct ($title, $description, $url, $date= '', $author= '', $comments= '') | |
Constructor. More... | |
getAuthor () | |
Get the author of this item; already xml-encoded. More... | |
getComments () | |
Get the comment of this item; already xml-encoded. More... | |
getDate () | |
Get the date of this item. More... | |
getDescription () | |
Get the description of this item; already xml-encoded. More... | |
getLanguage () | |
Get the language of this item. More... | |
getTitle () | |
Get the title of this item; already xml-encoded. More... | |
getUniqueId () | |
Get the unique id of this item. More... | |
getUrl () | |
Get the URL of this item; already xml-encoded. More... | |
setUniqueId ($uniqueId, $rssIsPermalink=false) | |
Set the unique id of an item. More... | |
xmlEncode ($string) | |
Encode $string so that it can be safely embedded in a XML document. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from FeedItem | |
static | stripComment ($text) |
Quickie hack... More... | |
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. More... | |
RSSFeed::formatTime | ( | $ts | ) |
Format a date given a timestamp.
int | $ts | Timestamp |
Definition at line 283 of file Feed.php.
References TS_UNIX, and wfTimestamp().
Referenced by outHeader(), and outItem().
RSSFeed::outFooter | ( | ) |
RSSFeed::outHeader | ( | ) |
Output an RSS 2.0 header.
Definition at line 290 of file Feed.php.
References $wgVersion, formatTime(), FeedItem\getDescription(), FeedItem\getLanguage(), FeedItem\getTitle(), FeedItem\getUrl(), global, link, ChannelFeed\outXmlHeader(), php, print, PROTO_CURRENT, rss, title, version, wfExpandUrl(), and wfTimestampNow().
RSSFeed::outItem | ( | $item | ) |
Output an RSS 2.0 item.
FeedItem | $item | Item to be output |
Definition at line 309 of file Feed.php.
References formatTime(), link, php, print, PROTO_CURRENT, title, and wfExpandUrl().