b8d2cd9bc62dfac2d7083a294c72b40329906e08
5 * @subpackage SpecialPage
11 require_once( "QueryPage.php" );
16 * @subpackage SpecialPage
18 class UncategorizedPagesPage
extends PageQueryPage
{
19 var $requestedNamespace = 0;
22 return "Uncategorizedpages";
25 function sortDescending() {
29 function isExpensive() {
32 function isSyndicated() { return false; }
35 $dbr =& wfGetDB( DB_SLAVE
);
36 extract( $dbr->tableNames( 'cur', 'categorylinks' ) );
38 return "SELECT 'Uncategorizedpages' as type, cur_namespace AS namespace, cur_title AS title, cur_title AS value " .
39 "FROM $cur LEFT JOIN $categorylinks ON cur_id=cl_from ".
40 "WHERE cl_from IS NULL AND cur_namespace=$this->requestedNamespace AND cur_is_redirect=0";
47 function wfSpecialUncategorizedpages() {
48 list( $limit, $offset ) = wfCheckLimits();
50 $lpp = new UncategorizedPagesPage();
52 return $lpp->doQuery( $offset, $limit );