Based on diff to wikia, set more functions consistently public rather than protected
authorSam Reed <reedy@users.mediawiki.org>
Wed, 17 Aug 2011 22:24:21 +0000 (22:24 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 17 Aug 2011 22:24:21 +0000 (22:24 +0000)
72 files changed:
includes/api/ApiBlock.php
includes/api/ApiComparePages.php
includes/api/ApiDelete.php
includes/api/ApiDisabled.php
includes/api/ApiEditPage.php
includes/api/ApiEmailUser.php
includes/api/ApiExpandTemplates.php
includes/api/ApiFeedContributions.php
includes/api/ApiFeedWatchlist.php
includes/api/ApiFileRevert.php
includes/api/ApiFormatBase.php
includes/api/ApiHelp.php
includes/api/ApiImport.php
includes/api/ApiLogin.php
includes/api/ApiLogout.php
includes/api/ApiMove.php
includes/api/ApiOpenSearch.php
includes/api/ApiPageSet.php
includes/api/ApiParamInfo.php
includes/api/ApiParse.php
includes/api/ApiPatrol.php
includes/api/ApiProtect.php
includes/api/ApiPurge.php
includes/api/ApiQuery.php
includes/api/ApiQueryAllCategories.php
includes/api/ApiQueryAllLinks.php
includes/api/ApiQueryAllUsers.php
includes/api/ApiQueryAllimages.php
includes/api/ApiQueryAllmessages.php
includes/api/ApiQueryAllpages.php
includes/api/ApiQueryBacklinks.php
includes/api/ApiQueryBlocks.php
includes/api/ApiQueryCategories.php
includes/api/ApiQueryCategoryInfo.php
includes/api/ApiQueryCategoryMembers.php
includes/api/ApiQueryDeletedrevs.php
includes/api/ApiQueryDisabled.php
includes/api/ApiQueryDuplicateFiles.php
includes/api/ApiQueryExtLinksUsage.php
includes/api/ApiQueryExternalLinks.php
includes/api/ApiQueryFilearchive.php
includes/api/ApiQueryIWBacklinks.php
includes/api/ApiQueryIWLinks.php
includes/api/ApiQueryImageInfo.php
includes/api/ApiQueryImages.php
includes/api/ApiQueryInfo.php
includes/api/ApiQueryLangBacklinks.php
includes/api/ApiQueryLangLinks.php
includes/api/ApiQueryLinks.php
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryPageProps.php
includes/api/ApiQueryProtectedTitles.php
includes/api/ApiQueryQueryPage.php
includes/api/ApiQueryRandom.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryRevisions.php
includes/api/ApiQuerySearch.php
includes/api/ApiQuerySiteinfo.php
includes/api/ApiQueryStashImageInfo.php
includes/api/ApiQueryTags.php
includes/api/ApiQueryUserContributions.php
includes/api/ApiQueryUserInfo.php
includes/api/ApiQueryUsers.php
includes/api/ApiQueryWatchlist.php
includes/api/ApiQueryWatchlistRaw.php
includes/api/ApiRollback.php
includes/api/ApiRsd.php
includes/api/ApiUnblock.php
includes/api/ApiUndelete.php
includes/api/ApiUpload.php
includes/api/ApiUserrights.php
includes/api/ApiWatch.php

index d3df264..3dddc1a 100644 (file)
@@ -208,7 +208,7 @@ class ApiBlock extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=block&user=123.5.5.12&expiry=3%20days&reason=First%20strike',
                        'api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail='
index 59f8555..3609262 100644 (file)
@@ -118,7 +118,7 @@ class ApiComparePages extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=compare&fromrev=1&torev=2',
                );
index ace1177..de324e4 100644 (file)
@@ -269,7 +269,7 @@ class ApiDelete extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=delete&title=Main%20Page&token=123ABC',
                        'api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move'
index ad731bb..1b8f8df 100644 (file)
@@ -65,7 +65,7 @@ class ApiDisabled extends ApiBase {
                return 'This module has been disabled';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array();
        }
 
index 753df9b..b043233 100644 (file)
@@ -415,7 +415,7 @@ class ApiEditPage extends ApiBase {
                ) );
        }
 
