MediaWiki  1.23.15
SpecialUncategorizedpages.php
Go to the documentation of this file.
1 <?php
31  protected $requestedNamespace = false;
32 
33  function __construct( $name = 'Uncategorizedpages' ) {
34  parent::__construct( $name );
35  }
36 
37  function sortDescending() {
38  return false;
39  }
40 
41  function isExpensive() {
42  return true;
43  }
44 
45  function isSyndicated() {
46  return false;
47  }
48 
49  function getQueryInfo() {
50  return array(
51  'tables' => array( 'page', 'categorylinks' ),
52  'fields' => array(
53  'namespace' => 'page_namespace',
54  'title' => 'page_title',
55  'value' => 'page_title'
56  ),
57  // default for page_namespace is all content namespaces (if requestedNamespace is false)
58  // otherwise, page_namespace is requestedNamespace
59  'conds' => array(
60  'cl_from IS NULL',
61  'page_namespace' => $this->requestedNamespace !== false
62  ? $this->requestedNamespace
64  'page_is_redirect' => 0
65  ),
66  'join_conds' => array(
67  'categorylinks' => array( 'LEFT JOIN', 'cl_from = page_id' )
68  )
69  );
70  }
71 
72  function getOrderFields() {
73  // For some crazy reason ordering by a constant
74  // causes a filesort
75  if ( $this->requestedNamespace === false && count( MWNamespace::getContentNamespaces() ) > 1 ) {
76  return array( 'page_namespace', 'page_title' );
77  }
78 
79  return array( 'page_title' );
80  }
81 
82  protected function getGroupName() {
83  return 'maintenance';
84  }
85 }
UncategorizedPagesPage\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition: SpecialUncategorizedpages.php:82
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
UncategorizedPagesPage\__construct
__construct( $name='Uncategorizedpages')
Definition: SpecialUncategorizedpages.php:33
UncategorizedPagesPage\getOrderFields
getOrderFields()
Subclasses return an array of fields to order by here.
Definition: SpecialUncategorizedpages.php:72
MWNamespace\getContentNamespaces
static getContentNamespaces()
Get a list of all namespace indices which are considered to contain content.
Definition: Namespace.php:334
PageQueryPage
Variant of QueryPage which formats the result as a simple link to the page.
Definition: PageQueryPage.php:29
UncategorizedPagesPage\isSyndicated
isSyndicated()
Sometime we don't want to build rss / atom feeds.
Definition: SpecialUncategorizedpages.php:45
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
UncategorizedPagesPage\isExpensive
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
Definition: SpecialUncategorizedpages.php:41
UncategorizedPagesPage\getQueryInfo
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
Definition: SpecialUncategorizedpages.php:49
UncategorizedPagesPage\sortDescending
sortDescending()
Override to sort by increasing values.
Definition: SpecialUncategorizedpages.php:37
UncategorizedPagesPage\$requestedNamespace
$requestedNamespace
Definition: SpecialUncategorizedpages.php:31
UncategorizedPagesPage
A special page looking for page without any category.
Definition: SpecialUncategorizedpages.php:30