Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

SpecialDeadendpages.php

Go to the documentation of this file.
00001 <?php 00002 00003 require_once( "QueryPage.php" ); 00004 00005 class DeadendPagesPage extends PageQueryPage { 00006 00007 function getName( ) { 00008 return "Deadendpages"; 00009 } 00010 00011 # LEFT JOIN is expensive 00012 00013 function isExpensive( ) { 00014 return 1; 00015 } 00016 00017 function sortDescending() { 00018 return false; 00019 } 00020 00021 function getSQL() { 00022 return "SELECT 'Deadendpages' as type, cur_namespace AS namespace, cur_title as title, cur_title AS value " . 00023 "FROM cur LEFT JOIN links ON cur_id = l_from " . 00024 "WHERE l_from IS NULL " . 00025 "AND cur_namespace = 0 " . 00026 "AND cur_is_redirect = 0"; 00027 } 00028 } 00029 00030 function wfSpecialDeadendpages() { 00031 00032 list( $limit, $offset ) = wfCheckLimits(); 00033 00034 $depp = new DeadendPagesPage(); 00035 00036 return $depp->doQuery( $offset, $limit ); 00037 } 00038 00039 ?>

Generated on Tue Jun 29 23:40:07 2004 for Mediawiki by doxygen 1.3.7