35 parent::__construct(
'Mostinterwikis' );
53 'tables' => [
'langlinks',
'page' ],
55 'namespace' =>
'page_namespace',
56 'title' =>
'page_title',
59 'conds' => [
'page_namespace' => $this->namespaceInfo->getContentNamespaces() ],
60 'join_conds' => [
'page' => [
'LEFT JOIN',
'page_id = ll_from' ] ],
62 'HAVING' =>
'COUNT(*) > 1',
63 'GROUP BY' => [
'page_namespace',
'page_title' ]
84 $title = Title::makeTitleSafe( $result->namespace, $result->title );
88 [
'class' =>
'mw-invalidtitle' ],
89 Linker::getInvalidTitleDescription(
99 $link = $linkRenderer->makeLink( $title );
101 $link = $linkRenderer->makeKnownLink( $title );
104 $count = $this->
msg(
'ninterwikis' )->numParams( $result->value )->escaped();
106 return $this->
getLanguage()->specialList( $link, $count );
112 LangLinksTable::VIRTUAL_DOMAIN,
127class_alias( SpecialMostInterwikis::class,
'SpecialMostInterwikis' );
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)
isCached()
Whether or not the output of the page in question is retrieved from the database cache.
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.
getLanguage()
Shortcut to get user's language.