X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryQueryPage.php;h=74586bbe879e2fe431c3071bb18484234415686e;hb=239b0c772a3cf4dc2160e2c36c2813cd705adb50;hp=1a7f826a79d7094f17c12ea55bcb1eff36b0372d;hpb=3b658a2dd3339dce93ad74984eb0120f6c50ccd9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 1a7f826a79..74586bbe87 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -144,7 +144,10 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { ApiBase::PARAM_TYPE => array_keys( $this->qpMap ), ApiBase::PARAM_REQUIRED => true ), - 'offset' => 0, + 'offset' => array( + ApiBase::PARAM_DFLT => 0, + ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', + ), 'limit' => array( ApiBase::PARAM_DFLT => 10, ApiBase::PARAM_TYPE => 'limit', @@ -155,59 +158,10 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { ); } - public function getParamDescription() { - return array( - 'page' => 'The name of the special page. Note, this is case sensitive', - 'offset' => 'When more results are available, use this to continue', - 'limit' => 'Number of results to return', - ); - } - - public function getResultProperties() { - return array( - ApiBase::PROP_ROOT => array( - 'name' => array( - ApiBase::PROP_TYPE => 'string', - ApiBase::PROP_NULLABLE => false - ), - 'disabled' => array( - ApiBase::PROP_TYPE => 'boolean', - ApiBase::PROP_NULLABLE => false - ), - 'cached' => array( - ApiBase::PROP_TYPE => 'boolean', - ApiBase::PROP_NULLABLE => false - ), - 'cachedtimestamp' => array( - ApiBase::PROP_TYPE => 'timestamp', - ApiBase::PROP_NULLABLE => true - ) - ), - '' => array( - 'value' => 'string', - 'timestamp' => array( - ApiBase::PROP_TYPE => 'timestamp', - ApiBase::PROP_NULLABLE => true - ), - 'ns' => 'namespace', - 'title' => 'string' - ) - ); - } - - public function getDescription() { - return 'Get a list provided by a QueryPage-based special page.'; - } - - public function getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), array( - array( 'specialpage-cantexecute' ) - ) ); - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=query&list=querypage&qppage=Ancientpages' + 'action=query&list=querypage&qppage=Ancientpages' + => 'apihelp-query+querypage-example-ancientpages', ); }