MediaWiki master
SpecialUncategorizedImages.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Specials;
22
25
35
36 public function __construct( IConnectionProvider $dbProvider ) {
37 parent::__construct( 'Uncategorizedimages' );
38 $this->setDatabaseProvider( $dbProvider );
39 }
40
41 protected function sortDescending() {
42 return false;
43 }
44
45 public function isExpensive() {
46 return true;
47 }
48
49 public function isSyndicated() {
50 return false;
51 }
52
53 protected function getOrderFields() {
54 return [ 'title' ];
55 }
56
57 public function execute( $par ) {
58 $this->addHelpLink( 'Help:Categories' );
59 parent::execute( $par );
60 }
61
62 public function getQueryInfo() {
63 return [
64 'tables' => [ 'page', 'categorylinks' ],
65 'fields' => [
66 'namespace' => 'page_namespace',
67 'title' => 'page_title',
68 ],
69 'conds' => [
70 'cl_from' => null,
71 'page_namespace' => NS_FILE,
72 'page_is_redirect' => 0,
73 ],
74 'join_conds' => [
75 'categorylinks' => [
76 'LEFT JOIN',
77 'cl_from=page_id',
78 ],
79 ],
80 ];
81 }
82
83 protected function getGroupName() {
84 return 'maintenance';
85 }
86}
87
92class_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.