MediaWiki  master
SpecialUncategorizedImages.php
Go to the documentation of this file.
1 <?php
26 
34 
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 }
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:47
SpecialUncategorizedImages\sortDescending
sortDescending()
Override to sort by increasing values.
Definition: SpecialUncategorizedImages.php:43
SpecialUncategorizedImages\isSyndicated
isSyndicated()
Sometimes we don't want to build rss / atom feeds.
Definition: SpecialUncategorizedImages.php:51
SpecialPage\addHelpLink
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Definition: SpecialPage.php:972
SpecialUncategorizedImages\execute
execute( $par)
This is the actual workhorse.
Definition: SpecialUncategorizedImages.php:59
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\__construct
__construct(ILoadBalancer $loadBalancer)
Definition: SpecialUncategorizedImages.php:38
SpecialUncategorizedImages\getOrderFields
getOrderFields()
Subclasses return an array of fields to order by here.
Definition: SpecialUncategorizedImages.php:55
QueryPage\setDBLoadBalancer
setDBLoadBalancer(ILoadBalancer $loadBalancer)
Definition: QueryPage.php:891
SpecialUncategorizedImages\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition: SpecialUncategorizedImages.php:85
QueryPage\$loadBalancer
ILoadBalancer null $loadBalancer
Definition: QueryPage.php:71
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
SpecialUncategorizedImages
Special page lists images which haven't been categorised.
Definition: SpecialUncategorizedImages.php:33
Wikimedia\Rdbms\ILoadBalancer
Database cluster connection, tracking, load balancing, and transaction manager interface.
Definition: ILoadBalancer.php:81