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