MediaWiki REL1_34
SpecialUncategorizedImages.php
Go to the documentation of this file.
1<?php
32 function __construct( $name = 'Uncategorizedimages' ) {
33 parent::__construct( $name );
34 $this->addHelpLink( 'Help:Categories' );
35 }
36
37 function sortDescending() {
38 return false;
39 }
40
41 function isExpensive() {
42 return true;
43 }
44
45 function isSyndicated() {
46 return false;
47 }
48
49 function getOrderFields() {
50 return [ 'title' ];
51 }
52
53 function getQueryInfo() {
54 return [
55 'tables' => [ 'page', 'categorylinks' ],
56 'fields' => [
57 'namespace' => 'page_namespace',
58 'title' => 'page_title',
59 ],
60 'conds' => [
61 'cl_from IS NULL',
62 'page_namespace' => NS_FILE,
63 'page_is_redirect' => 0,
64 ],
65 'join_conds' => [
66 'categorylinks' => [
67 'LEFT JOIN',
68 'cl_from=page_id',
69 ],
70 ],
71 ];
72 }
73
74 protected function getGroupName() {
75 return 'maintenance';
76 }
77}
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
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...
__construct( $name='Uncategorizedimages')
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.
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.
const NS_FILE
Definition Defines.php:75