41 private $languageConverter;
53 parent::__construct(
'Mostlinkedcategories' );
65 'tables' => [
'category' ],
66 'fields' => [
'title' =>
'cat_title',
68 'value' =>
'cat_pages' ],
69 'conds' => [
'cat_pages > 0' ],
93 $nt = Title::makeTitleSafe(
NS_CATEGORY, $result->title );
97 [
'class' =>
'mw-invalidtitle' ],
105 $text = $this->languageConverter->convertHtml( $nt->getText() );
108 $nlinks = $this->
msg(
'nmembers' )->numParams( $result->value )->escaped();
110 return $this->
getLanguage()->specialList( $plink, $nlinks );
Marks HTML that shouldn't be escaped.
static getInvalidTitleDescription(IContextSource $context, $namespace, $title)
Get a message saying that an invalid title was encountered.
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)
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
A querypage to show categories ordered in descending order by the pages in them.
sortDescending()
Override to sort by increasing values.
preprocessResults( $db, $res)
Fetch user page links and cache their existence.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
formatResult( $skin, $result)
isSyndicated()
Sometimes we don't want to build rss / atom feeds.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
__construct(ILoadBalancer $loadBalancer, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory)
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.
getContentLanguage()
Shortcut to get content language.
The shared interface for all language converters.