-       protected function getAllowedParams() {
+       public function getAllowedParams() {
                return array(
                        'title' => array(
                                ApiBase::PARAM_TYPE => 'string',
@@ -468,7 +468,7 @@ class ApiEditPage extends ApiBase {
                );
        }
 
-       protected function getParamDescription() {
+       public function getParamDescription() {
                $p = $this->getModulePrefix();
                return array(
                        'title' => 'Page title',
@@ -513,7 +513,7 @@ class ApiEditPage extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Edit a page (anonymous user):',
                        '    api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&basetimestamp=20070824123454&token=%2B\\',
index c6c0701..b79850c 100644 (file)
@@ -138,7 +138,7 @@ class ApiEmailUser extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=emailuser&target=WikiSysop&text=Content'
                );
index 3fe586f..deb84fa 100644 (file)
@@ -118,7 +118,7 @@ class ApiExpandTemplates extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=expandtemplates&text={{Project:Sandbox}}'
                );
index 08a2b43..1a8e7ad 100644 (file)
@@ -195,7 +195,7 @@ class ApiFeedContributions extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=feedcontributions&user=Reedy',
                );
index b4fb9e4..3d0d3d8 100644 (file)
@@ -214,7 +214,7 @@ class ApiFeedWatchlist extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=feedwatchlist',
                        'api.php?action=feedwatchlist&allrev=&linktodiffs=&hours=6'
index 5ff5051..5a9ccc1 100644 (file)
@@ -176,7 +176,7 @@ class ApiFileRevert extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Revert Wiki.png to the version of 20110305152740:',
                        '    api.php?action=filerevert&filename=Wiki.png&comment=Revert&archivename=20110305152740!Wiki.png&token=+\\',
index 9df2c6e..555a0fa 100644 (file)
@@ -288,7 +288,7 @@ See <a href='http://www.mediawiki.org/wiki/API'>complete documentation</a>, or
                return $text;
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return 'api.php?action=query&meta=siteinfo&siprop=namespaces&format=' . $this->getModuleName();
        }
 
index 89dbf10..4a43047 100644 (file)
@@ -139,7 +139,7 @@ class ApiHelp extends ApiBase {
                return 'Display this help screen. Or the help screen for the specified module';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Whole help page:',
                        '  api.php?action=help',
index 1b77266..3bb3b9a 100644 (file)
@@ -158,7 +158,7 @@ class ApiImport extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Import [[meta:Help:Parserfunctions]] to namespace 100 with full history:',
                        '  api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC',
index 8e68042..67e9409 100644 (file)
@@ -206,7 +206,7 @@ class ApiLogin extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=login&lgname=user&lgpassword=password'
                );
index dd94b9b..dac48cd 100644 (file)
@@ -67,7 +67,7 @@ class ApiLogout extends ApiBase {
                return 'Log out and clear session data';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=logout'
                );
index 7f9d62b..7ee0c42 100644 (file)
@@ -254,7 +254,7 @@ class ApiMove extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=move&from=Exampel&to=Example&token=123ABC&reason=Misspelled%20title&movetalk=&noredirect='
                );
index 12071ba..013a47a 100644 (file)
@@ -119,7 +119,7 @@ class ApiOpenSearch extends ApiBase {
                return 'Search the wiki using the OpenSearch protocol';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=opensearch&search=Te'
                );
index 4718221..0b0fbd7 100644 (file)
@@ -464,7 +464,7 @@ class ApiPageSet extends ApiQueryBase {
                                                __METHOD__ );
                        $this->profileDBOut();
                }
-               
+
                $this->initFromQueryResult( $res, $remaining, false );  // process PageIDs
 
                // Resolve any found redirects
@@ -743,7 +743,7 @@ class ApiPageSet extends ApiQueryBase {
                return $array;
        }
 
