MediaWiki
REL1_39
SpecialUncategorizedImages.php
Go to the documentation of this file.
1
<?php
25
use
Wikimedia\Rdbms\ILoadBalancer
;
26
33
class
SpecialUncategorizedImages
extends
ImageQueryPage
{
34
38
public
function
__construct
(
ILoadBalancer
$loadBalancer ) {
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
}
NS_FILE
const NS_FILE
Definition
Defines.php:70
ImageQueryPage
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
Definition
ImageQueryPage.php:36
QueryPage\setDBLoadBalancer
setDBLoadBalancer(ILoadBalancer $loadBalancer)
Definition
QueryPage.php:916
SpecialPage\addHelpLink
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Definition
SpecialPage.php:1020
SpecialUncategorizedImages
Special page lists images which haven't been categorised.
Definition
SpecialUncategorizedImages.php:33
SpecialUncategorizedImages\getOrderFields
getOrderFields()
Subclasses return an array of fields to order by here.
Definition
SpecialUncategorizedImages.php:55
SpecialUncategorizedImages\getQueryInfo
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
Definition
SpecialUncategorizedImages.php:64
SpecialUncategorizedImages\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition
SpecialUncategorizedImages.php:85
SpecialUncategorizedImages\isSyndicated
isSyndicated()
Sometimes we don't want to build rss / atom feeds.
Definition
SpecialUncategorizedImages.php:51
SpecialUncategorizedImages\__construct
__construct(ILoadBalancer $loadBalancer)
Definition
SpecialUncategorizedImages.php:38
SpecialUncategorizedImages\execute
execute( $par)
This is the actual workhorse.
Definition
SpecialUncategorizedImages.php:59
SpecialUncategorizedImages\sortDescending
sortDescending()
Override to sort by increasing values.
Definition
SpecialUncategorizedImages.php:43
SpecialUncategorizedImages\isExpensive
isExpensive()
Should this query page only be updated offline on large wikis?
Definition
SpecialUncategorizedImages.php:47
Wikimedia\Rdbms\ILoadBalancer
Create and track the database connections and transactions for a given database cluster.
Definition
ILoadBalancer.php:77
includes
specials
SpecialUncategorizedImages.php
Generated on Mon Dec 2 2024 06:24:38 for MediaWiki by
1.10.0