Provides some hand default implementations for TranslationStatsInterface. More...
Public Member Functions | |
__construct (FormOptions $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. | |
Static Protected Member Functions | |
static | makeTimeCondition ($field, $start, $end) |
static | namespacesFromGroups ($groupIds) |
Protected Attributes | |
$opts |
Provides some hand default implementations for TranslationStatsInterface.
Definition at line 746 of file SpecialTranslationStats.php.
TranslationStatsBase::__construct | ( | FormOptions $ | opts | ) |
Constructor.
The implementation can access the graph options, but not define new ones.
FormOptions | $opts |
Implements TranslationStatsInterface.
Reimplemented in TranslatePerLanguageStats.
Definition at line 752 of file SpecialTranslationStats.php.
TranslationStatsBase::getDateFormat | ( | ) |
Return time formatting string.
Implements TranslationStatsInterface.
Definition at line 764 of file SpecialTranslationStats.php.
Referenced by TranslatePerLanguageStats::formatTimestamp().
TranslationStatsBase::indexOf | ( | $ | row | ) |
Return the indexes which this result contributes to.
Return 'all' if only one variable is measured. Return false if none.
array | $row Database Result Row |
Implements TranslationStatsInterface.
Reimplemented in TranslatePerLanguageStats, and ReviewPerLanguageStats.
Definition at line 756 of file SpecialTranslationStats.php.
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 TranslationStatsInterface.
Reimplemented in TranslatePerLanguageStats, and ReviewPerLanguageStats.
Definition at line 760 of file SpecialTranslationStats.php.
static TranslationStatsBase::makeTimeCondition | ( | $ | field, | |
$ | start, | |||
$ | end | |||
) | [static, protected] |
Definition at line 777 of file SpecialTranslationStats.php.
Referenced by ReviewPerLanguageStats::preQuery(), TranslateRegistrationStats::preQuery(), and TranslatePerLanguageStats::preQuery().
static TranslationStatsBase::namespacesFromGroups | ( | $ | groupIds | ) | [static, protected] |
Definition at line 792 of file SpecialTranslationStats.php.
Referenced by ReviewPerLanguageStats::preQuery(), and TranslatePerLanguageStats::preQuery().
TranslationStatsBase::$opts [protected] |
Definition at line 750 of file SpecialTranslationStats.php.