diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /extensions/Gadgets/api/ApiQueryGadgetCategories.php | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'extensions/Gadgets/api/ApiQueryGadgetCategories.php')
-rw-r--r-- | extensions/Gadgets/api/ApiQueryGadgetCategories.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/extensions/Gadgets/api/ApiQueryGadgetCategories.php b/extensions/Gadgets/api/ApiQueryGadgetCategories.php index 73628085..23257f12 100644 --- a/extensions/Gadgets/api/ApiQueryGadgetCategories.php +++ b/extensions/Gadgets/api/ApiQueryGadgetCategories.php @@ -88,10 +88,16 @@ class ApiQueryGadgetCategories extends ApiQueryBase { ); } + /** + * @deprecated since MediaWiki core 1.25 + */ public function getDescription() { return 'Returns a list of gadget categories'; } + /** + * @deprecated since MediaWiki core 1.25 + */ public function getParamDescription() { return array( 'prop' => array( @@ -104,6 +110,9 @@ class ApiQueryGadgetCategories extends ApiQueryBase { ); } + /** + * @deprecated since MediaWiki core 1.25 + */ public function getExamples() { $params = $this->getAllowedParams(); $allProps = implode( '|', $params['prop'][ApiBase::PARAM_TYPE] ); @@ -116,7 +125,15 @@ class ApiQueryGadgetCategories extends ApiQueryBase { ); } - public function getVersion() { - return __CLASS__ . ': $Id$'; + /** + * @see ApiBase::getExamplesMessages() + */ + protected function getExamplesMessages() { + return array( + 'action=query&list=gadgetcategories' + => 'apihelp-query+gadgetcategories-example-1', + 'action=query&list=gadgetcategories&gcnames=foo|bar&gcprop=name|title|members' + => 'apihelp-query+gadgetcategories-example-2', + ); } } |