From: Brad Jorsch Date: Tue, 28 Oct 2014 17:17:02 +0000 (-0400) Subject: API: Fix access on getExamplesMessages X-Git-Tag: 1.31.0-rc.0~13456 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=f62bc7536e8c1766ce5a2a616a8b9dcf6046b000;p=lhc%2Fweb%2Fwiklou.git API: Fix access on getExamplesMessages ApiBase declares it protected, but for some reason I had made it public in all subclasses. Change-Id: I8a50d4f47e66c7f09137968d3941dc5cdc1d28e4 --- diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index 44565a8416..dea43ba0fc 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -169,7 +169,7 @@ class ApiBlock extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=block&user=192.0.2.5&expiry=3%20days&reason=First%20strike&token=123ABC' => 'apihelp-block-example-ip-simple', diff --git a/includes/api/ApiClearHasMsg.php b/includes/api/ApiClearHasMsg.php index 8667a67774..eb471ae6fb 100644 --- a/includes/api/ApiClearHasMsg.php +++ b/includes/api/ApiClearHasMsg.php @@ -42,7 +42,7 @@ class ApiClearHasMsg extends ApiBase { return false; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=clearhasmsg' => 'apihelp-clearhasmsg-example-1', diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index a2f33eaad6..ce256a67b5 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -126,7 +126,7 @@ class ApiComparePages extends ApiBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=compare&fromrev=1&torev=2' => 'apihelp-compare-example-1', diff --git a/includes/api/ApiCreateAccount.php b/includes/api/ApiCreateAccount.php index cfb6dab597..89f8481ef5 100644 --- a/includes/api/ApiCreateAccount.php +++ b/includes/api/ApiCreateAccount.php @@ -200,7 +200,7 @@ class ApiCreateAccount extends ApiBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=createaccount&name=testuser&password=test123' => 'apihelp-createaccount-example-pass', diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index e455f71beb..d8b57182c4 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -214,7 +214,7 @@ class ApiDelete extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=delete&title=Main%20Page&token=123ABC' => 'apihelp-delete-example-simple', diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index f2bb273eee..269b016f3d 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -565,7 +565,7 @@ class ApiEditPage extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=edit&title=Test&summary=test%20summary&' . 'text=article%20content&basetimestamp=2007-08-24T12:34:54Z&token=123ABC' diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 911f454da1..15eb475e73 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -106,7 +106,7 @@ class ApiEmailUser extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=emailuser&target=WikiSysop&text=Content&token=123ABC' => 'apihelp-emailuser-example-email', diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index 6e49d3c945..eea10e9b83 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -159,7 +159,7 @@ class ApiExpandTemplates extends ApiBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=expandtemplates&text={{Project:Sandbox}}' => 'apihelp-expandtemplates-example-simple', diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index 20f4d3d343..ced5f0c249 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -199,7 +199,7 @@ class ApiFeedContributions extends ApiBase { return $ret; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=feedcontributions&user=Example' => 'apihelp-feedcontributions-example-simple', diff --git a/includes/api/ApiFeedRecentChanges.php b/includes/api/ApiFeedRecentChanges.php index 0d2fca6d56..d452bbd630 100644 --- a/includes/api/ApiFeedRecentChanges.php +++ b/includes/api/ApiFeedRecentChanges.php @@ -171,7 +171,7 @@ class ApiFeedRecentChanges extends ApiBase { return $ret; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=feedrecentchanges' => 'apihelp-feedrecentchanges-example-simple', diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index 84ee228ca2..561ff3b406 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -249,7 +249,7 @@ class ApiFeedWatchlist extends ApiBase { return $ret; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=feedwatchlist' => 'apihelp-feedwatchlist-example-default', diff --git a/includes/api/ApiFileRevert.php b/includes/api/ApiFileRevert.php index 02147fa3e8..61966e5487 100644 --- a/includes/api/ApiFileRevert.php +++ b/includes/api/ApiFileRevert.php @@ -139,7 +139,7 @@ class ApiFileRevert extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=filerevert&filename=Wiki.png&comment=Revert&' . 'archivename=20110305152740!Wiki.png&token=123ABC' diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 62705ef93d..230a3408d6 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -207,7 +207,7 @@ abstract class ApiFormatBase extends ApiBase { return $this->mBuffer; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&meta=siteinfo&siprop=namespaces&format=' . $this->getModuleName() => array( 'apihelp-format-example-generic', $this->getFormat() ) diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 88a3df2fae..2ac246b328 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -650,7 +650,7 @@ class ApiHelp extends ApiBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=help' => 'apihelp-help-example-main', diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index 6aa9c229dc..aba6921a1c 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -199,7 +199,7 @@ class ApiImageRotate extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=imagerotate&titles=File:Example.jpg&rotation=90&token=123ABC' => 'apihelp-imagerotate-example-simple', diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 8b7802c52d..b2febdefb6 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -120,7 +120,7 @@ class ApiImport extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&' . 'namespace=100&fullhistory=&token=123ABC' diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index eae8ebcb9a..cc4dee4473 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -184,7 +184,7 @@ class ApiLogin extends ApiBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=login&lgname=user&lgpassword=password' => 'apihelp-login-example-gettoken', diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index bfdad34b66..bf81723fde 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -46,7 +46,7 @@ class ApiLogout extends ApiBase { return false; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=logout' => 'apihelp-logout-example-logout', diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index bf26eeec0c..472f753df7 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -1157,7 +1157,7 @@ class ApiMain extends ApiBase { } /** @see ApiBase::getExamplesMessages() */ - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=help' => 'apihelp-help-example-main', diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index db0fde3486..864582d755 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -224,7 +224,7 @@ class ApiMove extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=move&from=Badtitle&to=Goodtitle&token=123ABC&' . 'reason=Misspelled%20title&movetalk=&noredirect=' diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 4c72677580..8fa495ca6a 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -91,7 +91,7 @@ class ApiOpenSearch extends ApiBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=opensearch&search=Te' => 'apihelp-opensearch-example-te', diff --git a/includes/api/ApiOptions.php b/includes/api/ApiOptions.php index c804563af3..8ef0629928 100644 --- a/includes/api/ApiOptions.php +++ b/includes/api/ApiOptions.php @@ -161,7 +161,7 @@ class ApiOptions extends ApiBase { return 'https://www.mediawiki.org/wiki/API:Options'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=options&reset=&token=123ABC' => 'apihelp-options-example-reset', diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index d07907f009..07670f6eae 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -385,7 +385,7 @@ class ApiParamInfo extends ApiBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=paraminfo&modules=parse|phpfm|query+allpages|query+siteinfo' => 'apihelp-paraminfo-example-1', diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 007c6207f5..2bf16773ea 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -721,7 +721,7 @@ class ApiParse extends ApiBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=parse&page=Project:Sandbox' => 'apihelp-parse-example-page', diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index 01bc568ddc..3684461c1e 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -90,7 +90,7 @@ class ApiPatrol extends ApiBase { return 'patrol'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=patrol&token=123ABC&rcid=230672766' => 'apihelp-patrol-example-rcid', diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index f5786e8abc..ae7d42b2d0 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -179,7 +179,7 @@ class ApiProtect extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=protect&title=Main%20Page&token=123ABC&' . 'protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never' diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index a69a0d5333..ec551370df 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -144,7 +144,7 @@ class ApiPurge extends ApiBase { return $result; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=purge&titles=Main_Page|API' => 'apihelp-purge-example-simple', diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index cf63a7dbaa..a091663884 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -607,7 +607,7 @@ class ApiQuery extends ApiBase { return true; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=revisions&meta=siteinfo&' . 'titles=Main%20Page&rvprop=user|comment&continue=' diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 36c2088758..672c2344e4 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -191,7 +191,7 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=allcategories&acprop=size' => 'apihelp-query+allcategories-example-size', diff --git a/includes/api/ApiQueryAllImages.php b/includes/api/ApiQueryAllImages.php index 95ad6ef4b7..725b7822b6 100644 --- a/includes/api/ApiQueryAllImages.php +++ b/includes/api/ApiQueryAllImages.php @@ -376,7 +376,7 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { private $propertyFilter = array( 'archivename', 'thumbmime', 'uploadwarning' ); - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=allimages&aifrom=B' => 'apihelp-query+allimages-example-B', diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index 075d199a5d..a70d019c75 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -280,7 +280,7 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { return $allowedParams; } - public function getExamplesMessages() { + protected function getExamplesMessages() { $p = $this->getModulePrefix(); $name = $this->getModuleName(); $path = $this->getModulePath(); diff --git a/includes/api/ApiQueryAllMessages.php b/includes/api/ApiQueryAllMessages.php index 7e0ceff3d9..98552ba7fe 100644 --- a/includes/api/ApiQueryAllMessages.php +++ b/includes/api/ApiQueryAllMessages.php @@ -235,7 +235,7 @@ class ApiQueryAllMessages extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&meta=allmessages&refix=ipb-' => 'apihelp-query+allmessages-example-ipb', diff --git a/includes/api/ApiQueryAllPages.php b/includes/api/ApiQueryAllPages.php index d7d71b3e60..a85c9c9361 100644 --- a/includes/api/ApiQueryAllPages.php +++ b/includes/api/ApiQueryAllPages.php @@ -299,7 +299,7 @@ class ApiQueryAllPages extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=allpages&apfrom=B' => 'apihelp-query+allpages-example-B', diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index d9a173d685..1c3f9fbb4c 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -362,7 +362,7 @@ class ApiQueryAllUsers extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=allusers&aufrom=Y' => 'apihelp-query+allusers-example-Y', diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index a0786b05c6..5e17a5c0dd 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -550,7 +550,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { return $retval; } - public function getExamplesMessages() { + protected function getExamplesMessages() { static $examples = array( 'backlinks' => array( 'action=query&list=backlinks&bltitle=Main%20Page' diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 7804dbf739..b4752ae9d4 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -389,7 +389,7 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { return $ret; } - public function getExamplesMessages() { + protected function getExamplesMessages() { $settings = self::$settings[$this->getModuleName()]; $name = $this->getModuleName(); $path = $this->getModulePath(); diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 159b1c8927..5c44173c04 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -341,7 +341,7 @@ class ApiQueryBlocks extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=blocks' => 'apihelp-query+blocks-example-simple', diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index 7518dadbc6..fcfddd6a62 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -218,7 +218,7 @@ class ApiQueryCategories extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=categories&titles=Albert%20Einstein' => 'apihelp-query+categories-example-simple', diff --git a/includes/api/ApiQueryCategoryInfo.php b/includes/api/ApiQueryCategoryInfo.php index 8f9b229af1..5c67ebf279 100644 --- a/includes/api/ApiQueryCategoryInfo.php +++ b/includes/api/ApiQueryCategoryInfo.php @@ -109,7 +109,7 @@ class ApiQueryCategoryInfo extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar' => 'apihelp-query+categoryinfo-example-simple', diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index 97c292e49a..a6fc223d4c 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -379,7 +379,7 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { return $ret; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=categorymembers&cmtitle=Category:Physics' => 'apihelp-query+categorymembers-example-simple', diff --git a/includes/api/ApiQueryContributors.php b/includes/api/ApiQueryContributors.php index b31b14b4b3..7e76db25cd 100644 --- a/includes/api/ApiQueryContributors.php +++ b/includes/api/ApiQueryContributors.php @@ -242,7 +242,7 @@ class ApiQueryContributors extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=contributors&titles=Main_Page' => 'apihelp-query+contributors-example-simple', diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 9d34724470..4a5f5fdc7e 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -495,7 +495,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&' . 'drprop=user|comment|content' diff --git a/includes/api/ApiQueryDuplicateFiles.php b/includes/api/ApiQueryDuplicateFiles.php index 763c3062b4..010f8d59a7 100644 --- a/includes/api/ApiQueryDuplicateFiles.php +++ b/includes/api/ApiQueryDuplicateFiles.php @@ -181,7 +181,7 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles' => 'apihelp-query+duplicatefiles-example-simple', diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 983635268c..e77355b049 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -216,7 +216,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { } } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=exturlusage&euquery=www.mediawiki.org' => 'apihelp-query+exturlusage-example-simple', diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index b9a4263d64..6ddb6c85e6 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -126,7 +126,7 @@ class ApiQueryExternalLinks extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=extlinks&titles=Main%20Page' => 'apihelp-query+extlinks-example-simple', diff --git a/includes/api/ApiQueryFileRepoInfo.php b/includes/api/ApiQueryFileRepoInfo.php index cb5af2f3ff..39c5902894 100644 --- a/includes/api/ApiQueryFileRepoInfo.php +++ b/includes/api/ApiQueryFileRepoInfo.php @@ -89,7 +89,7 @@ class ApiQueryFileRepoInfo extends ApiQueryBase { ) ) ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&meta=filerepoinfo&friprop=apiurl|name|displayname' => 'apihelp-query+filerepoinfo-example-simple', diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index 415cb3d32c..6b926039dc 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -288,7 +288,7 @@ class ApiQueryFilearchive extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=filearchive' => 'apihelp-query+filearchive-example-simple', diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 23f647793a..a2af124b2d 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -197,7 +197,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks' => 'apihelp-query+iwbacklinks-example-simple', diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index fb398dd2af..c1208cb64a 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -179,7 +179,7 @@ class ApiQueryIWLinks extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=iwlinks&titles=Main%20Page' => 'apihelp-query+iwlinks-example-simple', diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 18da1e6de0..cfd06f1f35 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -749,7 +749,7 @@ class ApiQueryImageInfo extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo' => 'apihelp-query+imageinfo-example-simple', diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index e23ce45e27..029d945d0b 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -162,7 +162,7 @@ class ApiQueryImages extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=images&titles=Main%20Page' => 'apihelp-query+images-example-simple', diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 3a924b0bb7..7ecb429c9b 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -821,7 +821,7 @@ class ApiQueryInfo extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=info&titles=Main%20Page' => 'apihelp-query+info-example-simple', diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index a3a285b093..b41b4b7f98 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -196,7 +196,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=langbacklinks&lbltitle=Test&lbllang=fr' => 'apihelp-query+langbacklinks-example-simple', diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 2b555d3441..2d0334755e 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -175,7 +175,7 @@ class ApiQueryLangLinks extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=langlinks&titles=Main%20Page&redirects=' => 'apihelp-query+langlinks-example-simple', diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index d6545508fe..3bd3714433 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -207,7 +207,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { $name = $this->getModuleName(); $path = $this->getModulePath(); diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index eb5ca4f523..917332bfe2 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -551,7 +551,7 @@ class ApiQueryLogEvents extends ApiQueryBase { return $ret; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=logevents' => 'apihelp-query+logevents-example-simple', diff --git a/includes/api/ApiQueryPagePropNames.php b/includes/api/ApiQueryPagePropNames.php index e4a5002a97..026f0611fe 100644 --- a/includes/api/ApiQueryPagePropNames.php +++ b/includes/api/ApiQueryPagePropNames.php @@ -96,7 +96,7 @@ class ApiQueryPagePropNames extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=pagepropnames' => 'apihelp-query+pagepropnames-example-simple', diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 130b829ade..269afb147c 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -134,7 +134,7 @@ class ApiQueryPageProps extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=pageprops&titles=Category:Foo' => 'apihelp-query+pageprops-example-simple', diff --git a/includes/api/ApiQueryPagesWithProp.php b/includes/api/ApiQueryPagesWithProp.php index 1e9bc4df6b..6ffe0aee86 100644 --- a/includes/api/ApiQueryPagesWithProp.php +++ b/includes/api/ApiQueryPagesWithProp.php @@ -160,7 +160,7 @@ class ApiQueryPagesWithProp extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value' => 'apihelp-query+pageswithprop-example-simple', diff --git a/includes/api/ApiQueryPrefixSearch.php b/includes/api/ApiQueryPrefixSearch.php index 2694067fd1..3c90acc821 100644 --- a/includes/api/ApiQueryPrefixSearch.php +++ b/includes/api/ApiQueryPrefixSearch.php @@ -100,7 +100,7 @@ class ApiQueryPrefixSearch extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=prefixsearch&pssearch=meaning' => 'apihelp-query+prefixsearch-example-simple', diff --git a/includes/api/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php index 098bfc7bfd..f1e6d0129e 100644 --- a/includes/api/ApiQueryProtectedTitles.php +++ b/includes/api/ApiQueryProtectedTitles.php @@ -224,7 +224,7 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=protectedtitles' => 'apihelp-query+protectedtitles-example-simple', diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 2da5777ef4..74586bbe87 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -158,7 +158,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=querypage&qppage=Ancientpages' => 'apihelp-query+querypage-example-ancientpages', diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php index f4061e7b52..282f498656 100644 --- a/includes/api/ApiQueryRandom.php +++ b/includes/api/ApiQueryRandom.php @@ -165,7 +165,7 @@ class ApiQueryRandom extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=random&rnnamespace=0&rnlimit=2' => 'apihelp-query+random-example-simple', diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index a620a9fdf6..e20380e9e9 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -703,7 +703,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=recentchanges' => 'apihelp-query+recentchanges-example-simple', diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 27050ce551..f5ad9d0fd4 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -775,7 +775,7 @@ class ApiQueryRevisions extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=revisions&titles=API|Main%20Page&' . 'rvprop=timestamp|user|comment|content' diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 7d07f5786c..cc9f9aa394 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -331,7 +331,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { return $params; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=search&srsearch=meaning' => 'apihelp-query+search-example-simple', diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 068418d4a7..18bbc5ae60 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -834,7 +834,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics' => 'apihelp-query+siteinfo-example-simple', diff --git a/includes/api/ApiQueryStashImageInfo.php b/includes/api/ApiQueryStashImageInfo.php index 21b58af1ee..be6f66968b 100644 --- a/includes/api/ApiQueryStashImageInfo.php +++ b/includes/api/ApiQueryStashImageInfo.php @@ -113,7 +113,7 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&prop=stashimageinfo&siifilekey=124sd34rsdf567' => 'apihelp-query+stashimageinfo-example-simple', diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index d1e6e2896c..f3b26524ff 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -158,7 +158,7 @@ class ApiQueryTags extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=tags&tgprop=displayname|description|hitcount' => 'apihelp-query+tags-example-simple', diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 10d62cb10d..41f7ee7ed6 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -524,7 +524,7 @@ class ApiQueryContributions extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=usercontribs&ucuser=Example' => 'apihelp-query+usercontribs-example-user', diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index f9eb6777f9..fed5a334cf 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -256,7 +256,7 @@ class ApiQueryUserInfo extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&meta=userinfo' => 'apihelp-query+userinfo-example-simple', diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 6d145234e3..db8cc1c819 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -314,7 +314,7 @@ class ApiQueryUsers extends ApiQueryBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=users&ususers=Example&usprop=groups|editcount|gender' => 'apihelp-query+users-example-simple', diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index bb6e59a722..4059ff86fb 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -519,7 +519,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=watchlist' => 'apihelp-query+watchlist-example-simple', diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index 71ce27f832..ae3596df57 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -175,7 +175,7 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase { ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=query&list=watchlistraw' => 'apihelp-query+watchlistraw-example-simple', diff --git a/includes/api/ApiRevisionDelete.php b/includes/api/ApiRevisionDelete.php index 5107455dc8..783a39b217 100644 --- a/includes/api/ApiRevisionDelete.php +++ b/includes/api/ApiRevisionDelete.php @@ -203,7 +203,7 @@ class ApiRevisionDelete extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=revisiondelete&target=Main%20Page&type=revision&ids=12345&' . 'hide=content&token=123ABC' diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 471fb435e6..02e62a0351 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -190,7 +190,7 @@ class ApiRollback extends ApiBase { return $this->mTitleObj; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=rollback&title=Main%20Page&user=Example&token=123ABC' => 'apihelp-rollback-example-simple', diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index d32b0dd8ed..91f3266a71 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -51,7 +51,7 @@ class ApiRsd extends ApiBase { return new ApiFormatXmlRsd( $this->getMain(), 'xml' ); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=rsd' => 'apihelp-rsd-example-simple', diff --git a/includes/api/ApiSetNotificationTimestamp.php b/includes/api/ApiSetNotificationTimestamp.php index ed3ea15a47..5d37e20dc5 100644 --- a/includes/api/ApiSetNotificationTimestamp.php +++ b/includes/api/ApiSetNotificationTimestamp.php @@ -230,7 +230,7 @@ class ApiSetNotificationTimestamp extends ApiBase { return $result; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=setnotificationtimestamp&entirewatchlist=&token=123ABC' => 'apihelp-setnotificationtimestamp-example-all', diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index fb4183957f..1af83ba3f0 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -97,7 +97,7 @@ class ApiUnblock extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=unblock&id=105' => 'apihelp-unblock-example-id', diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index 39b63f4f4d..943ae8e0e6 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -121,7 +121,7 @@ class ApiUndelete extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page' => 'apihelp-undelete-example-page', diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 8cf53d7944..f3add13a52 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -736,7 +736,7 @@ class ApiUpload extends ApiBase { return 'csrf'; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=upload&filename=Wiki.png' . '&url=http%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png&token=123ABC' diff --git a/includes/api/ApiUserrights.php b/includes/api/ApiUserrights.php index 7e93c3ef68..cf8ed5ab4e 100644 --- a/includes/api/ApiUserrights.php +++ b/includes/api/ApiUserrights.php @@ -135,7 +135,7 @@ class ApiUserrights extends ApiBase { return $this->getUrUser( $params )->getName(); } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=userrights&user=FooBot&add=bot&remove=sysop|bureaucrat&token=123ABC' => 'apihelp-userrights-example-user', diff --git a/includes/api/ApiWatch.php b/includes/api/ApiWatch.php index 3ba06e1334..09638f309d 100644 --- a/includes/api/ApiWatch.php +++ b/includes/api/ApiWatch.php @@ -172,7 +172,7 @@ class ApiWatch extends ApiBase { return $result; } - public function getExamplesMessages() { + protected function getExamplesMessages() { return array( 'action=watch&titles=Main_Page&token=123ABC' => 'apihelp-watch-example-watch',