MediaWiki
REL1_22
|
Feed to Special:RecentChanges and Special:RecentChangesLiked. More...
Public Member Functions | |
__construct ($format, $type) | |
Constructor. | |
execute ($feed, $rows, $lastmod, $opts) | |
Generates feed's content. | |
getFeedObject ($title, $description, $url) | |
Get a ChannelFeed subclass object to use. | |
loadFromCache ($lastmod, $timekey, $key) | |
Try to load the feed result from $messageMemc. | |
saveToCache ($feed, $timekey, $key) | |
Save to feed result to $messageMemc. | |
Static Public Member Functions | |
static | generateFeed ($rows, &$feed) |
Generate the feed items given a row from the database. | |
Public Attributes | |
$descMsg | |
$format | |
$titleMsg | |
$type |
Feed to Special:RecentChanges and Special:RecentChangesLiked.
Definition at line 28 of file ChangesFeed.php.
ChangesFeed::__construct | ( | $ | format, |
$ | type | ||
) |
ChangesFeed::execute | ( | $ | feed, |
$ | rows, | ||
$ | lastmod, | ||
$ | opts | ||
) |
Generates feed's content.
$feed | ChannelFeed subclass object (generally the one returned by getFeedObject()) |
$rows | ResultWrapper object with rows in recentchanges table |
$lastmod | Integer: timestamp of the last item in the recentchanges table (only used for the cache key) |
$opts | FormOptions as in SpecialRecentChanges::getDefaultOptions() |
Definition at line 76 of file ChangesFeed.php.
References $key, $wgLang, FeedUtils\checkFeedOutput(), FeedUtils\checkPurge(), format, generateFeed(), global, loadFromCache(), saveToCache(), type, wfDebug(), and wfMemcKey().
static ChangesFeed::generateFeed | ( | $ | rows, |
&$ | feed | ||
) | [static] |
Generate the feed items given a row from the database.
$rows | DatabaseBase resource with recentchanges rows |
$feed | Feed object |
Definition at line 167 of file ChangesFeed.php.
References $n, $title, array(), as, MWNamespace\canTalk(), Revision\DELETED_USER, FeedUtils\formatDiff(), Title\makeTitle(), wfMessage(), wfProfileIn(), and wfProfileOut().
Referenced by execute().
ChangesFeed::getFeedObject | ( | $ | title, |
$ | description, | ||
$ | url | ||
) |
Get a ChannelFeed subclass object to use.
string | $title | feed's title |
string | $description | feed's description |
string | $url | url of origin page |
Definition at line 50 of file ChangesFeed.php.
ChangesFeed::loadFromCache | ( | $ | lastmod, |
$ | timekey, | ||
$ | key | ||
) |
Try to load the feed result from $messageMemc.
$lastmod | Integer: timestamp of the last item in the recentchanges table | |
string | $timekey | memcached key of the last modification |
string | $key | memcached key of the content |
Definition at line 132 of file ChangesFeed.php.
References $key, $messageMemc, $wgOut, global, wfDebug(), and wfTimestamp().
Referenced by execute().
ChangesFeed::saveToCache | ( | $ | feed, |
$ | timekey, | ||
$ | key | ||
) |
Save to feed result to $messageMemc.
string | $feed | feed's content |
string | $timekey | memcached key of the last modification |
string | $key | memcached key of the content |
Definition at line 117 of file ChangesFeed.php.
References $key, $messageMemc, global, and wfTimestamp().
Referenced by execute().
ChangesFeed::$descMsg |
Definition at line 29 of file ChangesFeed.php.
ChangesFeed::$format |
Definition at line 29 of file ChangesFeed.php.
Referenced by __construct().
ChangesFeed::$titleMsg |
Definition at line 29 of file ChangesFeed.php.
ChangesFeed::$type |
Definition at line 29 of file ChangesFeed.php.
Referenced by __construct().