-       protected function getAllowedParams() {
+       public function getAllowedParams() {
                return array(
                        'titles' => array(
                                ApiBase::PARAM_ISMULTI => true
@@ -759,7 +759,7 @@ class ApiPageSet extends ApiQueryBase {
                );
        }
 
-       protected function getParamDescription() {
+       public function getParamDescription() {
                return array(
                        'titles' => 'A list of titles to work on',
                        'pageids' => 'A list of page IDs to work on',
index ad380c5..8e578c1 100644 (file)
@@ -244,7 +244,7 @@ class ApiParamInfo extends ApiBase {
                return 'Obtain information about certain API parameters and errors';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=paraminfo&modules=parse&querymodules=allpages|siteinfo'
                );
index 6b9f65b..8f95d2e 100644 (file)
@@ -587,7 +587,7 @@ class ApiParse extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=parse&text={{Project:Sandbox}}'
                );
index 3be8781..2adc9a6 100644 (file)
@@ -104,7 +104,7 @@ class ApiPatrol extends ApiBase {
                return 'patrol';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=patrol&token=123abc&rcid=230672766'
                );
index c87cf43..a1a235d 100644 (file)
@@ -217,7 +217,7 @@ class ApiProtect extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never',
                        'api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=all|move=all&reason=Lifting%20restrictions'
index bf8acd1..4e89835 100644 (file)
@@ -136,7 +136,7 @@ class ApiPurge extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=purge&titles=Main_Page|API'
                );
index 61f1892..696b516 100644 (file)
@@ -695,7 +695,7 @@ class ApiQuery extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment',
                        'api.php?action=query&generator=allpages&gapprefix=API/&prop=revisions',
index 0725c15..23e361c 100644 (file)
@@ -196,7 +196,7 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase {
                return 'Enumerate all categories';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=allcategories&acprop=size',
                        'api.php?action=query&generator=allcategories&gacprefix=List&prop=info',
index b10bc92..a4a3251 100644 (file)
@@ -221,7 +221,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=alllinks&alunique=&alfrom=B',
                );
index 6b8c2ee..6f67dc9 100644 (file)
@@ -355,7 +355,7 @@ class ApiQueryAllUsers extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=allusers&aufrom=Y',
                );
index 5346be9..bdb819d 100644 (file)
@@ -249,7 +249,7 @@ class ApiQueryAllimages extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Simple Use',
                        ' Show a list of images starting at the letter "B"',
index 106201e..715b7a5 100644 (file)
@@ -246,7 +246,7 @@ class ApiQueryAllmessages extends ApiQueryBase {
                return 'Return messages from this site';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&meta=allmessages&amprefix=ipb-',
                        'api.php?action=query&meta=allmessages&ammessages=august|mainpage&amlang=de',
index 709c58a..32765b4 100644 (file)
@@ -312,7 +312,7 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Simple Use',
                        ' Show a list of pages starting at the letter "B"',
index c38df76..27cb39c 100644 (file)
@@ -511,7 +511,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                static $examples = array(
                        'backlinks' => array(
                                'api.php?action=query&list=backlinks&bltitle=Main%20Page',
index 4553a35..83f8eb8 100644 (file)
@@ -336,7 +336,7 @@ class ApiQueryBlocks extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=blocks',
                        'api.php?action=query&list=blocks&bkusers=Alice|Bob'
index 30ed7e8..8ed4846 100644 (file)
@@ -241,7 +241,7 @@ class ApiQueryCategories extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Get a list of categories [[Albert Einstein]] belongs to:',
                        '  api.php?action=query&prop=categories&titles=Albert%20Einstein',
index 8dae986..1f38bb4 100644 (file)
@@ -115,7 +115,7 @@ class ApiQueryCategoryInfo extends ApiQueryBase {
                return 'Returns information about the given categories';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return 'api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar';
        }
 
index b1f44c1..c1871a5 100644 (file)
@@ -379,7 +379,7 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase {
                );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Get first 10 pages in [[Category:Physics]]:',
                        '  api.php?action=query&list=categorymembers&cmtitle=Category:Physics',
index 8116db1..98e5150 100644 (file)
@@ -385,7 +385,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'List the last deleted revisions of Main Page and Talk:Main Page, with content (mode 1):',
                        '  api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content',
index ab08042..30a53dd 100644 (file)
@@ -63,7 +63,7 @@ class ApiQueryDisabled extends ApiQueryBase {
                );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array();
        }
 
index 7fe8c33..7193675 100644 (file)
@@ -161,7 +161,7 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles',
                        'api.php?action=query&generator=allimages&prop=duplicatefiles',
index 093c2e4..4bf9d4f 100644 (file)
@@ -245,7 +245,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=exturlusage&euquery=www.mediawiki.org'
                );
index d4497e7..c2fed6a 100644 (file)
@@ -143,7 +143,7 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Get a list of external links on the [[Main Page]]:',
                        '  api.php?action=query&prop=extlinks&titles=Main%20Page',
index 39b87c4..e7fbee4 100644 (file)
@@ -285,7 +285,7 @@ class ApiQueryFilearchive extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Simple Use',
                        ' Show a list of all deleted files',
index 8b3c8af..5d31abd 100644 (file)
@@ -207,7 +207,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks',
                        'api.php?action=query&generator=iwbacklinks&giwbltitle=Test&iwblprefix=wikibooks&prop=info'
index 547c40b..9a18e30 100644 (file)
@@ -166,7 +166,7 @@ class ApiQueryIWLinks extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Get interwiki links from the [[Main Page]]:',
                        '  api.php?action=query&prop=iwlinks&titles=Main%20Page',
index 3e435ba..1f91156 100644 (file)
@@ -568,7 +568,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo',
                        'api.php?action=query&titles=File:Test.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp|user|url',
index 23fe3dc..c69ea93 100644 (file)
@@ -176,7 +176,7 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Get a list of images used in the [[Main Page]]:',
                        '  api.php?action=query&prop=images&titles=Main%20Page',
index 818de5c..5d22527 100644 (file)
@@ -721,7 +721,7 @@ class ApiQueryInfo extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&prop=info&titles=Main%20Page',
                        'api.php?action=query&prop=info&inprop=protection&titles=Main%20Page'
index 959ee78..d808cce 100644 (file)
@@ -207,7 +207,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=langbacklinks&lbltitle=Test&lbllang=fr',
                        'api.php?action=query&generator=langbacklinks&glbltitle=Test&lbllang=fr&prop=info'
index 21a5dfd..2583790 100644 (file)
@@ -159,7 +159,7 @@ class ApiQueryLangLinks extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Get interlanguage links from the [[Main Page]]:',
                        '  api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=',
index dda9ba8..8090daf 100644 (file)
@@ -229,7 +229,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
                return "Returns all {$this->description}s from the given page(s)";
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        "Get {$this->description}s from the [[Main Page]]:",
                        "  api.php?action=query&prop={$this->getModuleName()}&titles=Main%20Page",
index 11b1224..4ecf3af 100644 (file)
@@ -445,7 +445,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=logevents'
                );
index 3bc6a38..1731c79 100644 (file)
@@ -142,7 +142,7 @@ class ApiQueryPageProps extends ApiQueryBase {
                return 'Get various properties defined in the page content';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&prop=pageprops&titles=Category:Foo',
                );
index 6874187..21ca648 100644 (file)
@@ -224,7 +224,7 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
                return 'List all titles protected from creation';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=protectedtitles',
                );
index e259fea..c4b3a6f 100644 (file)
@@ -97,7 +97,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase {
                        }
                }
                $result->addValue( array( 'query' ), $this->getModuleName(), $r );
-               
+
                if ( $qp->isCached() && !$qp->isCacheable() ) {
                        // Disabled query page, don't run the query
                        return;
@@ -186,7 +186,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=querypage&qppage=Ancientpages'
                );
index dea0b0f..0779b35 100644 (file)
@@ -175,7 +175,7 @@ class ApiQueryRandom extends ApiQueryGeneratorBase {
                );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return 'api.php?action=query&list=random&rnnamespace=0&rnlimit=2';
        }
 
