24 namespace MediaWiki\Specials;
46 parent::__construct(
'Wantedpages' );
59 $this->limit = (int)$par;
62 $this->shownavigation = !$inc;
63 parent::execute( $par );
76 'namespace' =>
'pl_namespace',
77 'title' =>
'pl_title',
81 'pg1.page_namespace' =>
null,
83 'pg2.page_namespace != ' . $dbr->addQuotes(
NS_MEDIAWIKI ),
87 'COUNT(*) > ' . $dbr->addQuotes( $count ),
88 'COUNT(*) > SUM(pg2.page_is_redirect)'
90 'GROUP BY' => [
'pl_namespace',
'pl_title' ]
95 'pg1.page_namespace = pl_namespace',
96 'pg1.page_title = pl_title'
99 'pg2' => [
'LEFT JOIN',
'pg2.page_id = pl_from' ]
103 $this->
getHookRunner()->onWantedPages__getQueryInfo( $this, $query );
109 return 'maintenance';
117 class_alias( SpecialWantedPages::class,
'WantedPagesPage' );
A class containing constants representing the names of configuration variables.
const WantedPagesThreshold
Name constant for the WantedPagesThreshold setting, for use with Config::get()
setDatabaseProvider(IConnectionProvider $databaseProvider)
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
getConfig()
Shortcut to get main config object.
including( $x=null)
Whether the special page is being evaluated via transclusion.
Class definition for a wanted query page like WantedPages, WantedTemplates, etc.
A special page that lists most linked pages that does not exist.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
isIncludable()
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
execute( $par)
This is the actual workhorse.
__construct(IConnectionProvider $dbProvider, LinkBatchFactory $linkBatchFactory)