MediaWiki  1.23.15
SpecialDeadendpages.php
Go to the documentation of this file.
1 <?php
30 
31  function __construct( $name = 'Deadendpages' ) {
32  parent::__construct( $name );
33  }
34 
35  function getPageHeader() {
36  return $this->msg( 'deadendpagestext' )->parseAsBlock();
37  }
38 
44  function isExpensive() {
45  return true;
46  }
47 
48  function isSyndicated() {
49  return false;
50  }
51 
55  function sortDescending() {
56  return false;
57  }
58 
59  function getQueryInfo() {
60  return array(
61  'tables' => array( 'page', 'pagelinks' ),
62  'fields' => array(
63  'namespace' => 'page_namespace',
64  'title' => 'page_title',
65  'value' => 'page_title'
66  ),
67  'conds' => array(
68  'pl_from IS NULL',
69  'page_namespace' => MWNamespace::getContentNamespaces(),
70  'page_is_redirect' => 0
71  ),
72  'join_conds' => array(
73  'pagelinks' => array(
74  'LEFT JOIN',
75  array( 'page_id=pl_from' )
76  )
77  )
78  );
79  }
80 
81  function getOrderFields() {
82  // For some crazy reason ordering by a constant
83  // causes a filesort
84  if ( count( MWNamespace::getContentNamespaces() ) > 1 ) {
85  return array( 'page_namespace', 'page_title' );
86  } else {
87  return array( 'page_title' );
88  }
89  }
90 
91  protected function getGroupName() {
92  return 'maintenance';
93  }
94 }
DeadendPagesPage
A special page that list pages that contain no link to other pages.
Definition: SpecialDeadendpages.php:29
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
DeadendPagesPage\sortDescending
sortDescending()
Definition: SpecialDeadendpages.php:55
DeadendPagesPage\getOrderFields
getOrderFields()
Subclasses return an array of fields to order by here.
Definition: SpecialDeadendpages.php:81
MWNamespace\getContentNamespaces
static getContentNamespaces()
Get a list of all namespace indices which are considered to contain content.
Definition: Namespace.php:334
DeadendPagesPage\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition: SpecialDeadendpages.php:91
DeadendPagesPage\isExpensive
isExpensive()
LEFT JOIN is expensive.
Definition: SpecialDeadendpages.php:44
PageQueryPage
Variant of QueryPage which formats the result as a simple link to the page.
Definition: PageQueryPage.php:29
DeadendPagesPage\__construct
__construct( $name='Deadendpages')
Definition: SpecialDeadendpages.php:31
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
DeadendPagesPage\isSyndicated
isSyndicated()
Sometime we don't want to build rss / atom feeds.
Definition: SpecialDeadendpages.php:48
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
SpecialPage\msg
msg()
Wrapper around wfMessage that sets the current context.
Definition: SpecialPage.php:609
DeadendPagesPage\getQueryInfo
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
Definition: SpecialDeadendpages.php:59
DeadendPagesPage\getPageHeader
getPageHeader()
The content returned by this function will be output before any result.
Definition: SpecialDeadendpages.php:35