Add public keywords to QueryPage subclasses
Follows a5c9c9607e
Change-Id: I81b1d49e017792dea2c7eb0d98e99656576cf497
This commit is contained in:
parent
04f93370bb
commit
eec968e7a8
19 changed files with 37 additions and 37 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class MediaStatisticsPage extends QueryPage {
|
|||
$this->shownavigation = false;
|
||||
}
|
||||
|
||||
function isExpensive() {
|
||||
public function isExpensive() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class ShortPagesPage extends QueryPage {
|
|||
return false;
|
||||
}
|
||||
|
||||
function getQueryInfo() {
|
||||
public function getQueryInfo() {
|
||||
return array(
|
||||
'tables' => array( 'page' ),
|
||||
'fields' => array(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue