A base module for querying message group related stats. More...
Public Member Functions | |
__construct (ApiQuery $queryModule, string $moduleName, string $paramPrefix, JobQueueGroup $jobQueueGroup) | |
getCacheMode ( $params) | |
execute () | |
Protected Member Functions | |
validateTargetParamater (array $params) | |
Implement this to implement input validation and return the name of the target that is then given to loadStats. | |
loadStatistics (string $target, int $flags=0) | |
Implement this to load stats. | |
makeStatsItem (string $item, array $stats) | |
Implement this to load each individual stat item. | |
makeItem (array $stats) | |
getCacheRebuildJob (string $target) | |
getAllowedParams () | |
A base module for querying message group related stats.
Definition at line 23 of file QueryStatsActionApi.php.
MediaWiki\Extension\Translate\Statistics\QueryStatsActionApi::__construct | ( | ApiQuery | $queryModule, |
string | $moduleName, | ||
string | $paramPrefix, | ||
JobQueueGroup | $jobQueueGroup ) |
Definition at line 27 of file QueryStatsActionApi.php.
MediaWiki\Extension\Translate\Statistics\QueryStatsActionApi::execute | ( | ) |
Reimplemented in MediaWiki\Extension\Translate\Statistics\QueryMessageGroupStatsActionApi.
Definition at line 58 of file QueryStatsActionApi.php.
|
protected |
Reimplemented in MediaWiki\Extension\Translate\Statistics\QueryLanguageStatsActionApi, and MediaWiki\Extension\Translate\Statistics\QueryMessageGroupStatsActionApi.
Definition at line 105 of file QueryStatsActionApi.php.
MediaWiki\Extension\Translate\Statistics\QueryStatsActionApi::getCacheMode | ( | $params | ) |
Definition at line 37 of file QueryStatsActionApi.php.
|
abstractprotected |
|
abstractprotected |
Implement this to load stats.
string | $target | |
int | $flags | See MessageGroupStats for possible flags |
Reimplemented in MediaWiki\Extension\Translate\Statistics\QueryLanguageStatsActionApi, and MediaWiki\Extension\Translate\Statistics\QueryMessageGroupStatsActionApi.
|
protected |
Definition at line 94 of file QueryStatsActionApi.php.
|
abstractprotected |
Implement this to load each individual stat item.
Reimplemented in MediaWiki\Extension\Translate\Statistics\QueryLanguageStatsActionApi, and MediaWiki\Extension\Translate\Statistics\QueryMessageGroupStatsActionApi.
|
abstractprotected |
Implement this to implement input validation and return the name of the target that is then given to loadStats.
Reimplemented in MediaWiki\Extension\Translate\Statistics\QueryLanguageStatsActionApi, and MediaWiki\Extension\Translate\Statistics\QueryMessageGroupStatsActionApi.