diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /includes/api/ApiFeedRecentChanges.php | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'includes/api/ApiFeedRecentChanges.php')
-rw-r--r-- | includes/api/ApiFeedRecentChanges.php | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/includes/api/ApiFeedRecentChanges.php b/includes/api/ApiFeedRecentChanges.php index 7239a296..d452bbd6 100644 --- a/includes/api/ApiFeedRecentChanges.php +++ b/includes/api/ApiFeedRecentChanges.php @@ -171,37 +171,12 @@ class ApiFeedRecentChanges extends ApiBase { return $ret; } - public function getParamDescription() { + protected function getExamplesMessages() { return array( - 'feedformat' => 'The format of the feed', - 'namespace' => 'Namespace to limit the results to', - 'invert' => 'All namespaces but the selected one', - 'associated' => 'Include associated (talk or main) namespace', - 'days' => 'Days to limit the results to', - 'limit' => 'Maximum number of results to return', - 'from' => 'Show changes since then', - 'hideminor' => 'Hide minor changes', - 'hidebots' => 'Hide changes made by bots', - 'hideanons' => 'Hide changes made by anonymous users', - 'hideliu' => 'Hide changes made by registered users', - 'hidepatrolled' => 'Hide patrolled changes', - 'hidemyself' => 'Hide changes made by yourself', - 'tagfilter' => 'Filter by tag', - 'target' => 'Show only changes on pages linked from this page', - 'showlinkedto' => 'Show changes on pages linked to the selected page instead', - 'categories' => 'Show only changes on pages in all of these categories', - 'categories_any' => 'Show only changes on pages in any of the categories instead', - ); - } - - public function getDescription() { - return 'Returns a recent changes feed'; - } - - public function getExamples() { - return array( - 'api.php?action=feedrecentchanges', - 'api.php?action=feedrecentchanges&days=30' + 'action=feedrecentchanges' + => 'apihelp-feedrecentchanges-example-simple', + 'action=feedrecentchanges&days=30' + => 'apihelp-feedrecentchanges-example-30days', ); } } |