Provides some hand default implementations for TranslationStatsInterface. More...
Public Member Functions | |
__construct (TranslationStatsGraphOptions $opts) | |
Constructor. | |
indexOf ( $row) | |
Return the indexes which this result contributes to. | |
labels () | |
Return the names of the variables being measured. | |
getDateFormat () | |
Return time formatting string. | |
Public Member Functions inherited from MediaWiki\Extension\Translate\Statistics\TranslationStatsInterface | |
preQuery (&$tables, &$fields, &$conds, &$type, &$options, &$joins, $start, $end) | |
Query details that the graph must fill. | |
getTimestamp ( $row) | |
Return the timestamp associated with this result row. | |
Static Protected Member Functions | |
static | makeTimeCondition ( $field, $start, $end) |
static | namespacesFromGroups ( $groupIds) |
Protected Attributes | |
$opts | |
Provides some hand default implementations for TranslationStatsInterface.
@license GPL-2.0-or-later
Definition at line 14 of file TranslationStatsBase.php.
MediaWiki\Extension\Translate\Statistics\TranslationStatsBase::__construct | ( | TranslationStatsGraphOptions | $opts | ) |
Constructor.
The implementation can access the graph options, but not define new ones.
TranslationStatsGraphOptions | $opts |
Implements MediaWiki\Extension\Translate\Statistics\TranslationStatsInterface.
Reimplemented in MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.
Definition at line 18 of file TranslationStatsBase.php.
MediaWiki\Extension\Translate\Statistics\TranslationStatsBase::getDateFormat | ( | ) |
Return time formatting string.
Implements MediaWiki\Extension\Translate\Statistics\TranslationStatsInterface.
Definition at line 30 of file TranslationStatsBase.php.
MediaWiki\Extension\Translate\Statistics\TranslationStatsBase::indexOf | ( | $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 |
Implements MediaWiki\Extension\Translate\Statistics\TranslationStatsInterface.
Reimplemented in MediaWiki\Extension\Translate\Statistics\ReviewPerLanguageStats, and MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.
Definition at line 22 of file TranslationStatsBase.php.
MediaWiki\Extension\Translate\Statistics\TranslationStatsBase::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.
Implements MediaWiki\Extension\Translate\Statistics\TranslationStatsInterface.
Reimplemented in MediaWiki\Extension\Translate\Statistics\ReviewPerLanguageStats, and MediaWiki\Extension\Translate\Statistics\TranslatePerLanguageStats.
Definition at line 26 of file TranslationStatsBase.php.
|
staticprotected |
Definition at line 46 of file TranslationStatsBase.php.
|
staticprotected |
array | $groupIds |
Definition at line 65 of file TranslationStatsBase.php.
|
protected |
Definition at line 16 of file TranslationStatsBase.php.