5 * @subpackage SpecialPage
11 * @subpackage SpecialPage
13 class UncategorizedPagesPage
extends PageQueryPage
{
14 var $requestedNamespace = NS_MAIN
;
17 return "Uncategorizedpages";
20 function sortDescending() {
24 function isExpensive() {
27 function isSyndicated() { return false; }
30 $dbr =& wfGetDB( DB_SLAVE
);
31 extract( $dbr->tableNames( 'page', 'categorylinks' ) );
32 $name = $dbr->addQuotes( $this->getName() );
38 page_namespace AS namespace,
42 LEFT JOIN $categorylinks ON page_id=cl_from
43 WHERE cl_from IS NULL AND page_namespace={$this->requestedNamespace} AND page_is_redirect=0
51 function wfSpecialUncategorizedpages() {
52 list( $limit, $offset ) = wfCheckLimits();
54 $lpp = new UncategorizedPagesPage();
56 return $lpp->doQuery( $offset, $limit );