00001 <?php 00013 class UncategorizedImagesPage extends ImageQueryPage { 00014 00015 function getName() { 00016 return 'Uncategorizedimages'; 00017 } 00018 00019 function sortDescending() { 00020 return false; 00021 } 00022 00023 function isExpensive() { 00024 return true; 00025 } 00026 00027 function isSyndicated() { 00028 return false; 00029 } 00030 00031 function getSQL() { 00032 $dbr = wfGetDB( DB_SLAVE ); 00033 list( $page, $categorylinks ) = $dbr->tableNamesN( 'page', 'categorylinks' ); 00034 $ns = NS_FILE; 00035 00036 return "SELECT 'Uncategorizedimages' AS type, page_namespace AS namespace, 00037 page_title AS title, page_title AS value 00038 FROM {$page} LEFT JOIN {$categorylinks} ON page_id = cl_from 00039 WHERE cl_from IS NULL AND page_namespace = {$ns} AND page_is_redirect = 0"; 00040 } 00041 00042 } 00043 00044 function wfSpecialUncategorizedimages() { 00045 $uip = new UncategorizedImagesPage(); 00046 list( $limit, $offset ) = wfCheckLimits(); 00047 return $uip->doQuery( $offset, $limit ); 00048 }