MediaWiki  REL1_24
SpecialUncategorizedimages.php
Go to the documentation of this file.
00001 <?php
00031 class UncategorizedImagesPage extends ImageQueryPage {
00032     function __construct( $name = 'Uncategorizedimages' ) {
00033         parent::__construct( $name );
00034     }
00035 
00036     function sortDescending() {
00037         return false;
00038     }
00039 
00040     function isExpensive() {
00041         return true;
00042     }
00043 
00044     function isSyndicated() {
00045         return false;
00046     }
00047 
00048     function getQueryInfo() {
00049         return array(
00050             'tables' => array( 'page', 'categorylinks' ),
00051             'fields' => array( 'namespace' => 'page_namespace',
00052                 'title' => 'page_title',
00053                 'value' => 'page_title' ),
00054             'conds' => array( 'cl_from IS NULL',
00055                 'page_namespace' => NS_FILE,
00056                 'page_is_redirect' => 0 ),
00057             'join_conds' => array( 'categorylinks' => array(
00058                 'LEFT JOIN', 'cl_from=page_id' ) )
00059         );
00060     }
00061 
00062     protected function getGroupName() {
00063         return 'maintenance';
00064     }
00065 }