From: Ricordisamoa Date: Thu, 20 Aug 2015 13:02:54 +0000 (+0200) Subject: Add public keywords to QueryPage subclasses X-Git-Tag: 1.31.0-rc.0~10340^2 X-Git-Url: http://git.cyclocoop.org/%27%20.generer_url_ecrire%28_request%28%27exec%27%29%2C%27cmd=switch&outil=rss_couteau_suisse%27%29.%27?a=commitdiff_plain;h=eec968e7a89fb83382eadc687b87627ad6ed9568;p=lhc%2Fweb%2Fwiklou.git Add public keywords to QueryPage subclasses Follows a5c9c9607e034a00edc79146ec778e3d9c05e50a Change-Id: I81b1d49e017792dea2c7eb0d98e99656576cf497 --- diff --git a/includes/specials/SpecialAncientpages.php b/includes/specials/SpecialAncientpages.php index b0830327be..2da24a8ed6 100644 --- a/includes/specials/SpecialAncientpages.php +++ b/includes/specials/SpecialAncientpages.php @@ -32,7 +32,7 @@ class AncientPagesPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -40,7 +40,7 @@ class AncientPagesPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'page', 'revision' ), 'fields' => array( @@ -56,7 +56,7 @@ class AncientPagesPage extends QueryPage { ); } - function usesTimestamps() { + public function usesTimestamps() { return true; } diff --git a/includes/specials/SpecialBrokenRedirects.php b/includes/specials/SpecialBrokenRedirects.php index 1bbdbeab93..701f75f047 100644 --- a/includes/specials/SpecialBrokenRedirects.php +++ b/includes/specials/SpecialBrokenRedirects.php @@ -32,7 +32,7 @@ class BrokenRedirectsPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -48,7 +48,7 @@ class BrokenRedirectsPage extends QueryPage { return $this->msg( 'brokenredirectstext' )->parseAsBlock(); } - function getQueryInfo() { + public function getQueryInfo() { $dbr = wfGetDB( DB_SLAVE ); return array( diff --git a/includes/specials/SpecialDoubleRedirects.php b/includes/specials/SpecialDoubleRedirects.php index 47b426dce7..6d40985bbd 100644 --- a/includes/specials/SpecialDoubleRedirects.php +++ b/includes/specials/SpecialDoubleRedirects.php @@ -32,7 +32,7 @@ class DoubleRedirectsPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -99,7 +99,7 @@ class DoubleRedirectsPage extends QueryPage { return $retval; } - function getQueryInfo() { + public function getQueryInfo() { return $this->reallyGetQueryInfo(); } diff --git a/includes/specials/SpecialFewestrevisions.php b/includes/specials/SpecialFewestrevisions.php index dc9d57c2ee..406233b475 100644 --- a/includes/specials/SpecialFewestrevisions.php +++ b/includes/specials/SpecialFewestrevisions.php @@ -32,7 +32,7 @@ class FewestrevisionsPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -40,7 +40,7 @@ class FewestrevisionsPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'revision', 'page' ), 'fields' => array( diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index da79bb8153..4c0c75fbe2 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -48,7 +48,7 @@ class FileDuplicateSearchPage extends QueryPage { return false; } - function isCached() { + public function isCached() { return false; } @@ -82,7 +82,7 @@ class FileDuplicateSearchPage extends QueryPage { $this->getOutput()->addHtml( implode( "\n", $html ) ); } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'image' ), 'fields' => array( @@ -95,7 +95,7 @@ class FileDuplicateSearchPage extends QueryPage { ); } - function execute( $par ) { + public function execute( $par ) { $this->setHeaders(); $this->outputHeader(); diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index 67683f2b5f..dc882d43a7 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -80,7 +80,7 @@ class LinkSearchPage extends QueryPage { return false; } - function execute( $par ) { + public function execute( $par ) { $this->initServices(); $this->setHeaders(); @@ -218,7 +218,7 @@ class LinkSearchPage extends QueryPage { return $params; } - function getQueryInfo() { + public function getQueryInfo() { $dbr = wfGetDB( DB_SLAVE ); // strip everything past first wildcard, so that // index-based-only lookup would be done diff --git a/includes/specials/SpecialListDuplicatedFiles.php b/includes/specials/SpecialListDuplicatedFiles.php index 1e3dff6f34..317b62fe6f 100644 --- a/includes/specials/SpecialListDuplicatedFiles.php +++ b/includes/specials/SpecialListDuplicatedFiles.php @@ -34,7 +34,7 @@ class ListDuplicatedFilesPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -53,7 +53,7 @@ class ListDuplicatedFilesPage extends QueryPage { * with however we are doing cached special pages. * @return array */ - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'image' ), 'fields' => array( diff --git a/includes/specials/SpecialListredirects.php b/includes/specials/SpecialListredirects.php index 2df4834729..fa94b4ab68 100644 --- a/includes/specials/SpecialListredirects.php +++ b/includes/specials/SpecialListredirects.php @@ -33,7 +33,7 @@ class ListredirectsPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -45,7 +45,7 @@ class ListredirectsPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'p1' => 'page', 'redirect', 'p2' => 'page' ), 'fields' => array( 'namespace' => 'p1.page_namespace', diff --git a/includes/specials/SpecialMIMEsearch.php b/includes/specials/SpecialMIMEsearch.php index 64d4982a20..32344a84a8 100644 --- a/includes/specials/SpecialMIMEsearch.php +++ b/includes/specials/SpecialMIMEsearch.php @@ -34,7 +34,7 @@ class MIMEsearchPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -123,7 +123,7 @@ class MIMEsearchPage extends QueryPage { Xml::closeElement( 'form' ); } - function execute( $par ) { + public function execute( $par ) { $this->mime = $par ? $par : $this->getRequest()->getText( 'mime' ); $this->mime = trim( $this->mime ); list( $this->major, $this->minor ) = File::splitMime( $this->mime ); diff --git a/includes/specials/SpecialMediaStatistics.php b/includes/specials/SpecialMediaStatistics.php index 7a7979c4ae..e5ba8c60b5 100644 --- a/includes/specials/SpecialMediaStatistics.php +++ b/includes/specials/SpecialMediaStatistics.php @@ -36,7 +36,7 @@ class MediaStatisticsPage extends QueryPage { $this->shownavigation = false; } - function isExpensive() { + public function isExpensive() { return true; } diff --git a/includes/specials/SpecialMostcategories.php b/includes/specials/SpecialMostcategories.php index c70bbdbad0..18083f614a 100644 --- a/includes/specials/SpecialMostcategories.php +++ b/includes/specials/SpecialMostcategories.php @@ -34,7 +34,7 @@ class MostcategoriesPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -42,7 +42,7 @@ class MostcategoriesPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'categorylinks', 'page' ), 'fields' => array( diff --git a/includes/specials/SpecialMostinterwikis.php b/includes/specials/SpecialMostinterwikis.php index ab3d9c91f0..b07b8331dc 100644 --- a/includes/specials/SpecialMostinterwikis.php +++ b/includes/specials/SpecialMostinterwikis.php @@ -34,7 +34,7 @@ class MostinterwikisPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -42,7 +42,7 @@ class MostinterwikisPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'langlinks', diff --git a/includes/specials/SpecialMostlinked.php b/includes/specials/SpecialMostlinked.php index ae0b07087e..019df4937a 100644 --- a/includes/specials/SpecialMostlinked.php +++ b/includes/specials/SpecialMostlinked.php @@ -35,7 +35,7 @@ class MostlinkedPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -43,7 +43,7 @@ class MostlinkedPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'pagelinks', 'page' ), 'fields' => array( diff --git a/includes/specials/SpecialMostlinkedcategories.php b/includes/specials/SpecialMostlinkedcategories.php index cc718e06ab..6eeab91bc3 100644 --- a/includes/specials/SpecialMostlinkedcategories.php +++ b/includes/specials/SpecialMostlinkedcategories.php @@ -38,7 +38,7 @@ class MostlinkedCategoriesPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'category' ), 'fields' => array( 'title' => 'cat_title', diff --git a/includes/specials/SpecialPagesWithProp.php b/includes/specials/SpecialPagesWithProp.php index 670a3973b9..26d0fe8f87 100644 --- a/includes/specials/SpecialPagesWithProp.php +++ b/includes/specials/SpecialPagesWithProp.php @@ -40,7 +40,7 @@ class SpecialPagesWithProp extends QueryPage { return false; } - function execute( $par ) { + public function execute( $par ) { $this->setHeaders(); $this->outputHeader(); $this->getOutput()->addModuleStyles( 'mediawiki.special.pagesWithProp' ); @@ -100,7 +100,7 @@ class SpecialPagesWithProp extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'page_props', 'page' ), 'fields' => array( diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index 7ec69e06f0..ba11862e5e 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -37,7 +37,7 @@ class ShortPagesPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'page' ), 'fields' => array( diff --git a/includes/specials/SpecialUnusedcategories.php b/includes/specials/SpecialUnusedcategories.php index 713823bb62..0d3216cd81 100644 --- a/includes/specials/SpecialUnusedcategories.php +++ b/includes/specials/SpecialUnusedcategories.php @@ -29,7 +29,7 @@ class UnusedCategoriesPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -37,7 +37,7 @@ class UnusedCategoriesPage extends QueryPage { return $this->msg( 'unusedcategoriestext' )->parseAsBlock(); } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'page', 'categorylinks' ), 'fields' => array( diff --git a/includes/specials/SpecialUnusedtemplates.php b/includes/specials/SpecialUnusedtemplates.php index 0c2b870708..33444f637a 100644 --- a/includes/specials/SpecialUnusedtemplates.php +++ b/includes/specials/SpecialUnusedtemplates.php @@ -34,7 +34,7 @@ class UnusedtemplatesPage extends QueryPage { parent::__construct( $name ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -46,7 +46,7 @@ class UnusedtemplatesPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'page', 'templatelinks' ), 'fields' => array( diff --git a/includes/specials/SpecialUnwatchedpages.php b/includes/specials/SpecialUnwatchedpages.php index bb07c19759..b3ca006c71 100644 --- a/includes/specials/SpecialUnwatchedpages.php +++ b/includes/specials/SpecialUnwatchedpages.php @@ -35,7 +35,7 @@ class UnwatchedpagesPage extends QueryPage { parent::__construct( $name, 'unwatchedpages' ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -43,7 +43,7 @@ class UnwatchedpagesPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'page', 'watchlist' ), 'fields' => array(