X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryContributors.php;h=7e76db25cd086ce84998db3db0bc08379b7accea;hb=fa645c842e7fdc4b0460525244a5f50ae916810f;hp=b90283f978c9e77c1b7889d1c4a37ae9409db901;hpb=c888520e9921225b92af101f21ae3462530e3e35;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryContributors.php b/includes/api/ApiQueryContributors.php index b90283f978..7e76db25cd 100644 --- a/includes/api/ApiQueryContributors.php +++ b/includes/api/ApiQueryContributors.php @@ -236,51 +236,16 @@ class ApiQueryContributors extends ApiQueryBase { ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2 ), - 'continue' => null, - ); - } - - public function getParamDescription() { - return array( - 'group' => array( - 'Limit users to given group name(s)', - 'Does not include implicit or auto-promoted groups like *, user, or autoconfirmed' - ), - 'excludegroup' => array( - 'Exclude users in given group name(s)', - 'Does not include implicit or auto-promoted groups like *, user, or autoconfirmed' - ), - 'rights' => array( - 'Limit users to those having given right(s)', - 'Does not include rights granted by implicit or auto-promoted groups ' . - 'like *, user, or autoconfirmed' - ), - 'excluderights' => array( - 'Limit users to those not having given right(s)', - 'Does not include rights granted by implicit or auto-promoted groups ' . - 'like *, user, or autoconfirmed' + 'continue' => array( + ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', ), - 'limit' => 'How many contributors to return', - 'continue' => 'When more results are available, use this to continue', - ); - } - - public function getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), - $this->getRequireMaxOneParameterErrorMessages( - array( 'group', 'excludegroup', 'rights', 'excluderights' ) - ) ); } - public function getDescription() { - return 'Get the list of logged-in contributors and ' . - 'the count of anonymous contributors to a page.'; - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=query&prop=contributors&titles=Main_Page', + 'action=query&prop=contributors&titles=Main_Page' + => 'apihelp-query+contributors-example-simple', ); }