9 require_once( "QueryPage.php" );
14 class UncategorizedPagesPage
extends PageQueryPage
{
17 return "Uncategorizedpages";
20 function sortDescending() {
24 function isExpensive() {
29 $dbr =& wfGetDB( DB_SLAVE
);
30 extract( $dbr->tableNames( 'cur', 'categorylinks' ) );
32 return "SELECT 'Uncategorizedpages' as type, cur_namespace AS namespace, cur_title AS title, cur_title AS value " .
33 "FROM $cur LEFT JOIN $categorylinks ON cur_id=cl_from ".
34 "WHERE cl_from IS NULL AND cur_namespace=0 AND cur_is_redirect=0";
41 function wfSpecialUncategorizedpages() {
42 list( $limit, $offset ) = wfCheckLimits();
44 $lpp = new UncategorizedPagesPage();
46 return $lpp->doQuery( $offset, $limit );