X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPagePropNames.php;h=4966bcde04ed0403d51c38f1c225e237269c9ead;hb=d506839ee9dfe6818b8a62a6a78e24de520708b0;hp=e4a5002a97fdafeb2000df1e1143b2a00a996dd2;hpb=a6120e1baa64475f3753810c09e80cbc7d048499;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPagePropNames.php b/includes/api/ApiQueryPagePropNames.php index e4a5002a97..4966bcde04 100644 --- a/includes/api/ApiQueryPagePropNames.php +++ b/includes/api/ApiQueryPagePropNames.php @@ -69,41 +69,41 @@ class ApiQueryPagePropNames extends ApiQueryBase { break; } - $vals = array(); + $vals = []; $vals['propname'] = $row->pp_propname; - $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $vals ); + $fit = $result->addValue( [ 'query', $this->getModuleName() ], null, $vals ); if ( !$fit ) { $this->setContinueEnumParameter( 'continue', $row->pp_propname ); break; } } - $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'p' ); + $result->addIndexedTagName( [ 'query', $this->getModuleName() ], 'p' ); } public function getAllowedParams() { - return array( - 'continue' => array( + return [ + 'continue' => [ ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', - ), - 'limit' => array( + ], + 'limit' => [ ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_DFLT => 10, ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2 - ), - ); + ], + ]; } - public function getExamplesMessages() { - return array( + protected function getExamplesMessages() { + return [ 'action=query&list=pagepropnames' => 'apihelp-query+pagepropnames-example-simple', - ); + ]; } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Pagepropnames'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Pagepropnames'; } }