5 * @subpackage SpecialPage
11 require_once( "QueryPage.php" );
16 * @subpackage SpecialPage
18 class UncategorizedPagesPage
extends PageQueryPage
{
21 return "Uncategorizedpages";
24 function sortDescending() {
28 function isExpensive() {
31 function isSyndicated() { return false; }
34 $dbr =& wfGetDB( DB_SLAVE
);
35 extract( $dbr->tableNames( 'cur', 'categorylinks' ) );
37 return "SELECT 'Uncategorizedpages' as type, cur_namespace AS namespace, cur_title AS title, cur_title AS value " .
38 "FROM $cur LEFT JOIN $categorylinks ON cur_id=cl_from ".
39 "WHERE cl_from IS NULL AND cur_namespace=0 AND cur_is_redirect=0";
46 function wfSpecialUncategorizedpages() {
47 list( $limit, $offset ) = wfCheckLimits();
49 $lpp = new UncategorizedPagesPage();
51 return $lpp->doQuery( $offset, $limit );