MediaWiki master
SpecialLongPages.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Specials;
8
12
19
20 public function __construct(
21 NamespaceInfo $namespaceInfo,
22 IConnectionProvider $dbProvider,
23 LinkBatchFactory $linkBatchFactory
24 ) {
25 parent::__construct(
26 $namespaceInfo,
27 $dbProvider,
28 $linkBatchFactory
29 );
30 $this->mName = 'Longpages';
31 }
32
34 protected function sortDescending() {
35 return true;
36 }
37
39 protected function getGroupName() {
40 return 'maintenance';
41 }
42}
43
45class_alias( SpecialLongPages::class, 'SpecialLongPages' );
Factory for LinkBatch objects to batch query page metadata.
Implements Special:Longpages.
sortDescending()
Override to sort by increasing values.to override bool
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
__construct(NamespaceInfo $namespaceInfo, IConnectionProvider $dbProvider, LinkBatchFactory $linkBatchFactory)
List of the shortest pages in the database.
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
Provide primary and replica IDatabase connections.