index aa2a103..bcafb68 100644 (file)
@@ -633,7 +633,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=recentchanges'
                );
index 296b545..0031a52 100644 (file)
@@ -651,7 +651,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Get data with content for the last revision of titles "API" and "Main Page":',
                        '  api.php?action=query&prop=revisions&titles=API|Main%20Page&rvprop=timestamp|user|comment|content',
index 47dc200..8f7b725 100644 (file)
@@ -295,7 +295,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=search&srsearch=meaning',
                        'api.php?action=query&list=search&srwhat=text&srsearch=meaning',
index 4749610..1f93416 100644 (file)
@@ -633,7 +633,7 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics',
                        'api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local',
index d9a5f6b..4501ec5 100644 (file)
@@ -127,7 +127,7 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo {
                return 'Returns image information for stashed images';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&prop=stashimageinfo&siifilekey=124sd34rsdf567',
                        'api.php?action=query&prop=stashimageinfo&siifilekey=b34edoe3|bceffd4&siiurlwidth=120&siiprop=url',
index 4ab0c3d..6be8d6c 100644 (file)
@@ -178,7 +178,7 @@ class ApiQueryTags extends ApiQueryBase {
                return 'List change tags';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=tags&tgprop=displayname|description|hitcount'
                );
index 2a2d1b0..a620421 100644 (file)
@@ -463,7 +463,7 @@ class ApiQueryContributions extends ApiQueryBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=usercontribs&ucuser=YurikBot',
                        'api.php?action=query&list=usercontribs&ucuserprefix=217.121.114.',
index 616d959..461b9dd 100644 (file)
@@ -231,7 +231,7 @@ class ApiQueryUserInfo extends ApiQueryBase {
                return 'Get information about the current user';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&meta=userinfo',
                        'api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg',
index 4e7bb2c..f54f01d 100644 (file)
@@ -318,7 +318,7 @@ class ApiQueryUsers extends ApiQueryBase {
                return 'Get information about a list of users';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return 'api.php?action=query&list=users&ususers=brion|TimStarling&usprop=groups|editcount|gender';
        }
 
index f9f67f3..f2d9f66 100644 (file)
@@ -439,7 +439,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=watchlist',
                        'api.php?action=query&list=watchlist&wlprop=ids|title|timestamp|user|comment',
index 126f6d8..124be7d 100644 (file)
@@ -197,7 +197,7 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=query&list=watchlistraw',
                        'api.php?action=query&generator=watchlistraw&gwrshow=changed&prop=revisions',
index 4ad84a8..9189692 100644 (file)
@@ -184,7 +184,7 @@ class ApiRollback extends ApiBase {
                return $this->mTitleObj;
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=rollback&title=Main%20Page&user=Catrope&token=123ABC',
                        'api.php?action=rollback&title=Main%20Page&user=217.121.114.116&token=123ABC&summary=Reverting%20vandalism&markbot=1'
index 040eb7e..a806c3a 100644 (file)
@@ -71,7 +71,7 @@ class ApiRsd extends ApiBase {
                return 'Export an RSD (Really Simple Discovery) schema';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=rsd'
                );
index 096641a..6fd9816 100644 (file)
@@ -141,7 +141,7 @@ class ApiUnblock extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=unblock&id=105',
                        'api.php?action=unblock&user=Bob&reason=Sorry%20Bob'
index 3e3157d..c3f7433 100644 (file)
@@ -152,7 +152,7 @@ class ApiUndelete extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page',
                        'api.php?action=undelete&title=Main%20Page&token=123ABC&timestamps=20070703220045|20070702194856'
index d361065..30331bc 100644 (file)
@@ -605,7 +605,7 @@ class ApiUpload extends ApiBase {
                return '';
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'Upload from a URL:',
                        '    api.php?action=upload&filename=Wiki.png&url=http%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png',
index a0a52b0..97e3ca5 100644 (file)
@@ -133,7 +133,7 @@ class ApiUserrights extends ApiBase {
                return $this->getUser()->getName();
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=userrights&user=FooBot&add=bot&remove=sysop|bureaucrat&token=123ABC'
                );
index 96bf533..13220cb 100644 (file)
@@ -118,7 +118,7 @@ class ApiWatch extends ApiBase {
                ) );
        }
 
-       protected function getExamples() {
+       public function getExamples() {
                return array(
                        'api.php?action=watch&title=Main_Page',
                        'api.php?action=watch&title=Main_Page&unwatch=',