MediaWiki  master
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 getQueryInfo() {
50  return [
51  'tables' => [ 'page', 'categorylinks' ],
52  'fields' => [ 'namespace' => 'page_namespace',
53  'title' => 'page_title',
54  'value' => 'page_title' ],
55  'conds' => [ 'cl_from IS NULL',
56  'page_namespace' => NS_FILE,
57  'page_is_redirect' => 0 ],
58  'join_conds' => [ 'categorylinks' => [
59  'LEFT JOIN', 'cl_from=page_id' ] ]
60  ];
61  }
62 
63  protected function getGroupName() {
64  return 'maintenance';
65  }
66 }
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.
__construct( $name='Uncategorizedimages')
Special page lists images which haven&#39;t been categorised.
const NS_FILE
Definition: Defines.php:66