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

SpecialLonelypages.php

Go to the documentation of this file.
00001 <?php 00002 00003 require_once( "QueryPage.php" ); 00004 00005 class LonelyPagesPage extends PageQueryPage { 00006 00007 function getName() { 00008 return "Lonelypages"; 00009 } 00010 00011 function isExpensive() { 00012 return true; 00013 } 00014 00015 function getSQL() { 00016 return "SELECT 'Lonelypages' as type, cur_namespace AS namespace, cur_title AS title, cur_title AS value " . 00017 "FROM cur LEFT JOIN links ON cur_id=l_to ". 00018 "WHERE l_to IS NULL AND cur_namespace=0 AND cur_is_redirect=0"; 00019 } 00020 } 00021 00022 function wfSpecialLonelypages() { 00023 list( $limit, $offset ) = wfCheckLimits(); 00024 00025 $lpp = new LonelyPagesPage(); 00026 00027 return $lpp->doQuery( $offset, $limit ); 00028 } 00029 00030 ?>

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