9use MediaWiki\Cache\LinkBatchFactory;
25 LinkBatchFactory $linkBatchFactory
27 parent::__construct(
'Unusedcategories' );
39 return $this->
msg(
'unusedcategoriestext' )->parseAsBlock();
50 'tables' => [
'page',
'linktarget',
'categorylinks',
'page_props' ],
52 'namespace' =>
'page_namespace',
53 'title' =>
'page_title',
58 'page_is_redirect' => 0,
62 'linktarget' => [
'LEFT JOIN', [
63 'lt_title = page_title',
64 'lt_namespace = page_namespace',
66 'categorylinks' => [
'LEFT JOIN',
'cl_target_id = lt_id' ],
67 'page_props' => [
'LEFT JOIN', [
69 'pp_propname' =>
'expectunusedcategory'
109class_alias( SpecialUnusedCategories::class,
'SpecialUnusedCategories' );
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)
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.