MediaWiki
master
SpecialMostRevisions.php
Go to the documentation of this file.
1
<?php
23
namespace
MediaWiki\Specials
;
24
25
use
MediaWiki\Cache\LinkBatchFactory
;
26
use
MediaWiki\Languages\LanguageConverterFactory
;
27
use
MediaWiki\Title\NamespaceInfo
;
28
use
Wikimedia\Rdbms\IConnectionProvider
;
29
36
class
SpecialMostRevisions
extends
SpecialFewestRevisions
{
37
44
public
function
__construct
(
45
NamespaceInfo
$namespaceInfo,
46
IConnectionProvider
$dbProvider,
47
LinkBatchFactory
$linkBatchFactory,
48
LanguageConverterFactory
$languageConverterFactory
49
) {
50
parent::__construct(
51
$namespaceInfo,
52
$dbProvider,
53
$linkBatchFactory,
54
$languageConverterFactory
55
);
56
$this->mName =
'Mostrevisions'
;
57
}
58
59
protected
function
sortDescending
() {
60
return
true
;
61
}
62
63
protected
function
getGroupName
() {
64
return
'highuse'
;
65
}
66
}
67
72
class_alias( SpecialMostRevisions::class,
'SpecialMostRevisions'
);
MediaWiki\Cache\LinkBatchFactory
Definition
LinkBatchFactory.php:38
MediaWiki\Languages\LanguageConverterFactory
An interface for creating language converters.
Definition
LanguageConverterFactory.php:53
MediaWiki\Specials\SpecialFewestRevisions
List articles with the fewest revisions.
Definition
SpecialFewestRevisions.php:44
MediaWiki\Specials\SpecialMostRevisions
Implements Special:Mostrevisions.
Definition
SpecialMostRevisions.php:36
MediaWiki\Specials\SpecialMostRevisions\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition
SpecialMostRevisions.php:63
MediaWiki\Specials\SpecialMostRevisions\__construct
__construct(NamespaceInfo $namespaceInfo, IConnectionProvider $dbProvider, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory)
Definition
SpecialMostRevisions.php:44
MediaWiki\Specials\SpecialMostRevisions\sortDescending
sortDescending()
Override to sort by increasing values.
Definition
SpecialMostRevisions.php:59
MediaWiki\Title\NamespaceInfo
This is a utility class for dealing with namespaces that encodes all the "magic" behaviors of them ba...
Definition
NamespaceInfo.php:39
Wikimedia\Rdbms\IConnectionProvider
Provide primary and replica IDatabase connections.
Definition
IConnectionProvider.php:35
MediaWiki\Specials
includes
specials
SpecialMostRevisions.php
Generated on Thu Oct 3 2024 10:26:25 for MediaWiki by
1.10.0