MediaWiki
REL1_41
SpecialMostRevisions.php
Go to the documentation of this file.
1
<?php
27
namespace
MediaWiki\Specials
;
28
29
use
MediaWiki\Cache\LinkBatchFactory
;
30
use
MediaWiki\Languages\LanguageConverterFactory
;
31
use
MediaWiki\Title\NamespaceInfo
;
32
use
Wikimedia\Rdbms\IConnectionProvider
;
33
34
class
SpecialMostRevisions
extends
SpecialFewestRevisions
{
35
42
public
function
__construct
(
43
NamespaceInfo
$namespaceInfo,
44
IConnectionProvider
$dbProvider,
45
LinkBatchFactory
$linkBatchFactory,
46
LanguageConverterFactory
$languageConverterFactory
47
) {
48
parent::__construct(
49
$namespaceInfo,
50
$dbProvider,
51
$linkBatchFactory,
52
$languageConverterFactory
53
);
54
$this->mName =
'Mostrevisions'
;
55
}
56
57
protected
function
sortDescending
() {
58
return
true
;
59
}
60
61
protected
function
getGroupName
() {
62
return
'highuse'
;
63
}
64
}
65
70
class_alias( SpecialMostRevisions::class,
'SpecialMostRevisions'
);
MediaWiki\Cache\LinkBatchFactory
Definition
LinkBatchFactory.php:41
MediaWiki\Languages\LanguageConverterFactory
An interface for creating language converters.
Definition
LanguageConverterFactory.php:50
MediaWiki\Specials\SpecialFewestRevisions
Special page for listing the articles with the fewest revisions.
Definition
SpecialFewestRevisions.php:47
MediaWiki\Specials\SpecialMostRevisions
Definition
SpecialMostRevisions.php:34
MediaWiki\Specials\SpecialMostRevisions\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition
SpecialMostRevisions.php:61
MediaWiki\Specials\SpecialMostRevisions\__construct
__construct(NamespaceInfo $namespaceInfo, IConnectionProvider $dbProvider, LinkBatchFactory $linkBatchFactory, LanguageConverterFactory $languageConverterFactory)
Definition
SpecialMostRevisions.php:42
MediaWiki\Specials\SpecialMostRevisions\sortDescending
sortDescending()
Override to sort by increasing values.
Definition
SpecialMostRevisions.php:57
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
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
includes
specials
SpecialMostRevisions.php
Generated on Wed Nov 27 2024 07:25:29 for MediaWiki by
1.10.0