37 parent::__construct(
'Mostlinkedtemplates' );
71 $queryInfo = $this->linksMigration->getQueryInfo(
'templatelinks' );
72 [ $ns, $title ] = $this->linksMigration->getTitleFields(
'templatelinks' );
74 'tables' => $queryInfo[
'tables'],
80 'options' => [
'GROUP BY' => [ $ns, $title ] ],
81 'join_conds' => $queryInfo[
'joins']
103 $title = Title::makeTitleSafe( $result->namespace, $result->title );
107 [
'class' =>
'mw-invalidtitle' ],
108 Linker::getInvalidTitleDescription(
118 $this->makeWlhLink( $title, $result )
129 private function makeWlhLink( $title, $result ) {
131 $label = $this->
msg(
'ntransclusions' )->numParams( $result->value )->text();
144 TemplateLinksTable::VIRTUAL_DOMAIN,
154class_alias( SpecialMostLinkedTemplates::class,
'SpecialMostLinkedTemplates' );
Factory for LinkBatch objects to batch query page metadata.
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)
Parent class for all special pages.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
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.