27 namespace MediaWiki\Specials;
51 private $languageConverter;
63 parent::__construct(
'Mostlinkedcategories' );
75 'tables' => [
'category' ],
76 'fields' => [
'title' =>
'cat_title',
78 'value' =>
'cat_pages' ],
79 'conds' => [
'cat_pages > 0' ],
107 [
'class' =>
'mw-invalidtitle' ],
115 $text = $this->languageConverter->convertHtml( $nt->getText() );
118 $nlinks = $this->
msg(
'nmembers' )->numParams( $result->value )->escaped();
120 return $this->
getLanguage()->specialList( $plink, $nlinks );
131 class_alias( SpecialMostLinkedCategories::class,
'SpecialMostLinkedCategories' );
Marks HTML that shouldn't be escaped.
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
setDatabaseProvider(IConnectionProvider $databaseProvider)
executeLBFromResultWrapper(IResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed result wrapper (MUST include title and...
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
The main skin class which provides methods and properties for all other skins.
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.