MediaWiki master
SpecialUncategorizedImages.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Specials;
22
25
35
39 public function __construct( IConnectionProvider $dbProvider ) {
40 parent::__construct( 'Uncategorizedimages' );
41 $this->setDatabaseProvider( $dbProvider );
42 }
43
44 protected function sortDescending() {
45 return false;
46 }
47
48 public function isExpensive() {
49 return true;
50 }
51
52 public function isSyndicated() {
53 return false;
54 }
55
56 protected function getOrderFields() {
57 return [ 'title' ];
58 }
59
60 public function execute( $par ) {
61 $this->addHelpLink( 'Help:Categories' );
62 parent::execute( $par );
63 }
64
65 public function getQueryInfo() {
66 return [
67 'tables' => [ 'page', 'categorylinks' ],
68 'fields' => [
69 'namespace' => 'page_namespace',
70 'title' => 'page_title',
71 ],
72 'conds' => [
73 'cl_from' => null,
74 'page_namespace' => NS_FILE,
75 'page_is_redirect' => 0,
76 ],
77 'join_conds' => [
78 'categorylinks' => [
79 'LEFT JOIN',
80 'cl_from=page_id',
81 ],
82 ],
83 ];
84 }
85
86 protected function getGroupName() {
87 return 'maintenance';
88 }
89}
90
95class_alias( SpecialUncategorizedImages::class, 'SpecialUncategorizedImages' );
const NS_FILE
Definition Defines.php:71
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
setDatabaseProvider(IConnectionProvider $databaseProvider)
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
List of file pages which haven't been categorised.
isSyndicated()
Sometimes we don't want to build rss / atom feeds.
sortDescending()
Override to sort by increasing values.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
isExpensive()
Should this query page only be updated offline on large wikis?
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
getOrderFields()
Subclasses return an array of fields to order by here.
Provide primary and replica IDatabase connections.