52 parent::__construct(
'Mostcategories' );
68 'tables' => [
'categorylinks',
'page' ],
70 'namespace' =>
'page_namespace',
71 'title' =>
'page_title',
75 'page_namespace' => $this->namespaceInfo->getContentNamespaces()
78 'HAVING' =>
'COUNT(*) > 1',
79 'GROUP BY' => [
'page_namespace',
'page_title' ]
104 $title = Title::makeTitleSafe( $result->namespace, $result->title );
106 return Html::element(
108 [
'class' =>
'mw-invalidtitle' ],
124 $count = $this->
msg(
'ncategories' )->numParams( $result->value )->escaped();
126 return $this->
getLanguage()->specialList( $link, $count );
static getInvalidTitleDescription(IContextSource $context, $namespace, $title)
Get a message saying that an invalid title was encountered.
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)
LinkBatchFactory null $linkBatchFactory
isCached()
Whether or not the output of the page in question is retrieved from the database cache.
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
ILoadBalancer null $loadBalancer
A special page that list pages that have highest category count.
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
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)
NamespaceInfo $namespaceInfo
isSyndicated()
Sometime 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.
LinkRenderer null $linkRenderer
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getLanguage()
Shortcut to get user's language.