4 * @addtogroup SpecialPage
8 * A special page looking for page without any category.
9 * @addtogroup SpecialPage
11 class UncategorizedPagesPage
extends PageQueryPage
{
12 var $requestedNamespace = NS_MAIN
;
15 return "Uncategorizedpages";
18 function sortDescending() {
22 function isExpensive() {
25 function isSyndicated() { return false; }
28 $dbr = wfGetDB( DB_SLAVE
);
29 list( $page, $categorylinks ) = $dbr->tableNamesN( 'page', 'categorylinks' );
30 $name = $dbr->addQuotes( $this->getName() );
36 page_namespace AS namespace,
40 LEFT JOIN $categorylinks ON page_id=cl_from
41 WHERE cl_from IS NULL AND page_namespace={$this->requestedNamespace} AND page_is_redirect=0
49 function wfSpecialUncategorizedpages() {
50 list( $limit, $offset ) = wfCheckLimits();
52 $lpp = new UncategorizedPagesPage();
54 return $lpp->doQuery( $offset, $limit );