57 parent::__construct(
'Mostlinkedtemplates' );
60 $this->linksMigration = $linksMigration;
91 $queryInfo = $this->linksMigration->getQueryInfo(
'templatelinks' );
92 [ $ns, $title ] = $this->linksMigration->getTitleFields(
'templatelinks' );
94 'tables' => $queryInfo[
'tables'],
100 'options' => [
'GROUP BY' => [ $ns, $title ] ],
101 'join_conds' => $queryInfo[
'joins']
123 $title = Title::makeTitleSafe( $result->namespace, $result->title );
127 [
'class' =>
'mw-invalidtitle' ],
128 Linker::getInvalidTitleDescription(
138 $this->makeWlhLink( $title, $result )
149 private function makeWlhLink( $title, $result ) {
151 $label = $this->
msg(
'ntransclusions' )->numParams( $result->value )->text();
165class_alias( SpecialMostLinkedTemplates::class,
'SpecialMostLinkedTemplates' );
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.
The base class for all skins.