40 parent::__construct(
'Fewestrevisions' );
59 'tables' => [
'revision',
'page' ],
61 'namespace' =>
'page_namespace',
62 'title' =>
'page_title',
63 'value' =>
'COUNT(*)',
66 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
68 'page_is_redirect' => 0,
71 'GROUP BY' => [
'page_namespace',
'page_title' ]
87 $nt = Title::makeTitleSafe( $result->namespace, $result->title );
91 [
'class' =>
'mw-invalidtitle' ],
92 Linker::getInvalidTitleDescription(
101 $text = $this->languageConverter->convertHtml( $nt->getPrefixedText() );
102 $plink = $linkRenderer->makeLink( $nt,
new HtmlArmor( $text ) );
104 $nl = $this->
msg(
'nrevisions' )->numParams( $result->value )->text();
105 $redirect = isset( $result->redirect ) && $result->redirect ?
106 ' - ' . $this->
msg(
'isredirect' )->escaped() :
'';
107 $nlink = $linkRenderer->makeKnownLink(
111 [
'action' =>
'history' ]
114 return $this->
getLanguage()->specialList( $plink, $nlink );
129 return 'maintenance';
134class_alias( SpecialFewestRevisions::class,
'SpecialFewestRevisions' );
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)
getContext()
Gets the context this SpecialPage is executed in.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getContentLanguage()
Shortcut to get content language.
getLanguage()
Shortcut to get user's language.