Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -633,7 +633,7 @@ |
634 | 634 | ) ); |
635 | 635 | } |
636 | 636 | |
637 | | - protected function getExamples() { |
| 637 | + public function getExamples() { |
638 | 638 | return array( |
639 | 639 | 'api.php?action=query&list=recentchanges' |
640 | 640 | ); |
Index: trunk/phase3/includes/api/ApiQueryAllLinks.php |
— | — | @@ -221,7 +221,7 @@ |
222 | 222 | ) ); |
223 | 223 | } |
224 | 224 | |
225 | | - protected function getExamples() { |
| 225 | + public function getExamples() { |
226 | 226 | return array( |
227 | 227 | 'api.php?action=query&list=alllinks&alunique=&alfrom=B', |
228 | 228 | ); |
Index: trunk/phase3/includes/api/ApiQueryAllCategories.php |
— | — | @@ -196,7 +196,7 @@ |
197 | 197 | return 'Enumerate all categories'; |
198 | 198 | } |
199 | 199 | |
200 | | - protected function getExamples() { |
| 200 | + public function getExamples() { |
201 | 201 | return array( |
202 | 202 | 'api.php?action=query&list=allcategories&acprop=size', |
203 | 203 | 'api.php?action=query&generator=allcategories&gacprefix=List&prop=info', |
Index: trunk/phase3/includes/api/ApiWatch.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | ) ); |
120 | 120 | } |
121 | 121 | |
122 | | - protected function getExamples() { |
| 122 | + public function getExamples() { |
123 | 123 | return array( |
124 | 124 | 'api.php?action=watch&title=Main_Page', |
125 | 125 | 'api.php?action=watch&title=Main_Page&unwatch=', |
Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -633,7 +633,7 @@ |
634 | 634 | ) ); |
635 | 635 | } |
636 | 636 | |
637 | | - protected function getExamples() { |
| 637 | + public function getExamples() { |
638 | 638 | return array( |
639 | 639 | 'api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics', |
640 | 640 | 'api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local', |
Index: trunk/phase3/includes/api/ApiQueryRandom.php |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | ); |
177 | 177 | } |
178 | 178 | |
179 | | - protected function getExamples() { |
| 179 | + public function getExamples() { |
180 | 180 | return 'api.php?action=query&list=random&rnnamespace=0&rnlimit=2'; |
181 | 181 | } |
182 | 182 | |
Index: trunk/phase3/includes/api/ApiMove.php |
— | — | @@ -254,7 +254,7 @@ |
255 | 255 | return ''; |
256 | 256 | } |
257 | 257 | |
258 | | - protected function getExamples() { |
| 258 | + public function getExamples() { |
259 | 259 | return array( |
260 | 260 | 'api.php?action=move&from=Exampel&to=Example&token=123ABC&reason=Misspelled%20title&movetalk=&noredirect=' |
261 | 261 | ); |
Index: trunk/phase3/includes/api/ApiComparePages.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | ) ); |
120 | 120 | } |
121 | 121 | |
122 | | - protected function getExamples() { |
| 122 | + public function getExamples() { |
123 | 123 | return array( |
124 | 124 | 'api.php?action=compare&fromrev=1&torev=2', |
125 | 125 | ); |
Index: trunk/phase3/includes/api/ApiQueryLinks.php |
— | — | @@ -229,7 +229,7 @@ |
230 | 230 | return "Returns all {$this->description}s from the given page(s)"; |
231 | 231 | } |
232 | 232 | |
233 | | - protected function getExamples() { |
| 233 | + public function getExamples() { |
234 | 234 | return array( |
235 | 235 | "Get {$this->description}s from the [[Main Page]]:", |
236 | 236 | " api.php?action=query&prop={$this->getModuleName()}&titles=Main%20Page", |
Index: trunk/phase3/includes/api/ApiFileRevert.php |
— | — | @@ -176,7 +176,7 @@ |
177 | 177 | return ''; |
178 | 178 | } |
179 | 179 | |
180 | | - protected function getExamples() { |
| 180 | + public function getExamples() { |
181 | 181 | return array( |
182 | 182 | 'Revert Wiki.png to the version of 20110305152740:', |
183 | 183 | ' api.php?action=filerevert&filename=Wiki.png&comment=Revert&archivename=20110305152740!Wiki.png&token=+\\', |
Index: trunk/phase3/includes/api/ApiLogout.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | return 'Log out and clear session data'; |
69 | 69 | } |
70 | 70 | |
71 | | - protected function getExamples() { |
| 71 | + public function getExamples() { |
72 | 72 | return array( |
73 | 73 | 'api.php?action=logout' |
74 | 74 | ); |
Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -587,7 +587,7 @@ |
588 | 588 | ) ); |
589 | 589 | } |
590 | 590 | |
591 | | - protected function getExamples() { |
| 591 | + public function getExamples() { |
592 | 592 | return array( |
593 | 593 | 'api.php?action=parse&text={{Project:Sandbox}}' |
594 | 594 | ); |
Index: trunk/phase3/includes/api/ApiQueryExtLinksUsage.php |
— | — | @@ -245,7 +245,7 @@ |
246 | 246 | ) ); |
247 | 247 | } |
248 | 248 | |
249 | | - protected function getExamples() { |
| 249 | + public function getExamples() { |
250 | 250 | return array( |
251 | 251 | 'api.php?action=query&list=exturlusage&euquery=www.mediawiki.org' |
252 | 252 | ); |
Index: trunk/phase3/includes/api/ApiQueryAllpages.php |
— | — | @@ -312,7 +312,7 @@ |
313 | 313 | ) ); |
314 | 314 | } |
315 | 315 | |
316 | | - protected function getExamples() { |
| 316 | + public function getExamples() { |
317 | 317 | return array( |
318 | 318 | 'Simple Use', |
319 | 319 | ' Show a list of pages starting at the letter "B"', |
Index: trunk/phase3/includes/api/ApiProtect.php |
— | — | @@ -217,7 +217,7 @@ |
218 | 218 | return ''; |
219 | 219 | } |
220 | 220 | |
221 | | - protected function getExamples() { |
| 221 | + public function getExamples() { |
222 | 222 | return array( |
223 | 223 | 'api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never', |
224 | 224 | 'api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=all|move=all&reason=Lifting%20restrictions' |
Index: trunk/phase3/includes/api/ApiPurge.php |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | ) ); |
138 | 138 | } |
139 | 139 | |
140 | | - protected function getExamples() { |
| 140 | + public function getExamples() { |
141 | 141 | return array( |
142 | 142 | 'api.php?action=purge&titles=Main_Page|API' |
143 | 143 | ); |
Index: trunk/phase3/includes/api/ApiQueryPageProps.php |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | return 'Get various properties defined in the page content'; |
144 | 144 | } |
145 | 145 | |
146 | | - protected function getExamples() { |
| 146 | + public function getExamples() { |
147 | 147 | return array( |
148 | 148 | 'api.php?action=query&prop=pageprops&titles=Category:Foo', |
149 | 149 | ); |
Index: trunk/phase3/includes/api/ApiQueryBacklinks.php |
— | — | @@ -511,7 +511,7 @@ |
512 | 512 | ) ); |
513 | 513 | } |
514 | 514 | |
515 | | - protected function getExamples() { |
| 515 | + public function getExamples() { |
516 | 516 | static $examples = array( |
517 | 517 | 'backlinks' => array( |
518 | 518 | 'api.php?action=query&list=backlinks&bltitle=Main%20Page', |
Index: trunk/phase3/includes/api/ApiRollback.php |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | return $this->mTitleObj; |
186 | 186 | } |
187 | 187 | |
188 | | - protected function getExamples() { |
| 188 | + public function getExamples() { |
189 | 189 | return array( |
190 | 190 | 'api.php?action=rollback&title=Main%20Page&user=Catrope&token=123ABC', |
191 | 191 | 'api.php?action=rollback&title=Main%20Page&user=217.121.114.116&token=123ABC&summary=Reverting%20vandalism&markbot=1' |
Index: trunk/phase3/includes/api/ApiQueryDeletedrevs.php |
— | — | @@ -385,7 +385,7 @@ |
386 | 386 | ) ); |
387 | 387 | } |
388 | 388 | |
389 | | - protected function getExamples() { |
| 389 | + public function getExamples() { |
390 | 390 | return array( |
391 | 391 | 'List the last deleted revisions of Main Page and Talk:Main Page, with content (mode 1):', |
392 | 392 | ' api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content', |
Index: trunk/phase3/includes/api/ApiExpandTemplates.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | ) ); |
120 | 120 | } |
121 | 121 | |
122 | | - protected function getExamples() { |
| 122 | + public function getExamples() { |
123 | 123 | return array( |
124 | 124 | 'api.php?action=expandtemplates&text={{Project:Sandbox}}' |
125 | 125 | ); |
Index: trunk/phase3/includes/api/ApiUserrights.php |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | return $this->getUser()->getName(); |
135 | 135 | } |
136 | 136 | |
137 | | - protected function getExamples() { |
| 137 | + public function getExamples() { |
138 | 138 | return array( |
139 | 139 | 'api.php?action=userrights&user=FooBot&add=bot&remove=sysop|bureaucrat&token=123ABC' |
140 | 140 | ); |
Index: trunk/phase3/includes/api/ApiDelete.php |
— | — | @@ -269,7 +269,7 @@ |
270 | 270 | return ''; |
271 | 271 | } |
272 | 272 | |
273 | | - protected function getExamples() { |
| 273 | + public function getExamples() { |
274 | 274 | return array( |
275 | 275 | 'api.php?action=delete&title=Main%20Page&token=123ABC', |
276 | 276 | 'api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move' |
Index: trunk/phase3/includes/api/ApiQueryBlocks.php |
— | — | @@ -336,7 +336,7 @@ |
337 | 337 | ) ); |
338 | 338 | } |
339 | 339 | |
340 | | - protected function getExamples() { |
| 340 | + public function getExamples() { |
341 | 341 | return array( |
342 | 342 | 'api.php?action=query&list=blocks', |
343 | 343 | 'api.php?action=query&list=blocks&bkusers=Alice|Bob' |
Index: trunk/phase3/includes/api/ApiQueryFilearchive.php |
— | — | @@ -285,7 +285,7 @@ |
286 | 286 | ) ); |
287 | 287 | } |
288 | 288 | |
289 | | - protected function getExamples() { |
| 289 | + public function getExamples() { |
290 | 290 | return array( |
291 | 291 | 'Simple Use', |
292 | 292 | ' Show a list of all deleted files', |
Index: trunk/phase3/includes/api/ApiDisabled.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | return 'This module has been disabled'; |
67 | 67 | } |
68 | 68 | |
69 | | - protected function getExamples() { |
| 69 | + public function getExamples() { |
70 | 70 | return array(); |
71 | 71 | } |
72 | 72 | |
Index: trunk/phase3/includes/api/ApiImport.php |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | return ''; |
160 | 160 | } |
161 | 161 | |
162 | | - protected function getExamples() { |
| 162 | + public function getExamples() { |
163 | 163 | return array( |
164 | 164 | 'Import [[meta:Help:Parserfunctions]] to namespace 100 with full history:', |
165 | 165 | ' api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC', |
Index: trunk/phase3/includes/api/ApiQueryCategoryMembers.php |
— | — | @@ -379,7 +379,7 @@ |
380 | 380 | ); |
381 | 381 | } |
382 | 382 | |
383 | | - protected function getExamples() { |
| 383 | + public function getExamples() { |
384 | 384 | return array( |
385 | 385 | 'Get first 10 pages in [[Category:Physics]]:', |
386 | 386 | ' api.php?action=query&list=categorymembers&cmtitle=Category:Physics', |
Index: trunk/phase3/includes/api/ApiQueryCategoryInfo.php |
— | — | @@ -115,7 +115,7 @@ |
116 | 116 | return 'Returns information about the given categories'; |
117 | 117 | } |
118 | 118 | |
119 | | - protected function getExamples() { |
| 119 | + public function getExamples() { |
120 | 120 | return 'api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar'; |
121 | 121 | } |
122 | 122 | |
Index: trunk/phase3/includes/api/ApiEditPage.php |
— | — | @@ -415,7 +415,7 @@ |
416 | 416 | ) ); |
417 | 417 | } |
418 | 418 | |
419 | | - protected function getAllowedParams() { |
| 419 | + public function getAllowedParams() { |
420 | 420 | return array( |
421 | 421 | 'title' => array( |
422 | 422 | ApiBase::PARAM_TYPE => 'string', |
— | — | @@ -468,7 +468,7 @@ |
469 | 469 | ); |
470 | 470 | } |
471 | 471 | |
472 | | - protected function getParamDescription() { |
| 472 | + public function getParamDescription() { |
473 | 473 | $p = $this->getModulePrefix(); |
474 | 474 | return array( |
475 | 475 | 'title' => 'Page title', |
— | — | @@ -513,7 +513,7 @@ |
514 | 514 | return ''; |
515 | 515 | } |
516 | 516 | |
517 | | - protected function getExamples() { |
| 517 | + public function getExamples() { |
518 | 518 | return array( |
519 | 519 | 'Edit a page (anonymous user):', |
520 | 520 | ' api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&basetimestamp=20070824123454&token=%2B\\', |
Index: trunk/phase3/includes/api/ApiFormatBase.php |
— | — | @@ -288,7 +288,7 @@ |
289 | 289 | return $text; |
290 | 290 | } |
291 | 291 | |
292 | | - protected function getExamples() { |
| 292 | + public function getExamples() { |
293 | 293 | return 'api.php?action=query&meta=siteinfo&siprop=namespaces&format=' . $this->getModuleName(); |
294 | 294 | } |
295 | 295 | |
Index: trunk/phase3/includes/api/ApiQueryAllimages.php |
— | — | @@ -249,7 +249,7 @@ |
250 | 250 | ) ); |
251 | 251 | } |
252 | 252 | |
253 | | - protected function getExamples() { |
| 253 | + public function getExamples() { |
254 | 254 | return array( |
255 | 255 | 'Simple Use', |
256 | 256 | ' Show a list of images starting at the letter "B"', |
Index: trunk/phase3/includes/api/ApiQueryAllmessages.php |
— | — | @@ -246,7 +246,7 @@ |
247 | 247 | return 'Return messages from this site'; |
248 | 248 | } |
249 | 249 | |
250 | | - protected function getExamples() { |
| 250 | + public function getExamples() { |
251 | 251 | return array( |
252 | 252 | 'api.php?action=query&meta=allmessages&refix=ipb-', |
253 | 253 | 'api.php?action=query&meta=allmessages&ammessages=august|mainpage&amlang=de', |
Index: trunk/phase3/includes/api/ApiQuerySearch.php |
— | — | @@ -295,7 +295,7 @@ |
296 | 296 | ) ); |
297 | 297 | } |
298 | 298 | |
299 | | - protected function getExamples() { |
| 299 | + public function getExamples() { |
300 | 300 | return array( |
301 | 301 | 'api.php?action=query&list=search&srsearch=meaning', |
302 | 302 | 'api.php?action=query&list=search&srwhat=text&srsearch=meaning', |
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -445,7 +445,7 @@ |
446 | 446 | ) ); |
447 | 447 | } |
448 | 448 | |
449 | | - protected function getExamples() { |
| 449 | + public function getExamples() { |
450 | 450 | return array( |
451 | 451 | 'api.php?action=query&list=logevents' |
452 | 452 | ); |
Index: trunk/phase3/includes/api/ApiUnblock.php |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | return ''; |
143 | 143 | } |
144 | 144 | |
145 | | - protected function getExamples() { |
| 145 | + public function getExamples() { |
146 | 146 | return array( |
147 | 147 | 'api.php?action=unblock&id=105', |
148 | 148 | 'api.php?action=unblock&user=Bob&reason=Sorry%20Bob' |
Index: trunk/phase3/includes/api/ApiQueryWatchlistRaw.php |
— | — | @@ -197,7 +197,7 @@ |
198 | 198 | ) ); |
199 | 199 | } |
200 | 200 | |
201 | | - protected function getExamples() { |
| 201 | + public function getExamples() { |
202 | 202 | return array( |
203 | 203 | 'api.php?action=query&list=watchlistraw', |
204 | 204 | 'api.php?action=query&generator=watchlistraw&gwrshow=changed&prop=revisions', |
Index: trunk/phase3/includes/api/ApiQueryProtectedTitles.php |
— | — | @@ -224,7 +224,7 @@ |
225 | 225 | return 'List all titles protected from creation'; |
226 | 226 | } |
227 | 227 | |
228 | | - protected function getExamples() { |
| 228 | + public function getExamples() { |
229 | 229 | return array( |
230 | 230 | 'api.php?action=query&list=protectedtitles', |
231 | 231 | ); |
Index: trunk/phase3/includes/api/ApiQuery.php |
— | — | @@ -695,7 +695,7 @@ |
696 | 696 | ) ); |
697 | 697 | } |
698 | 698 | |
699 | | - protected function getExamples() { |
| 699 | + public function getExamples() { |
700 | 700 | return array( |
701 | 701 | 'api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment', |
702 | 702 | 'api.php?action=query&generator=allpages&gapprefix=API/&prop=revisions', |
Index: trunk/phase3/includes/api/ApiQueryIWLinks.php |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | ) ); |
168 | 168 | } |
169 | 169 | |
170 | | - protected function getExamples() { |
| 170 | + public function getExamples() { |
171 | 171 | return array( |
172 | 172 | 'Get interwiki links from the [[Main Page]]:', |
173 | 173 | ' api.php?action=query&prop=iwlinks&titles=Main%20Page', |
Index: trunk/phase3/includes/api/ApiLogin.php |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | ) ); |
208 | 208 | } |
209 | 209 | |
210 | | - protected function getExamples() { |
| 210 | + public function getExamples() { |
211 | 211 | return array( |
212 | 212 | 'api.php?action=login&lgname=user&lgpassword=password' |
213 | 213 | ); |
Index: trunk/phase3/includes/api/ApiQueryLangLinks.php |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | ) ); |
161 | 161 | } |
162 | 162 | |
163 | | - protected function getExamples() { |
| 163 | + public function getExamples() { |
164 | 164 | return array( |
165 | 165 | 'Get interlanguage links from the [[Main Page]]:', |
166 | 166 | ' api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=', |
Index: trunk/phase3/includes/api/ApiQueryUserInfo.php |
— | — | @@ -231,7 +231,7 @@ |
232 | 232 | return 'Get information about the current user'; |
233 | 233 | } |
234 | 234 | |
235 | | - protected function getExamples() { |
| 235 | + public function getExamples() { |
236 | 236 | return array( |
237 | 237 | 'api.php?action=query&meta=userinfo', |
238 | 238 | 'api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg', |
Index: trunk/phase3/includes/api/ApiQueryImageInfo.php |
— | — | @@ -568,7 +568,7 @@ |
569 | 569 | ) ); |
570 | 570 | } |
571 | 571 | |
572 | | - protected function getExamples() { |
| 572 | + public function getExamples() { |
573 | 573 | return array( |
574 | 574 | 'api.php?action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo', |
575 | 575 | 'api.php?action=query&titles=File:Test.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp|user|url', |
Index: trunk/phase3/includes/api/ApiEmailUser.php |
— | — | @@ -138,7 +138,7 @@ |
139 | 139 | return ''; |
140 | 140 | } |
141 | 141 | |
142 | | - protected function getExamples() { |
| 142 | + public function getExamples() { |
143 | 143 | return array( |
144 | 144 | 'api.php?action=emailuser&target=WikiSysop&text=Content' |
145 | 145 | ); |
Index: trunk/phase3/includes/api/ApiFeedContributions.php |
— | — | @@ -195,7 +195,7 @@ |
196 | 196 | ) ); |
197 | 197 | } |
198 | 198 | |
199 | | - protected function getExamples() { |
| 199 | + public function getExamples() { |
200 | 200 | return array( |
201 | 201 | 'api.php?action=feedcontributions&user=Reedy', |
202 | 202 | ); |
Index: trunk/phase3/includes/api/ApiQueryStashImageInfo.php |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | return 'Returns image information for stashed images'; |
129 | 129 | } |
130 | 130 | |
131 | | - protected function getExamples() { |
| 131 | + public function getExamples() { |
132 | 132 | return array( |
133 | 133 | 'api.php?action=query&prop=stashimageinfo&siifilekey=124sd34rsdf567', |
134 | 134 | 'api.php?action=query&prop=stashimageinfo&siifilekey=b34edoe3|bceffd4&siiurlwidth=120&siiprop=url', |
Index: trunk/phase3/includes/api/ApiOpenSearch.php |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | return 'Search the wiki using the OpenSearch protocol'; |
121 | 121 | } |
122 | 122 | |
123 | | - protected function getExamples() { |
| 123 | + public function getExamples() { |
124 | 124 | return array( |
125 | 125 | 'api.php?action=opensearch&search=Te' |
126 | 126 | ); |
Index: trunk/phase3/includes/api/ApiQueryIWBacklinks.php |
— | — | @@ -207,7 +207,7 @@ |
208 | 208 | ) ); |
209 | 209 | } |
210 | 210 | |
211 | | - protected function getExamples() { |
| 211 | + public function getExamples() { |
212 | 212 | return array( |
213 | 213 | 'api.php?action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks', |
214 | 214 | 'api.php?action=query&generator=iwbacklinks&giwbltitle=Test&iwblprefix=wikibooks&prop=info' |
Index: trunk/phase3/includes/api/ApiQueryQueryPage.php |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | } |
99 | 99 | } |
100 | 100 | $result->addValue( array( 'query' ), $this->getModuleName(), $r ); |
101 | | - |
| 101 | + |
102 | 102 | if ( $qp->isCached() && !$qp->isCacheable() ) { |
103 | 103 | // Disabled query page, don't run the query |
104 | 104 | return; |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | ) ); |
188 | 188 | } |
189 | 189 | |
190 | | - protected function getExamples() { |
| 190 | + public function getExamples() { |
191 | 191 | return array( |
192 | 192 | 'api.php?action=query&list=querypage&qppage=Ancientpages' |
193 | 193 | ); |
Index: trunk/phase3/includes/api/ApiPageSet.php |
— | — | @@ -464,7 +464,7 @@ |
465 | 465 | __METHOD__ ); |
466 | 466 | $this->profileDBOut(); |
467 | 467 | } |
468 | | - |
| 468 | + |
469 | 469 | $this->initFromQueryResult( $res, $remaining, false ); // process PageIDs |
470 | 470 | |
471 | 471 | // Resolve any found redirects |
— | — | @@ -743,7 +743,7 @@ |
744 | 744 | return $array; |
745 | 745 | } |
746 | 746 | |
747 | | - protected function getAllowedParams() { |
| 747 | + public function getAllowedParams() { |
748 | 748 | return array( |
749 | 749 | 'titles' => array( |
750 | 750 | ApiBase::PARAM_ISMULTI => true |
— | — | @@ -759,7 +759,7 @@ |
760 | 760 | ); |
761 | 761 | } |
762 | 762 | |
763 | | - protected function getParamDescription() { |
| 763 | + public function getParamDescription() { |
764 | 764 | return array( |
765 | 765 | 'titles' => 'A list of titles to work on', |
766 | 766 | 'pageids' => 'A list of page IDs to work on', |
Index: trunk/phase3/includes/api/ApiHelp.php |
— | — | @@ -139,7 +139,7 @@ |
140 | 140 | return 'Display this help screen. Or the help screen for the specified module'; |
141 | 141 | } |
142 | 142 | |
143 | | - protected function getExamples() { |
| 143 | + public function getExamples() { |
144 | 144 | return array( |
145 | 145 | 'Whole help page:', |
146 | 146 | ' api.php?action=help', |
Index: trunk/phase3/includes/api/ApiQueryWatchlist.php |
— | — | @@ -439,7 +439,7 @@ |
440 | 440 | ) ); |
441 | 441 | } |
442 | 442 | |
443 | | - protected function getExamples() { |
| 443 | + public function getExamples() { |
444 | 444 | return array( |
445 | 445 | 'api.php?action=query&list=watchlist', |
446 | 446 | 'api.php?action=query&list=watchlist&wlprop=ids|title|timestamp|user|comment', |
Index: trunk/phase3/includes/api/ApiRsd.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | return 'Export an RSD (Really Simple Discovery) schema'; |
73 | 73 | } |
74 | 74 | |
75 | | - protected function getExamples() { |
| 75 | + public function getExamples() { |
76 | 76 | return array( |
77 | 77 | 'api.php?action=rsd' |
78 | 78 | ); |
Index: trunk/phase3/includes/api/ApiQueryLangBacklinks.php |
— | — | @@ -207,7 +207,7 @@ |
208 | 208 | ) ); |
209 | 209 | } |
210 | 210 | |
211 | | - protected function getExamples() { |
| 211 | + public function getExamples() { |
212 | 212 | return array( |
213 | 213 | 'api.php?action=query&list=langbacklinks&lbltitle=Test&lbllang=fr', |
214 | 214 | 'api.php?action=query&generator=langbacklinks&glbltitle=Test&lbllang=fr&prop=info' |
Index: trunk/phase3/includes/api/ApiBlock.php |
— | — | @@ -208,7 +208,7 @@ |
209 | 209 | return ''; |
210 | 210 | } |
211 | 211 | |
212 | | - protected function getExamples() { |
| 212 | + public function getExamples() { |
213 | 213 | return array( |
214 | 214 | 'api.php?action=block&user=123.5.5.12&expiry=3%20days&reason=First%20strike', |
215 | 215 | 'api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail=' |
Index: trunk/phase3/includes/api/ApiQueryDisabled.php |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | ); |
65 | 65 | } |
66 | 66 | |
67 | | - protected function getExamples() { |
| 67 | + public function getExamples() { |
68 | 68 | return array(); |
69 | 69 | } |
70 | 70 | |
Index: trunk/phase3/includes/api/ApiPatrol.php |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | return 'patrol'; |
106 | 106 | } |
107 | 107 | |
108 | | - protected function getExamples() { |
| 108 | + public function getExamples() { |
109 | 109 | return array( |
110 | 110 | 'api.php?action=patrol&token=123abc&rcid=230672766' |
111 | 111 | ); |
Index: trunk/phase3/includes/api/ApiUndelete.php |
— | — | @@ -152,7 +152,7 @@ |
153 | 153 | return ''; |
154 | 154 | } |
155 | 155 | |
156 | | - protected function getExamples() { |
| 156 | + public function getExamples() { |
157 | 157 | return array( |
158 | 158 | 'api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page', |
159 | 159 | 'api.php?action=undelete&title=Main%20Page&token=123ABC×tamps=20070703220045|20070702194856' |
Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -651,7 +651,7 @@ |
652 | 652 | ) ); |
653 | 653 | } |
654 | 654 | |
655 | | - protected function getExamples() { |
| 655 | + public function getExamples() { |
656 | 656 | return array( |
657 | 657 | 'Get data with content for the last revision of titles "API" and "Main Page":', |
658 | 658 | ' api.php?action=query&prop=revisions&titles=API|Main%20Page&rvprop=timestamp|user|comment|content', |
Index: trunk/phase3/includes/api/ApiQueryExternalLinks.php |
— | — | @@ -143,7 +143,7 @@ |
144 | 144 | ) ); |
145 | 145 | } |
146 | 146 | |
147 | | - protected function getExamples() { |
| 147 | + public function getExamples() { |
148 | 148 | return array( |
149 | 149 | 'Get a list of external links on the [[Main Page]]:', |
150 | 150 | ' api.php?action=query&prop=extlinks&titles=Main%20Page', |
Index: trunk/phase3/includes/api/ApiQueryCategories.php |
— | — | @@ -241,7 +241,7 @@ |
242 | 242 | ) ); |
243 | 243 | } |
244 | 244 | |
245 | | - protected function getExamples() { |
| 245 | + public function getExamples() { |
246 | 246 | return array( |
247 | 247 | 'Get a list of categories [[Albert Einstein]] belongs to:', |
248 | 248 | ' api.php?action=query&prop=categories&titles=Albert%20Einstein', |
Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -244,7 +244,7 @@ |
245 | 245 | return 'Obtain information about certain API parameters and errors'; |
246 | 246 | } |
247 | 247 | |
248 | | - protected function getExamples() { |
| 248 | + public function getExamples() { |
249 | 249 | return array( |
250 | 250 | 'api.php?action=paraminfo&modules=parse&querymodules=allpages|siteinfo' |
251 | 251 | ); |
Index: trunk/phase3/includes/api/ApiQueryAllUsers.php |
— | — | @@ -355,7 +355,7 @@ |
356 | 356 | ) ); |
357 | 357 | } |
358 | 358 | |
359 | | - protected function getExamples() { |
| 359 | + public function getExamples() { |
360 | 360 | return array( |
361 | 361 | 'api.php?action=query&list=allusers&aufrom=Y', |
362 | 362 | ); |
Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -721,7 +721,7 @@ |
722 | 722 | ) ); |
723 | 723 | } |
724 | 724 | |
725 | | - protected function getExamples() { |
| 725 | + public function getExamples() { |
726 | 726 | return array( |
727 | 727 | 'api.php?action=query&prop=info&titles=Main%20Page', |
728 | 728 | 'api.php?action=query&prop=info&inprop=protection&titles=Main%20Page' |
Index: trunk/phase3/includes/api/ApiQueryDuplicateFiles.php |
— | — | @@ -161,7 +161,7 @@ |
162 | 162 | ) ); |
163 | 163 | } |
164 | 164 | |
165 | | - protected function getExamples() { |
| 165 | + public function getExamples() { |
166 | 166 | return array( |
167 | 167 | 'api.php?action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles', |
168 | 168 | 'api.php?action=query&generator=allimages&prop=duplicatefiles', |
Index: trunk/phase3/includes/api/ApiQueryTags.php |
— | — | @@ -178,7 +178,7 @@ |
179 | 179 | return 'List change tags'; |
180 | 180 | } |
181 | 181 | |
182 | | - protected function getExamples() { |
| 182 | + public function getExamples() { |
183 | 183 | return array( |
184 | 184 | 'api.php?action=query&list=tags&tgprop=displayname|description|hitcount' |
185 | 185 | ); |
Index: trunk/phase3/includes/api/ApiUpload.php |
— | — | @@ -605,7 +605,7 @@ |
606 | 606 | return ''; |
607 | 607 | } |
608 | 608 | |
609 | | - protected function getExamples() { |
| 609 | + public function getExamples() { |
610 | 610 | return array( |
611 | 611 | 'Upload from a URL:', |
612 | 612 | ' api.php?action=upload&filename=Wiki.png&url=http%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png', |
Index: trunk/phase3/includes/api/ApiFeedWatchlist.php |
— | — | @@ -214,7 +214,7 @@ |
215 | 215 | ) ); |
216 | 216 | } |
217 | 217 | |
218 | | - protected function getExamples() { |
| 218 | + public function getExamples() { |
219 | 219 | return array( |
220 | 220 | 'api.php?action=feedwatchlist', |
221 | 221 | 'api.php?action=feedwatchlist&allrev=&linktodiffs=&hours=6' |
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -463,7 +463,7 @@ |
464 | 464 | ) ); |
465 | 465 | } |
466 | 466 | |
467 | | - protected function getExamples() { |
| 467 | + public function getExamples() { |
468 | 468 | return array( |
469 | 469 | 'api.php?action=query&list=usercontribs&ucuser=YurikBot', |
470 | 470 | 'api.php?action=query&list=usercontribs&ucuserprefix=217.121.114.', |
Index: trunk/phase3/includes/api/ApiQueryUsers.php |
— | — | @@ -318,7 +318,7 @@ |
319 | 319 | return 'Get information about a list of users'; |
320 | 320 | } |
321 | 321 | |
322 | | - protected function getExamples() { |
| 322 | + public function getExamples() { |
323 | 323 | return 'api.php?action=query&list=users&ususers=brion|TimStarling&usprop=groups|editcount|gender'; |
324 | 324 | } |
325 | 325 | |
Index: trunk/phase3/includes/api/ApiQueryImages.php |
— | — | @@ -176,7 +176,7 @@ |
177 | 177 | ) ); |
178 | 178 | } |
179 | 179 | |
180 | | - protected function getExamples() { |
| 180 | + public function getExamples() { |
181 | 181 | return array( |
182 | 182 | 'Get a list of images used in the [[Main Page]]:', |
183 | 183 | ' api.php?action=query&prop=images&titles=Main%20Page', |