Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
TranslationStatsInterface.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\Statistics;
5
6use stdClass;
7use Wikimedia\Rdbms\IDatabase;
8
23 public function __construct( TranslationStatsGraphOptions $opts );
24
37 public function preQuery(
38 IDatabase $database,
39 &$tables,
40 &$fields,
41 &$conds,
42 &$type,
43 &$options,
44 &$joins,
45 $start,
46 $end
47 );
48
55 public function indexOf( $row );
56
63 public function labels();
64
70 public function getTimestamp( $row );
71
77 public function getDateFormat();
78}
preQuery(IDatabase $database, &$tables, &$fields, &$conds, &$type, &$options, &$joins, $start, $end)
Query details that the graph must fill.
__construct(TranslationStatsGraphOptions $opts)
Constructor.
labels()
Return the names of the variables being measured.
getTimestamp( $row)
Return the timestamp associated with this result row.
indexOf( $row)
Return the indexes which this result contributes to.