From: umherirrender Date: Fri, 5 Apr 2013 15:09:18 +0000 (+0200) Subject: Call ApiPageSet::getFinalParamDescription X-Git-Tag: 1.31.0-rc.0~20075^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=b1bee4e2762fdfa966c252b4f1084504816f21ab;p=lhc%2Fweb%2Fwiklou.git Call ApiPageSet::getFinalParamDescription This allows extensions to modify the param description of the ApiPageSet params at once for each module, which used the ApiPageSet. Change-Id: I2ed6f3ad38d3d84182b8525a6b247f721be7f460 --- diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index db82805d50..e4642dd763 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -196,7 +196,7 @@ class ApiImageRotate extends ApiBase { public function getParamDescription() { $pageSet = $this->getPageSet(); - return $pageSet->getParamDescription() + array( + return $pageSet->getFinalParamDescription() + array( 'rotation' => 'Degrees to rotate image clockwise', 'token' => 'Edit token. You can get one of these through action=tokens', ); diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 134f4a0d39..49cc738e58 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -158,7 +158,7 @@ class ApiPurge extends ApiBase { } public function getParamDescription() { - return $this->getPageSet()->getParamDescription() + return $this->getPageSet()->getFinalParamDescription() + array( 'forcelinkupdate' => 'Update the links tables' ); } diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 02c1b27fa3..4d9a772b11 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -696,7 +696,7 @@ class ApiQuery extends ApiBase { } public function getParamDescription() { - return $this->getPageSet()->getParamDescription() + array( + return $this->getPageSet()->getFinalParamDescription() + array( 'prop' => 'Which properties to get for the titles/revisions/pageids. Module help is available below', 'list' => 'Which lists to get. Module help is available below', 'meta' => 'Which metadata to get about the site. Module help is available below', diff --git a/includes/api/ApiSetNotificationTimestamp.php b/includes/api/ApiSetNotificationTimestamp.php index 58d5d9abe9..cae967340d 100644 --- a/includes/api/ApiSetNotificationTimestamp.php +++ b/includes/api/ApiSetNotificationTimestamp.php @@ -212,7 +212,7 @@ class ApiSetNotificationTimestamp extends ApiBase { } public function getParamDescription() { - return $this->getPageSet()->getParamDescription() + array( + return $this->getPageSet()->getFinalParamDescription() + array( 'entirewatchlist' => 'Work on all watched pages', 'timestamp' => 'Timestamp to which to set the notification timestamp', 'torevid' => 'Revision to set the notification timestamp to (one page only)',