MediaWiki master
SpecialUncategorizedImages.php
Go to the documentation of this file.
1<?php
25namespace MediaWiki\Specials;
26
29
37
41 public function __construct( IConnectionProvider $dbProvider ) {
42 parent::__construct( 'Uncategorizedimages' );
43 $this->setDatabaseProvider( $dbProvider );
44 }
45
46 protected function sortDescending() {
47 return false;
48 }
49
50 public function isExpensive() {
51 return true;
52 }
53
54 public function isSyndicated() {
55 return false;
56 }
57
58 protected function getOrderFields() {
59 return [ 'title' ];
60 }
61
62 public function execute( $par ) {
63 $this->addHelpLink( 'Help:Categories' );
64 parent::execute( $par );
65 }
66
67 public function getQueryInfo() {
68 return [
69 'tables' => [ 'page', 'categorylinks' ],
70 'fields' => [
71 'namespace' => 'page_namespace',
72 'title' => 'page_title',
73 ],
74 'conds' => [
75 'cl_from' => null,
76 'page_namespace' => NS_FILE,
77 'page_is_redirect' => 0,
78 ],
79 'join_conds' => [
80 'categorylinks' => [
81 'LEFT JOIN',
82 'cl_from=page_id',
83 ],
84 ],
85 ];
86 }
87
88 protected function getGroupName() {
89 return 'maintenance';
90 }
91}
92
97class_alias( SpecialUncategorizedImages::class, 'SpecialUncategorizedImages' );
const NS_FILE
Definition Defines.php:70
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.
Special page lists images 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.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...