diff options
author | Sam Reed <reedy@users.mediawiki.org> | 2011-08-17 22:24:21 +0000 |
---|---|---|
committer | Sam Reed <reedy@users.mediawiki.org> | 2011-08-17 22:24:21 +0000 |
commit | a5628f573480e84b877d914a4278c89ad7fce9d6 (patch) | |
tree | 1a694fc150f0aafed0e3556ed71add9b9fa417db | |
parent | ec1a07889cb379dae0720a0c33eacddbd45c8e37 (diff) | |
download | mediawikicore-a5628f573480e84b877d914a4278c89ad7fce9d6.tar.gz mediawikicore-a5628f573480e84b877d914a4278c89ad7fce9d6.zip |
Based on diff to wikia, set more functions consistently public rather than protected
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/94827
72 files changed, 77 insertions, 77 deletions
diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index d3df26465954..3dddc1a1733a 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 59f8555bf2b2..3609262f2b1e 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 ace11773bc1d..de324e4dcd58 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 ad731bb4dac5..1b8f8dffcf46 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 753df9b1761b..b04323381ee0 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 c6c07013ca0b..b79850cd9360 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 3fe586fd3ab9..deb84fa347f3 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 08a2b43ed4f9..1a8e7add5803 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 b4fb9e4665bf..3d0d3d84173f 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 5ff505129640..5a9ccc11f7e7 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 9df2c6e9c146..555a0faa038a 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -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(); } diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 89dbf10d119b..4a43047011a5 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 1b77266a228a..3bb3b9a4582c 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 8e68042e73dd..67e940961a77 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 dd94b9b75e28..dac48cdacf15 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 7f9d62b7f620..7ee0c42342ca 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 12071ba9f0f5..013a47a797af 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 4718221db9b5..0b0fbd754027 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 ad380c5412aa..8e578c12e151 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 6b9f65bdfec9..8f95d2ea87db 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 3be87812cdf6..2adc9a6727da 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 c87cf43e7074..a1a235d74811 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 bf8acd18ff2e..4e898351676a 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 61f18925eae6..696b5165cb90 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 0725c155fa17..23e361c2a5bd 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 b10bc9243979..a4a325196dfa 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 6b8c2ee28ac2..6f67dc992829 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 5346be95479e..bdb819d88953 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 106201e007ec..715b7a5d60e1 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 709c58a5f960..32765b43da71 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 c38df7623378..27cb39cdf826 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 4553a350304e..83f8eb8de479 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 30ed7e87787f..8ed48465766b 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 8dae9860181b..1f38bb4bfc05 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 b1f44c122fb7..c1871a5b41b6 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 8116db14bcaf..98e51504eaf3 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 ab08042ad83f..30a53dd5dce2 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 7fe8c33f986c..719367538538 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 093c2e45e9ff..4bf9d4ff0f46 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 d4497e72a56d..c2fed6ace897 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 39b87c437252..e7fbee46729a 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 8b3c8af15e17..5d31abd8fa6e 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 547c40b56be4..9a18e300739d 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 3e435baa9f50..1f911563032a 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 23fe3dc16973..c69ea93ef8dc 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 818de5cc7065..5d2252700f2e 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 959ee789932f..d808cce8304a 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 21a5dfd515c8..2583790efa3e 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 dda9ba89494c..8090dafa7483 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 11b12246db21..4ecf3af269ca 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 3bc6a38e65d2..1731c7976a78 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 6874187d1102..21ca648a60c9 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 e259feab7957..c4b3a6febd3d 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 dea0b0f51de1..0779b35e4173 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 aa2a1036b34a..bcafb688fd80 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 296b545af5ac..0031a524ce40 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 47dc2002982d..8f7b725e3db6 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 4749610eb74a..1f93416174e2 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 d9a5f6be1d9c..4501ec585099 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 4ab0c3d11bff..6be8d6c0add6 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 2a2d1b0f515c..a6204215a5f0 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 616d9593f7a3..461b9dda872f 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 4e7bb2cbd9b7..f54f01db1a37 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 f9f67f36af06..f2d9f6603aef 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 126f6d899ca3..124be7dc2f11 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 4ad84a883c92..9189692b6647 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 040eb7ef4335..a806c3acf3a0 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 096641ad00d5..6fd981638f5c 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 3e3157dd9215..c3f7433d5a64 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 d361065be286..30331bc98090 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 a0a52b0cac8f..97e3ca5b22b0 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 96bf5339cfdd..13220cb35935 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=', |