Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Statistics\ReviewPerLanguageStats Class Reference

Graph which provides statistics on number of reviews and reviewers. More...

Inheritance diagram for MediaWiki\Extension\Translate\Statistics\ReviewPerLanguageStats:
MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats MediaWiki\Extension\Translate\Statistics\TranslationStatsBase MediaWiki\Extension\Translate\Statistics\TranslationStatsInterface

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
 

Detailed Description

Graph which provides statistics on number of reviews and reviewers.

@license GPL-2.0-or-later

Since
2012.03

Definition at line 17 of file ReviewPerLanguageStats.php.

Member Function Documentation

◆ createQueryBuilder()

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.

Parameters
IReadableDatabase$database
string$callerAppended 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.

◆ getTimestampColumn()

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.

◆ indexOf()

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.

Parameters
stdClass$rowDatabase Result Row
Returns
?array

Reimplemented from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.

Definition at line 61 of file ReviewPerLanguageStats.php.

◆ labels()

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.

Returns
string[]

Reimplemented from MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.

Definition at line 102 of file ReviewPerLanguageStats.php.


The documentation for this class was generated from the following file: