Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
SvnRevStatusTablePager | |
0.00% |
0 / 7 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getQueryInfo | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
getTitle | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\CodeReview\UI; |
4 | |
5 | use SpecialPage; |
6 | |
7 | class SvnRevStatusTablePager extends SvnRevTablePager { |
8 | public function __construct( $view, $status ) { |
9 | parent::__construct( $view ); |
10 | $this->mStatus = $status; |
11 | } |
12 | |
13 | public function getQueryInfo() { |
14 | $info = parent::getQueryInfo(); |
15 | // FIXME: normalize input? |
16 | $info['conds']['cr_status'] = $this->mStatus; |
17 | return $info; |
18 | } |
19 | |
20 | public function getTitle() { |
21 | $repo = $this->mRepo->getName(); |
22 | return SpecialPage::getTitleFor( 'Code', "$repo/status/$this->mStatus" ); |
23 | } |
24 | } |