r96003 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96002‎ | r96003 | r96004 >
Date:15:51, 1 September 2011
Author:catrope
Status:ok
Tags:
Comment:
RL2: Make getExamples() in API modules public, was done in trunk earlier
Modified paths:
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php (modified) (history)
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php (modified) (history)
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php
@@ -140,7 +140,7 @@
141141 );
142142 }
143143
144 - protected function getExamples() {
 144+ public function getExamples() {
145145 return array(
146146 'Get a list of .js pages in the MediaWiki namespace:',
147147 ' api.php?action=query&list=gadgetpages&gpextension=js&gpnamespace=8',
Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php
@@ -200,7 +200,7 @@
201201 );
202202 }
203203
204 - protected function getExamples() {
 204+ public function getExamples() {
205205 $params = $this->getAllowedParams();
206206 $allProps = implode( '|', $params['prop'][ApiBase::PARAM_TYPE] );
207207 return array(
Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php
@@ -121,7 +121,7 @@
122122 );
123123 }
124124
125 - protected function getExamples() {
 125+ public function getExamples() {
126126 $params = $this->getAllowedParams();
127127 $allProps = implode( '|', $params['prop'][ApiBase::PARAM_TYPE] );
128128 return array(

Status & tagging log