Provides some hand default implementations for TranslationStatsInterface. More...
Public Member Functions | |
__construct (TranslationStatsGraphOptions $opts) | |
Constructor. | |
indexOf (stdClass $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 | |
createQueryBuilder (IReadableDatabase $database, string $caller) | |
Return the SelectQueryBuilder to fetch the data needed for the graph. | |
getTimestampColumn () | |
Return the name of the timestamp column to be queried. | |
Static Protected Member Functions | |
static | namespacesFromGroups ( $groupIds) |
Protected Attributes | |
TranslationStatsGraphOptions | $opts |
Provides some hand default implementations for TranslationStatsInterface.
@license GPL-2.0-or-later
Definition at line 15 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 | ( | 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 |
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 |
array | $groupIds |
Definition at line 51 of file TranslationStatsBase.php.
|
protected |
Definition at line 16 of file TranslationStatsBase.php.