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() {
33 $dbr =& wfGetDB( DB_SLAVE
);
34 extract( $dbr->tableNames( 'cur', 'categorylinks' ) );
36 return "SELECT 'Uncategorizedpages' as type, cur_namespace AS namespace, cur_title AS title, cur_title AS value " .
37 "FROM $cur LEFT JOIN $categorylinks ON cur_id=cl_from ".
38 "WHERE cl_from IS NULL AND cur_namespace=0 AND cur_is_redirect=0";
45 function wfSpecialUncategorizedpages() {
46 list( $limit, $offset ) = wfCheckLimits();
48 $lpp = new UncategorizedPagesPage();
50 return $lpp->doQuery( $offset, $limit );