blob: aca7506b8b27f658c9ad57f81c56821c4c5e4fd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Translate\Statistics;
/**
* Graph which provides statistics about amount of registered users in a given time.
* @ingroup Stats
* @license GPL-2.0-or-later
* @since 2010.07
*/
class TranslateRegistrationStats extends TranslationStatsBase {
public function preQuery( &$tables, &$fields, &$conds, &$type, &$options, &$joins, $start, $end ) {
$tables = 'user';
$fields = 'user_registration';
$conds = self::makeTimeCondition( 'user_registration', $start, $end );
$type .= '-registration';
$options = [];
$joins = [];
}
public function getTimestamp( $row ) {
return $row->user_registration;
}
}
class_alias( TranslateRegistrationStats::class, '\MediaWiki\Extensions\Translate\TranslateRegistrationStats' );
|