Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 10 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
SpecialMostRevisions | |
0.00% |
0 / 9 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
2 | |||
sortDescending | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getGroupName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | /** |
3 | * Copyright © 2005 Ævar Arnfjörð Bjarmason |
4 | * |
5 | * This program is free software; you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by |
7 | * the Free Software Foundation; either version 2 of the License, or |
8 | * (at your option) any later version. |
9 | * |
10 | * This program is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * GNU General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU General Public License along |
16 | * with this program; if not, write to the Free Software Foundation, Inc., |
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
18 | * http://www.gnu.org/copyleft/gpl.html |
19 | * |
20 | * @file |
21 | */ |
22 | |
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 | |
30 | /** |
31 | * Implements Special:Mostrevisions |
32 | * |
33 | * @ingroup SpecialPage |
34 | * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com> |
35 | */ |
36 | class SpecialMostRevisions extends SpecialFewestRevisions { |
37 | |
38 | /** |
39 | * @param NamespaceInfo $namespaceInfo |
40 | * @param IConnectionProvider $dbProvider |
41 | * @param LinkBatchFactory $linkBatchFactory |
42 | * @param LanguageConverterFactory $languageConverterFactory |
43 | */ |
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 | |
68 | /** |
69 | * Retain the old class name for backwards compatibility. |
70 | * @deprecated since 1.41 |
71 | */ |
72 | class_alias( SpecialMostRevisions::class, 'SpecialMostRevisions' ); |