MediaWiki  1.34.0
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 }
SpecialUncategorizedImages\isExpensive
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
Definition: SpecialUncategorizedImages.php:41
SpecialUncategorizedImages\sortDescending
sortDescending()
Override to sort by increasing values.
Definition: SpecialUncategorizedImages.php:37
NS_FILE
const NS_FILE
Definition: Defines.php:66
SpecialUncategorizedImages\isSyndicated
isSyndicated()
Sometime we don't want to build rss / atom feeds.
Definition: SpecialUncategorizedImages.php:45
SpecialPage\addHelpLink
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Definition: SpecialPage.php:828
SpecialUncategorizedImages\getQueryInfo
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
Definition: SpecialUncategorizedImages.php:53
SpecialUncategorizedImages\getOrderFields
getOrderFields()
Subclasses return an array of fields to order by here.
Definition: SpecialUncategorizedImages.php:49
SpecialUncategorizedImages\__construct
__construct( $name='Uncategorizedimages')
Definition: SpecialUncategorizedImages.php:32
SpecialUncategorizedImages\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition: SpecialUncategorizedImages.php:74
ImageQueryPage
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
Definition: ImageQueryPage.php:34
SpecialUncategorizedImages
Special page lists images which haven't been categorised.
Definition: SpecialUncategorizedImages.php:31