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 | * @license GPL-2.0-or-later |
| 6 | * @file |
| 7 | */ |
| 8 | |
| 9 | namespace MediaWiki\Specials; |
| 10 | |
| 11 | use MediaWiki\Languages\LanguageConverterFactory; |
| 12 | use MediaWiki\Page\LinkBatchFactory; |
| 13 | use MediaWiki\Title\NamespaceInfo; |
| 14 | use Wikimedia\Rdbms\IConnectionProvider; |
| 15 | |
| 16 | /** |
| 17 | * Implements Special:Mostrevisions |
| 18 | * |
| 19 | * @ingroup SpecialPage |
| 20 | * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com> |
| 21 | */ |
| 22 | class SpecialMostRevisions extends SpecialFewestRevisions { |
| 23 | |
| 24 | public function __construct( |
| 25 | NamespaceInfo $namespaceInfo, |
| 26 | IConnectionProvider $dbProvider, |
| 27 | LinkBatchFactory $linkBatchFactory, |
| 28 | LanguageConverterFactory $languageConverterFactory |
| 29 | ) { |
| 30 | parent::__construct( |
| 31 | $namespaceInfo, |
| 32 | $dbProvider, |
| 33 | $linkBatchFactory, |
| 34 | $languageConverterFactory |
| 35 | ); |
| 36 | $this->mName = 'Mostrevisions'; |
| 37 | } |
| 38 | |
| 39 | /** @inheritDoc */ |
| 40 | protected function sortDescending() { |
| 41 | return true; |
| 42 | } |
| 43 | |
| 44 | /** @inheritDoc */ |
| 45 | protected function getGroupName() { |
| 46 | return 'highuse'; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Retain the old class name for backwards compatibility. |
| 52 | * @deprecated since 1.41 |
| 53 | */ |
| 54 | class_alias( SpecialMostRevisions::class, 'SpecialMostRevisions' ); |