split prefs-help-userdata to prefs-help-realname & prefs-help-email. Nds still need...
[lhc/web/wiklou.git] / includes / SpecialUncategorizedpages.php
1 <?php
2 /**
3 *
4 * @package MediaWiki
5 * @subpackage SpecialPage
6 */
7
8 /**
9 *
10 */
11 require_once( "QueryPage.php" );
12
13 /**
14 *
15 * @package MediaWiki
16 * @subpackage SpecialPage
17 */
18 class UncategorizedPagesPage extends PageQueryPage {
19 var $requestedNamespace = NS_MAIN;
20
21 function getName() {
22 return "Uncategorizedpages";
23 }
24
25 function sortDescending() {
26 return false;
27 }
28
29 function isExpensive() {
30 return true;
31 }
32 function isSyndicated() { return false; }
33
34 function getSQL() {
35 $dbr =& wfGetDB( DB_SLAVE );
36 extract( $dbr->tableNames( 'page', 'categorylinks' ) );
37
38 return "SELECT 'Uncategorizedpages' as type, page_namespace AS namespace, page_title AS title, page_title AS value " .
39 "FROM $page LEFT JOIN $categorylinks ON page_id=cl_from ".
40 "WHERE cl_from IS NULL AND page_namespace=$this->requestedNamespace AND page_is_redirect=0";
41 }
42 }
43
44 /**
45 * constructor
46 */
47 function wfSpecialUncategorizedpages() {
48 list( $limit, $offset ) = wfCheckLimits();
49
50 $lpp = new UncategorizedPagesPage();
51
52 return $lpp->doQuery( $offset, $limit );
53 }
54
55 ?>