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