Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
TranslateRegistrationStats | |
0.00% |
0 / 7 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
preQuery | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |||
getTimestamp | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\Extension\Translate\Statistics; |
5 | |
6 | use Wikimedia\Rdbms\IDatabase; |
7 | |
8 | /** |
9 | * Graph which provides statistics about amount of registered users in a given time. |
10 | * @ingroup Stats |
11 | * @license GPL-2.0-or-later |
12 | * @since 2010.07 |
13 | */ |
14 | class TranslateRegistrationStats extends TranslationStatsBase { |
15 | public function preQuery( |
16 | IDatabase $database, |
17 | &$tables, |
18 | &$fields, |
19 | &$conds, |
20 | &$type, |
21 | &$options, |
22 | &$joins, |
23 | $start, |
24 | $end |
25 | ) { |
26 | $tables = 'user'; |
27 | $fields = 'user_registration'; |
28 | $conds = self::makeTimeCondition( $database, 'user_registration', $start, $end ); |
29 | $type .= '-registration'; |
30 | $options = []; |
31 | $joins = []; |
32 | } |
33 | |
34 | public function getTimestamp( $row ) { |
35 | return $row->user_registration; |
36 | } |
37 | } |