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;
7
22 public function __construct( TranslationStatsGraphOptions $opts );
23
35 public function preQuery( &$tables, &$fields, &$conds, &$type, &$options, &$joins, $start, $end );
36
43 public function indexOf( $row );
44
51 public function labels();
52
58 public function getTimestamp( $row );
59
65 public function getDateFormat();
66}
__construct(TranslationStatsGraphOptions $opts)
Constructor.
preQuery(&$tables, &$fields, &$conds, &$type, &$options, &$joins, $start, $end)
Query details that the graph must fill.
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.