X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPagePropNames.php;h=11a29ff98da48c265ae2b34e345ea028bd01520c;hb=d2278d1c2ae98e2c177acdab400614f29ac54591;hp=8cd9c6cffab30242e66e8c83e76ed4b6cc2d2813;hpb=e91fd2fc41cca86283ba1ad9158bc87038c9a416;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPagePropNames.php b/includes/api/ApiQueryPagePropNames.php index 8cd9c6cffa..11a29ff98d 100644 --- a/includes/api/ApiQueryPagePropNames.php +++ b/includes/api/ApiQueryPagePropNames.php @@ -78,12 +78,14 @@ class ApiQueryPagePropNames extends ApiQueryBase { } } - $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'p' ); + $result->addIndexedTagName( array( 'query', $this->getModuleName() ), 'p' ); } public function getAllowedParams() { return array( - 'continue' => null, + 'continue' => array( + ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', + ), 'limit' => array( ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_DFLT => 10, @@ -94,20 +96,10 @@ class ApiQueryPagePropNames extends ApiQueryBase { ); } - public function getParamDescription() { - return array( - 'continue' => 'When more results are available, use this to continue', - 'limit' => 'The maximum number of pages to return', - ); - } - - public function getDescription() { - return 'List all page prop names in use on the wiki.'; - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=query&list=pagepropnames' => 'Get first 10 prop names', + 'action=query&list=pagepropnames' + => 'apihelp-query+pagepropnames-example-simple', ); }