24 namespace MediaWiki\Specials;
53 parent::__construct(
'Deadendpages' );
54 $this->namespaceInfo = $namespaceInfo;
61 return $this->
msg(
'deadendpagestext' )->parseAsBlock();
86 'tables' => [
'page',
'pagelinks' ],
88 'namespace' =>
'page_namespace',
89 'title' =>
'page_title',
93 'page_namespace' => $this->namespaceInfo->getContentNamespaces(),
94 'page_is_redirect' => 0
108 if ( count( $this->namespaceInfo->getContentNamespaces() ) > 1 ) {
109 return [
'page_namespace',
'page_title' ];
111 return [
'page_title' ];
116 return 'maintenance';
123 class_alias( SpecialDeadendPages::class,
'SpecialDeadendPages' );
Variant of QueryPage which formats the result as a simple link to the page.
setLanguageConverter(ILanguageConverter $languageConverter)
setDatabaseProvider(IConnectionProvider $databaseProvider)
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
A special page that list pages that contain no link to other pages.
isExpensive()
LEFT JOIN is expensive.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
isSyndicated()
Sometimes we don't want to build rss / atom feeds.
getPageHeader()
The content returned by this function will be output before any result.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
getOrderFields()
Subclasses return an array of fields to order by here.
__construct(NamespaceInfo $namespaceInfo, IConnectionProvider $dbProvider, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory)