59 parent::__construct(
'Mostlinkedcategories' );
72 'tables' => [
'category' ],
73 'fields' => [
'title' =>
'cat_title',
75 'value' =>
'cat_pages' ],
76 'conds' => [ $dbr->expr(
'cat_pages',
'>', 0 ) ],
100 $nt = Title::makeTitleSafe(
NS_CATEGORY, $result->title );
104 [
'class' =>
'mw-invalidtitle' ],
105 Linker::getInvalidTitleDescription(
112 $text = $this->languageConverter->convertHtml( $nt->getText() );
115 $nlinks = $this->
msg(
'nmembers' )->numParams( $result->value )->escaped();
117 return $this->
getLanguage()->specialList( $plink, $nlinks );
128class_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)
getContext()
Gets the context this SpecialPage is executed in.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getContentLanguage()
Shortcut to get content language.
getLanguage()
Shortcut to get user's language.
The base class for all skins.