48 parent::__construct(
'Mostlinked' );
63 'tables' => [
'pagelinks',
'page' ],
65 'namespace' =>
'pl_namespace',
66 'title' =>
'pl_title',
67 'value' =>
'COUNT(*)',
71 'HAVING' =>
'COUNT(*) > 1',
73 'pl_namespace',
'pl_title',
81 'page_namespace = pl_namespace',
82 'page_title = pl_title'
122 $title = Title::makeTitleSafe( $result->namespace, $result->title );
124 return Html::element(
126 [
'class' =>
'mw-invalidtitle' ],
138 $this->
msg(
'nlinks' )->numParams( $result->value )->text()
141 return $this->
getLanguage()->specialList( $link, $wlh );
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)
LinkBatchFactory null $linkBatchFactory
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
ILoadBalancer null $loadBalancer
A special page to show pages ordered by the number of pages linking to them.
preprocessResults( $db, $res)
Pre-fill the link cache.
formatResult( $skin, $result)
Make links to the page corresponding to the item, and the "what links here" page for it.
__construct(ILoadBalancer $loadBalancer, LinkBatchFactory $linkBatchFactory)
makeWlhLink( $title, $caption)
Make a link to "what links here" for the specified title.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
isSyndicated()
Sometime we don't want to build rss / atom feeds.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
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.
LinkRenderer null $linkRenderer
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getLanguage()
Shortcut to get user's language.