Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
TranslateRegistrationStats.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\Statistics;
5
13 public function preQuery( &$tables, &$fields, &$conds, &$type, &$options, &$joins, $start, $end ) {
14 $tables = 'user';
15 $fields = 'user_registration';
16 $conds = self::makeTimeCondition( 'user_registration', $start, $end );
17 $type .= '-registration';
18 $options = [];
19 $joins = [];
20 }
21
22 public function getTimestamp( $row ) {
23 return $row->user_registration;
24 }
25}
Graph which provides statistics about amount of registered users in a given time.
getTimestamp( $row)
Return the timestamp associated with this result row.
preQuery(&$tables, &$fields, &$conds, &$type, &$options, &$joins, $start, $end)
Query details that the graph must fill.
Provides some hand default implementations for TranslationStatsInterface.