X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFeedRecentChanges.php;h=d452bbd63074db9654e09f0c51acd20f725ebea7;hb=95c85f71b178e75efd0a4444a4f39bbce27e694f;hp=bb68d5aed7dd333e8a12cb8094a426616eff9c9e;hpb=64ca212514d48330ff02fdaed34563e0b75e22c4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFeedRecentChanges.php b/includes/api/ApiFeedRecentChanges.php index bb68d5aed7..d452bbd630 100644 --- a/includes/api/ApiFeedRecentChanges.php +++ b/includes/api/ApiFeedRecentChanges.php @@ -171,44 +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 getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), array( - array( 'code' => 'feed-unavailable', 'info' => 'Syndication feeds are not available' ), - array( 'code' => 'feed-invalid', 'info' => 'Invalid subscription feed type' ), - ) ); - } - - 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', ); } }