40 private $linksMigration;
52 parent::__construct(
'Mostlinkedtemplates' );
55 $this->linksMigration = $linksMigration;
86 $queryInfo = $this->linksMigration->getQueryInfo(
'templatelinks' );
87 list( $ns,
$title ) = $this->linksMigration->getTitleFields(
'templatelinks' );
89 'tables' => $queryInfo[
'tables'],
95 'options' => [
'GROUP BY' => [ $ns,
$title ] ],
96 'join_conds' => $queryInfo[
'joins']
118 $title = Title::makeTitleSafe( $result->namespace, $result->title );
120 return Html::element(
122 [
'class' =>
'mw-invalidtitle' ],
133 $this->makeWlhLink(
$title, $result )
144 private function makeWlhLink(
$title, $result ) {
146 $label = $this->
msg(
'ntransclusions' )->numParams( $result->value )->text();
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)
Special page lists templates with a large number of transclusion links, i.e.
sortDescending()
Sort the results in descending order?
preprocessResults( $db, $res)
Pre-cache page existence to speed up link generation.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
isSyndicated()
Is there a feed available?
__construct(ILoadBalancer $loadBalancer, LinkBatchFactory $linkBatchFactory, LinksMigration $linksMigration)
isExpensive()
Is this report expensive, i.e should it be cached?
formatResult( $skin, $result)
Format a result row.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
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.