Graph which provides statistics on number of reviews and reviewers. More...
Public Member Functions | |
createQueryBuilder (IReadableDatabase $database, string $caller) | |
Return the SelectQueryBuilder to fetch the data needed for the graph. | |
indexOf (stdClass $row) | |
Return the indexes which this result contributes to. | |
labels () | |
Return the names of the variables being measured. | |
getTimestampColumn () | |
Return the name of the timestamp column to be queried. | |
Public Member Functions inherited from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats | |
__construct (TranslationStatsGraphOptions $opts) | |
Constructor. | |
Public Member Functions inherited from MediaWiki\Extension\Translate\Statistics\TranslationStatsBase | |
getDateFormat () | |
Return time formatting string. | |
Additional Inherited Members | |
Protected Member Functions inherited from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats | |
makeLabel ( $group, $code) | |
Makes a label for variable. | |
combineTwoArrays ( $groups, $codes) | |
Cross-product of two lists with string results, where either list can be empty. | |
formatTimestamp ( $timestamp) | |
Returns unique index for given item in the scale being used. | |
Static Protected Member Functions inherited from MediaWiki\Extension\Translate\Statistics\TranslationStatsBase | |
static | namespacesFromGroups ( $groupIds) |
Protected Attributes inherited from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats | |
array | $seenUsers = [] |
array | $groups = [] |
MessageIndex | $messageIndex |
Protected Attributes inherited from MediaWiki\Extension\Translate\Statistics\TranslationStatsBase | |
TranslationStatsGraphOptions | $opts |
Graph which provides statistics on number of reviews and reviewers.
@license GPL-2.0-or-later
Definition at line 17 of file ReviewPerLanguageStats.php.
MediaWiki\Extension\Translate\Statistics\ReviewPerLanguageStats::createQueryBuilder | ( | IReadableDatabase | $database, |
string | $caller ) |
Return the SelectQueryBuilder to fetch the data needed for the graph.
An additional condition with the cutoff timestamp(s) will be added to the returned query builder.
IReadableDatabase | $database | |
string | $caller | Appended with the graph type and passed to ->caller() (used to identify queries). |
Reimplemented from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.
Definition at line 18 of file ReviewPerLanguageStats.php.
MediaWiki\Extension\Translate\Statistics\ReviewPerLanguageStats::getTimestampColumn | ( | ) |
Return the name of the timestamp column to be queried.
Reimplemented from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.
Definition at line 106 of file ReviewPerLanguageStats.php.
MediaWiki\Extension\Translate\Statistics\ReviewPerLanguageStats::indexOf | ( | stdClass | $row | ) |
Return the indexes which this result contributes to.
Return 'all' if only one variable is measured. Return false if none.
stdClass | $row | Database Result Row |
Reimplemented from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.
Definition at line 61 of file ReviewPerLanguageStats.php.
MediaWiki\Extension\Translate\Statistics\ReviewPerLanguageStats::labels | ( | ) |
Return the names of the variables being measured.
Return 'all' if only one variable is measured. Must match indexes returned by indexOf() and contain them all.
Reimplemented from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.
Definition at line 102 of file ReviewPerLanguageStats.php.