[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Feed for list of changes. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 240 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
ChangesFeed:: (7 methods):
__construct()
getFeedObject()
execute()
saveToCache()
loadFromCache()
generateFeed()
buildItems()
Class: ChangesFeed - X-Ref
Feed to Special:RecentChanges and Special:RecentChangesLiked__construct( $format, $type ) X-Ref |
Constructor param: string $format Feed's format (either 'rss' or 'atom') param: string $type Type of feed (for cache keys) |
getFeedObject( $title, $description, $url ) X-Ref |
Get a ChannelFeed subclass object to use param: string $title Feed's title param: string $description Feed's description param: string $url Url of origin page return: ChannelFeed|bool ChannelFeed subclass or false on failure |
execute( $feed, $rows, $lastmod, $opts ) X-Ref |
Generates feed's content param: ChannelFeed $feed ChannelFeed subclass object (generally the one returned param: ResultWrapper $rows ResultWrapper object with rows in recentchanges table param: int $lastmod Timestamp of the last item in the recentchanges table (only param: FormOptions $opts As in SpecialRecentChanges::getDefaultOptions() return: null|bool True or null |
saveToCache( $feed, $timekey, $key ) X-Ref |
Save to feed result to $messageMemc param: string $feed Feed's content param: string $timekey Memcached key of the last modification param: string $key Memcached key of the content |
loadFromCache( $lastmod, $timekey, $key ) X-Ref |
Try to load the feed result from $messageMemc param: int $lastmod Timestamp of the last item in the recentchanges table param: string $timekey Memcached key of the last modification param: string $key Memcached key of the content return: string|bool Feed's content on cache hit or false on cache miss |
generateFeed( $rows, &$feed ) X-Ref |
Generate the feed items given a row from the database, printing the feed. param: object $rows DatabaseBase resource with recentchanges rows param: Feed $feed |
buildItems( $rows ) X-Ref |
Generate the feed items given a row from the database. param: object $rows DatabaseBase resource with recentchanges rows return: array |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |