MediaWiki
1.30.0
|
Feed to Special:RecentChanges and Special:RecentChangesLiked. More...
Public Member Functions | |
__construct ( $format, $type) | |
execute ( $feed, $rows, $lastmod, $opts) | |
Generates feed's content. More... | |
getFeedObject ( $title, $description, $url) | |
Get a ChannelFeed subclass object to use. More... | |
loadFromCache ( $lastmod, $timekey, $key) | |
Try to load the feed result from cache. More... | |
saveToCache ( $feed, $timekey, $key) | |
Save to feed result to cache. More... | |
Static Public Member Functions | |
static | buildItems ( $rows) |
Generate the feed items given a row from the database. More... | |
static | generateFeed ( $rows, &$feed) |
Generate the feed items given a row from the database, printing the feed. More... | |
Public Attributes | |
$descMsg | |
$format | |
$titleMsg | |
$type | |
Feed to Special:RecentChanges and Special:RecentChangesLiked.
Definition at line 30 of file ChangesFeed.php.
ChangesFeed::__construct | ( | $format, | |
$type | |||
) |
|
static |
Generate the feed items given a row from the database.
object | $rows | IDatabase resource with recentchanges rows |
Definition at line 184 of file ChangesFeed.php.
References $rows, $title, as, MWNamespace\canTalk(), Revision\DELETED_USER, FeedUtils\formatDiff(), Title\makeTitle(), RC_EDIT, RC_EXTERNAL, and wfMessage().
Referenced by ApiFeedRecentChanges\execute(), and generateFeed().
ChangesFeed::execute | ( | $feed, | |
$rows, | |||
$lastmod, | |||
$opts | |||
) |
Generates feed's content.
ChannelFeed | $feed | ChannelFeed subclass object (generally the one returned by getFeedObject()) |
ResultWrapper | $rows | ResultWrapper object with rows in recentchanges table |
int | $lastmod | Timestamp of the last item in the recentchanges table (only used for the cache key) |
FormOptions | $opts | As in SpecialRecentChanges::getDefaultOptions() |
Definition at line 78 of file ChangesFeed.php.
References $rows, $wgLang, $wgRenderHashAppend, FeedUtils\checkFeedOutput(), FeedUtils\checkPurge(), format, generateFeed(), global, loadFromCache(), saveToCache(), serialize(), type, wfDebug(), and wfMemcKey().
|
static |
Generate the feed items given a row from the database, printing the feed.
object | $rows | IDatabase resource with recentchanges rows |
ChannelFeed | &$feed |
Definition at line 170 of file ChangesFeed.php.
References $rows, as, and buildItems().
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.
References $format, $wgFeedClasses, $wgLanguageCode, $wgSitename, format, and global.
ChangesFeed::loadFromCache | ( | $lastmod, | |
$timekey, | |||
$key | |||
) |
Try to load the feed result from cache.
int | $lastmod | 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 134 of file ChangesFeed.php.
References $cache, $wgFeedCacheTimeout, $wgOut, ObjectCache\getMainWANInstance(), global, wfDebug(), and wfTimestamp().
Referenced by execute().
ChangesFeed::saveToCache | ( | $feed, | |
$timekey, | |||
$key | |||
) |
Save to feed result to cache.
string | $feed | Feed's content |
string | $timekey | Memcached key of the last modification |
string | $key | Memcached key of the content |
Definition at line 120 of file ChangesFeed.php.
References $cache, ObjectCache\getMainWANInstance(), and wfTimestamp().
Referenced by execute().
ChangesFeed::$descMsg |
Definition at line 31 of file ChangesFeed.php.
ChangesFeed::$format |
Definition at line 31 of file ChangesFeed.php.
Referenced by __construct(), and getFeedObject().
ChangesFeed::$titleMsg |
Definition at line 31 of file ChangesFeed.php.
ChangesFeed::$type |
Definition at line 31 of file ChangesFeed.php.
Referenced by __construct().