MediaWiki REL1_37
SpecialUncategorizedImages.php
Go to the documentation of this file.
1<?php
26
34
39 parent::__construct( 'Uncategorizedimages' );
40 $this->setDBLoadBalancer( $loadBalancer );
41 }
42
43 protected function sortDescending() {
44 return false;
45 }
46
47 public function isExpensive() {
48 return true;
49 }
50
51 public function isSyndicated() {
52 return false;
53 }
54
55 protected function getOrderFields() {
56 return [ 'title' ];
57 }
58
59 public function execute( $par ) {
60 $this->addHelpLink( 'Help:Categories' );
61 parent::execute( $par );
62 }
63
64 public function getQueryInfo() {
65 return [
66 'tables' => [ 'page', 'categorylinks' ],
67 'fields' => [
68 'namespace' => 'page_namespace',
69 'title' => 'page_title',
70 ],
71 'conds' => [
72 'cl_from IS NULL',
73 'page_namespace' => NS_FILE,
74 'page_is_redirect' => 0,
75 ],
76 'join_conds' => [
77 'categorylinks' => [
78 'LEFT JOIN',
79 'cl_from=page_id',
80 ],
81 ],
82 ];
83 }
84
85 protected function getGroupName() {
86 return 'maintenance';
87 }
88}
const NS_FILE
Definition Defines.php:70
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
setDBLoadBalancer(ILoadBalancer $loadBalancer)
ILoadBalancer null $loadBalancer
Definition QueryPage.php:71
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Special page lists images which haven't been categorised.
getOrderFields()
Subclasses return an array of fields to order by here.
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
isSyndicated()
Sometime we don't want to build rss / atom feeds.
__construct(ILoadBalancer $loadBalancer)
execute( $par)
This is the actual workhorse.
sortDescending()
Override to sort by increasing values.
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
Database cluster connection, tracking, load balancing, and transaction manager interface.