9use MediaWiki\Cache\LinkBatchFactory;
11use MediaWiki\Languages\LanguageConverterFactory;
32 LinkBatchFactory $linkBatchFactory,
33 LanguageConverterFactory $languageConverterFactory
35 parent::__construct(
'Uncategorizedpages' );
36 $this->namespaceInfo = $namespaceInfo;
39 $this->
setLanguageConverter( $languageConverterFactory->getLanguageConverter( $this->getContentLanguage() ) );
60 parent::execute( $par );
66 'tables' => [
'page',
'categorylinks' ],
68 'namespace' =>
'page_namespace',
69 'title' =>
'page_title',
75 'page_namespace' => $this->requestedNamespace !==
false
76 ? $this->requestedNamespace
77 : $this->namespaceInfo->getContentNamespaces(),
78 'page_is_redirect' => 0
81 'categorylinks' => [
'LEFT JOIN',
'cl_from = page_id' ]
89 CategoryLinksTable::VIRTUAL_DOMAIN,
98 if ( $this->requestedNamespace ===
false &&
99 count( $this->namespaceInfo->getContentNamespaces() ) > 1
101 return [
'page_namespace',
'page_title' ];
104 return [
'page_title' ];
109 return 'maintenance';
117class_alias( SpecialUncategorizedPages::class,
'SpecialUncategorizedPages' );
Variant of QueryPage which formats the result as a simple link to the page.
setLanguageConverter(ILanguageConverter $languageConverter)
setDatabaseProvider(IConnectionProvider $databaseProvider)
setLinkBatchFactory(LinkBatchFactory $linkBatchFactory)
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
List of pages without any category.
getOrderFields()
Subclasses return an array of fields to order by here.Don't append DESC to the field names,...
execute( $par)
This is the actual workhorse.It does everything needed to make a real, honest-to-gosh query page....
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
int false $requestedNamespace
__construct(NamespaceInfo $namespaceInfo, IConnectionProvider $dbProvider, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory)
sortDescending()
Override to sort by increasing values.to override bool
getRecacheDB()
Get a DB connection to be used for slow recache queries.to override IReadableDatabase
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.to override bool
isExpensive()
Should this query page only be updated offline on large wikis?If the query for this page is considere...