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