MediaWiki REL1_31
SpecialUncategorizedimages.php
Go to the documentation of this file.
1<?php
32 function __construct( $name = 'Uncategorizedimages' ) {
33 parent::__construct( $name );
34 }
35
36 function sortDescending() {
37 return false;
38 }
39
40 function isExpensive() {
41 return true;
42 }
43
44 function isSyndicated() {
45 return false;
46 }
47
48 function getOrderFields() {
49 return [ 'title' ];
50 }
51
52 function getQueryInfo() {
53 return [
54 'tables' => [ 'page', 'categorylinks' ],
55 'fields' => [
56 'namespace' => 'page_namespace',
57 'title' => 'page_title',
58 ],
59 'conds' => [
60 'cl_from IS NULL',
61 'page_namespace' => NS_FILE,
62 'page_is_redirect' => 0,
63 ],
64 'join_conds' => [
65 'categorylinks' => [
66 'LEFT JOIN',
67 'cl_from=page_id',
68 ],
69 ],
70 ];
71 }
72
73 protected function getGroupName() {
74 return 'maintenance';
75 }
76}
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
Special page lists images which haven't been categorised.
__construct( $name='Uncategorizedimages')
isSyndicated()
Sometime we don't want to build rss / atom feeds.
sortDescending()
Override to sort by increasing values.
getOrderFields()
Subclasses return an array of fields to order by here.
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
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...
const NS_FILE
Definition Defines.php:80