From a5628f573480e84b877d914a4278c89ad7fce9d6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 17 Aug 2011 22:24:21 +0000 Subject: [PATCH] Based on diff to wikia, set more functions consistently public rather than protected --- includes/api/ApiBlock.php | 2 +- includes/api/ApiComparePages.php | 2 +- includes/api/ApiDelete.php | 2 +- includes/api/ApiDisabled.php | 2 +- includes/api/ApiEditPage.php | 6 +++--- includes/api/ApiEmailUser.php | 2 +- includes/api/ApiExpandTemplates.php | 2 +- includes/api/ApiFeedContributions.php | 2 +- includes/api/ApiFeedWatchlist.php | 2 +- includes/api/ApiFileRevert.php | 2 +- includes/api/ApiFormatBase.php | 2 +- includes/api/ApiHelp.php | 2 +- includes/api/ApiImport.php | 2 +- includes/api/ApiLogin.php | 2 +- includes/api/ApiLogout.php | 2 +- includes/api/ApiMove.php | 2 +- includes/api/ApiOpenSearch.php | 2 +- includes/api/ApiPageSet.php | 6 +++--- includes/api/ApiParamInfo.php | 2 +- includes/api/ApiParse.php | 2 +- includes/api/ApiPatrol.php | 2 +- includes/api/ApiProtect.php | 2 +- includes/api/ApiPurge.php | 2 +- includes/api/ApiQuery.php | 2 +- includes/api/ApiQueryAllCategories.php | 2 +- includes/api/ApiQueryAllLinks.php | 2 +- includes/api/ApiQueryAllUsers.php | 2 +- includes/api/ApiQueryAllimages.php | 2 +- includes/api/ApiQueryAllmessages.php | 2 +- includes/api/ApiQueryAllpages.php | 2 +- includes/api/ApiQueryBacklinks.php | 2 +- includes/api/ApiQueryBlocks.php | 2 +- includes/api/ApiQueryCategories.php | 2 +- includes/api/ApiQueryCategoryInfo.php | 2 +- includes/api/ApiQueryCategoryMembers.php | 2 +- includes/api/ApiQueryDeletedrevs.php | 2 +- includes/api/ApiQueryDisabled.php | 2 +- includes/api/ApiQueryDuplicateFiles.php | 2 +- includes/api/ApiQueryExtLinksUsage.php | 2 +- includes/api/ApiQueryExternalLinks.php | 2 +- includes/api/ApiQueryFilearchive.php | 2 +- includes/api/ApiQueryIWBacklinks.php | 2 +- includes/api/ApiQueryIWLinks.php | 2 +- includes/api/ApiQueryImageInfo.php | 2 +- includes/api/ApiQueryImages.php | 2 +- includes/api/ApiQueryInfo.php | 2 +- includes/api/ApiQueryLangBacklinks.php | 2 +- includes/api/ApiQueryLangLinks.php | 2 +- includes/api/ApiQueryLinks.php | 2 +- includes/api/ApiQueryLogEvents.php | 2 +- includes/api/ApiQueryPageProps.php | 2 +- includes/api/ApiQueryProtectedTitles.php | 2 +- includes/api/ApiQueryQueryPage.php | 4 ++-- includes/api/ApiQueryRandom.php | 2 +- includes/api/ApiQueryRecentChanges.php | 2 +- includes/api/ApiQueryRevisions.php | 2 +- includes/api/ApiQuerySearch.php | 2 +- includes/api/ApiQuerySiteinfo.php | 2 +- includes/api/ApiQueryStashImageInfo.php | 2 +- includes/api/ApiQueryTags.php | 2 +- includes/api/ApiQueryUserContributions.php | 2 +- includes/api/ApiQueryUserInfo.php | 2 +- includes/api/ApiQueryUsers.php | 2 +- includes/api/ApiQueryWatchlist.php | 2 +- includes/api/ApiQueryWatchlistRaw.php | 2 +- includes/api/ApiRollback.php | 2 +- includes/api/ApiRsd.php | 2 +- includes/api/ApiUnblock.php | 2 +- includes/api/ApiUndelete.php | 2 +- includes/api/ApiUpload.php | 2 +- includes/api/ApiUserrights.php | 2 +- includes/api/ApiWatch.php | 2 +- 72 files changed, 77 insertions(+), 77 deletions(-) diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index d3df264659..3dddc1a173 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -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=' diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 59f8555bf2..3609262f2b 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -118,7 +118,7 @@ class ApiComparePages extends ApiBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=compare&fromrev=1&torev=2', ); diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index ace11773bc..de324e4dcd 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -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' diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index ad731bb4da..1b8f8dffcf 100644 --- a/includes/api/ApiDisabled.php +++ b/includes/api/ApiDisabled.php @@ -65,7 +65,7 @@ class ApiDisabled extends ApiBase { return 'This module has been disabled'; } - protected function getExamples() { + public function getExamples() { return array(); } diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 753df9b176..b04323381e 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -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\\', diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index c6c07013ca..b79850cd93 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -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' ); diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index 3fe586fd3a..deb84fa347 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -118,7 +118,7 @@ class ApiExpandTemplates extends ApiBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=expandtemplates&text={{Project:Sandbox}}' ); diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index 08a2b43ed4..1a8e7add58 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -195,7 +195,7 @@ class ApiFeedContributions extends ApiBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=feedcontributions&user=Reedy', ); diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index b4fb9e4665..3d0d3d8417 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -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' diff --git a/includes/api/ApiFileRevert.php b/includes/api/ApiFileRevert.php index 5ff5051296..5a9ccc11f7 100644 --- a/includes/api/ApiFileRevert.php +++ b/includes/api/ApiFileRevert.php @@ -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=+\\', diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 9df2c6e9c1..555a0faa03 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -288,7 +288,7 @@ See complete documentation, or return $text; } - protected function getExamples() { + public function getExamples() { return 'api.php?action=query&meta=siteinfo&siprop=namespaces&format=' . $this->getModuleName(); } diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 89dbf10d11..4a43047011 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -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', diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 1b77266a22..3bb3b9a458 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -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', diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 8e68042e73..67e940961a 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -206,7 +206,7 @@ class ApiLogin extends ApiBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=login&lgname=user&lgpassword=password' ); diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index dd94b9b75e..dac48cdacf 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -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' ); diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index 7f9d62b7f6..7ee0c42342 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -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=' ); diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 12071ba9f0..013a47a797 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -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' ); diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 4718221db9..0b0fbd7540 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -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', diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index ad380c5412..8e578c12e1 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -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' ); diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 6b9f65bdfe..8f95d2ea87 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -587,7 +587,7 @@ class ApiParse extends ApiBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=parse&text={{Project:Sandbox}}' ); diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index 3be87812cd..2adc9a6727 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -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' ); diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index c87cf43e70..a1a235d748 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -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' diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index bf8acd18ff..4e89835167 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -136,7 +136,7 @@ class ApiPurge extends ApiBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=purge&titles=Main_Page|API' ); diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 61f18925ea..696b5165cb 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -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', diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 0725c155fa..23e361c2a5 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -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', diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index b10bc92439..a4a325196d 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -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', ); diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index 6b8c2ee28a..6f67dc9928 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -355,7 +355,7 @@ class ApiQueryAllUsers extends ApiQueryBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=query&list=allusers&aufrom=Y', ); diff --git a/includes/api/ApiQueryAllimages.php b/includes/api/ApiQueryAllimages.php index 5346be9547..bdb819d889 100644 --- a/includes/api/ApiQueryAllimages.php +++ b/includes/api/ApiQueryAllimages.php @@ -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"', diff --git a/includes/api/ApiQueryAllmessages.php b/includes/api/ApiQueryAllmessages.php index 106201e007..715b7a5d60 100644 --- a/includes/api/ApiQueryAllmessages.php +++ b/includes/api/ApiQueryAllmessages.php @@ -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&refix=ipb-', 'api.php?action=query&meta=allmessages&ammessages=august|mainpage&amlang=de', diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index 709c58a5f9..32765b43da 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -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"', diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index c38df76233..27cb39cdf8 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -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', diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 4553a35030..83f8eb8de4 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -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' diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index 30ed7e8778..8ed4846576 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -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', diff --git a/includes/api/ApiQueryCategoryInfo.php b/includes/api/ApiQueryCategoryInfo.php index 8dae986018..1f38bb4bfc 100644 --- a/includes/api/ApiQueryCategoryInfo.php +++ b/includes/api/ApiQueryCategoryInfo.php @@ -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'; } diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index b1f44c122f..c1871a5b41 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -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', diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 8116db14bc..98e51504ea 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -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', diff --git a/includes/api/ApiQueryDisabled.php b/includes/api/ApiQueryDisabled.php index ab08042ad8..30a53dd5dc 100644 --- a/includes/api/ApiQueryDisabled.php +++ b/includes/api/ApiQueryDisabled.php @@ -63,7 +63,7 @@ class ApiQueryDisabled extends ApiQueryBase { ); } - protected function getExamples() { + public function getExamples() { return array(); } diff --git a/includes/api/ApiQueryDuplicateFiles.php b/includes/api/ApiQueryDuplicateFiles.php index 7fe8c33f98..7193675385 100644 --- a/includes/api/ApiQueryDuplicateFiles.php +++ b/includes/api/ApiQueryDuplicateFiles.php @@ -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', diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 093c2e45e9..4bf9d4ff0f 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -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' ); diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index d4497e72a5..c2fed6ace8 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -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', diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index 39b87c4372..e7fbee4672 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -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', diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 8b3c8af15e..5d31abd8fa 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -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' diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index 547c40b56b..9a18e30073 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -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', diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 3e435baa9f..1f91156303 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -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', diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index 23fe3dc169..c69ea93ef8 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -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', diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 818de5cc70..5d2252700f 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -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' diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index 959ee78993..d808cce830 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -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' diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 21a5dfd515..2583790efa 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -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=', diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index dda9ba8949..8090dafa74 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -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", diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 11b12246db..4ecf3af269 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -445,7 +445,7 @@ class ApiQueryLogEvents extends ApiQueryBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=query&list=logevents' ); diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 3bc6a38e65..1731c7976a 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -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', ); diff --git a/includes/api/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php index 6874187d11..21ca648a60 100644 --- a/includes/api/ApiQueryProtectedTitles.php +++ b/includes/api/ApiQueryProtectedTitles.php @@ -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', ); diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index e259feab79..c4b3a6febd 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -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' ); diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php index dea0b0f51d..0779b35e41 100644 --- a/includes/api/ApiQueryRandom.php +++ b/includes/api/ApiQueryRandom.php @@ -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'; } diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index aa2a1036b3..bcafb688fd 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -633,7 +633,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=query&list=recentchanges' ); diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 296b545af5..0031a524ce 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -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', diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 47dc200298..8f7b725e3d 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -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', diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 4749610eb7..1f93416174 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -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', diff --git a/includes/api/ApiQueryStashImageInfo.php b/includes/api/ApiQueryStashImageInfo.php index d9a5f6be1d..4501ec5850 100644 --- a/includes/api/ApiQueryStashImageInfo.php +++ b/includes/api/ApiQueryStashImageInfo.php @@ -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', diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index 4ab0c3d11b..6be8d6c0ad 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -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' ); diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 2a2d1b0f51..a6204215a5 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -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.', diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index 616d9593f7..461b9dda87 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -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', diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 4e7bb2cbd9..f54f01db1a 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -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'; } diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index f9f67f36af..f2d9f6603a 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -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', diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index 126f6d899c..124be7dc2f 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -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', diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 4ad84a883c..9189692b66 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -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' diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index 040eb7ef43..a806c3acf3 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -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' ); diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index 096641ad00..6fd981638f 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -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' diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index 3e3157dd92..c3f7433d5a 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -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×tamps=20070703220045|20070702194856' diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index d361065be2..30331bc980 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -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', diff --git a/includes/api/ApiUserrights.php b/includes/api/ApiUserrights.php index a0a52b0cac..97e3ca5b22 100644 --- a/includes/api/ApiUserrights.php +++ b/includes/api/ApiUserrights.php @@ -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' ); diff --git a/includes/api/ApiWatch.php b/includes/api/ApiWatch.php index 96bf5339cf..13220cb359 100644 --- a/includes/api/ApiWatch.php +++ b/includes/api/ApiWatch.php @@ -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=', -- 2.20.1