43 private $namespaceInfo;
55 parent::__construct(
'Mostcategories' );
56 $this->namespaceInfo = $namespaceInfo;
71 'tables' => [
'categorylinks',
'page' ],
73 'namespace' =>
'page_namespace',
74 'title' =>
'page_title',
78 'page_namespace' => $this->namespaceInfo->getContentNamespaces()
81 'HAVING' =>
'COUNT(*) > 1',
82 'GROUP BY' => [
'page_namespace',
'page_title' ]
107 $title = Title::makeTitleSafe( $result->namespace, $result->title );
109 return Html::element(
111 [
'class' =>
'mw-invalidtitle' ],
112 Linker::getInvalidTitleDescription(
122 $link = $linkRenderer->makeLink(
$title );
124 $link = $linkRenderer->makeKnownLink(
$title );
127 $count = $this->
msg(
'ncategories' )->numParams( $result->value )->escaped();
129 return $this->
getLanguage()->specialList( $link, $count );
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
executeLBFromResultWrapper(IResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed result wrapper (MUST include title and...
setDBLoadBalancer(ILoadBalancer $loadBalancer)
isCached()
Whether or not the output of the page in question is retrieved from the database cache.
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
A special page that list pages that have highest category count.
isExpensive()
Should this query page only be updated offline on large wikis?
preprocessResults( $db, $res)
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
formatResult( $skin, $result)
isSyndicated()
Sometimes we don't want to build rss / atom feeds.
__construct(NamespaceInfo $namespaceInfo, ILoadBalancer $loadBalancer, LinkBatchFactory $linkBatchFactory)
getContext()
Gets the context this SpecialPage is executed in.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getLanguage()
Shortcut to get user's language.