X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPagePropNames.php;h=fc50b5067e658af3400cffe8749bfa848d4b463e;hb=a0c9fb59a934a3e7d9f31f249ab0b2b923f49db7;hp=026f0611fe30f04e3261b288a4254d9840ba2a88;hpb=79168e0f8b0d20d2ffdfbbb51d1acf42ecea05a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPagePropNames.php b/includes/api/ApiQueryPagePropNames.php index 026f0611fe..fc50b5067e 100644 --- a/includes/api/ApiQueryPagePropNames.php +++ b/includes/api/ApiQueryPagePropNames.php @@ -69,38 +69,38 @@ 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 - ), - ); + ], + ]; } protected function getExamplesMessages() { - return array( + return [ 'action=query&list=pagepropnames' => 'apihelp-query+pagepropnames-example-simple', - ); + ]; } public function getHelpUrls() {