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

Job for rebuilding message group stats. More...

Inheritance diagram for MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob:
MediaWiki\Extension\Translate\Jobs\GenericTranslateJob

Public Member Functions

 __construct (array $params=[])
 
 run ()
 

Static Public Member Functions

static newJob (array $params)
 
static newRefreshGroupsJob (array $messageGroupIds)
 Force updating of message group stats for given groups.
 

Public Attributes

const GROUP_ID = 'groupid'
 
const LANGUAGE_CODE = 'languagecode'
 
const CLEAR_GROUPS = 'cleargroups'
 
const REFRESH = 'purge'
 

Protected Attributes

 $removeDuplicates = true
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\Extension\Translate\Jobs\GenericTranslateJob
 logDebug (string $msg, array $context=[])
 
 logInfo (string $msg, array $context=[])
 
 logNotice (string $msg, array $context=[])
 
 logWarning (string $msg, array $context=[])
 
 logError (string $msg, array $context=[])
 

Detailed Description

Job for rebuilding message group stats.

Author
Niklas Laxström @license GPL-2.0-or-later

Definition at line 19 of file RebuildMessageGroupStatsJob.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::__construct ( array $params = [])

Definition at line 44 of file RebuildMessageGroupStatsJob.php.

Member Function Documentation

◆ newJob()

static MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::newJob ( array $params)
static

Definition at line 27 of file RebuildMessageGroupStatsJob.php.

◆ newRefreshGroupsJob()

static MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::newRefreshGroupsJob ( array $messageGroupIds)
static

Force updating of message group stats for given groups.

This uses cache for groups not given. If given groups have dependencies such as an aggregate group and it's subgroup, this attempts to take care of it so that no duplicate work is done.

Parameters
string[]$messageGroupIds

Definition at line 40 of file RebuildMessageGroupStatsJob.php.

◆ run()

MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::run ( )

Definition at line 48 of file RebuildMessageGroupStatsJob.php.

Member Data Documentation

◆ $removeDuplicates

MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::$removeDuplicates = true
protected

Definition at line 25 of file RebuildMessageGroupStatsJob.php.

◆ CLEAR_GROUPS

const MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::CLEAR_GROUPS = 'cleargroups'

Definition at line 22 of file RebuildMessageGroupStatsJob.php.

◆ GROUP_ID

const MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::GROUP_ID = 'groupid'

Definition at line 20 of file RebuildMessageGroupStatsJob.php.

◆ LANGUAGE_CODE

const MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::LANGUAGE_CODE = 'languagecode'

Definition at line 21 of file RebuildMessageGroupStatsJob.php.

◆ REFRESH

const MediaWiki\Extension\Translate\Statistics\RebuildMessageGroupStatsJob::REFRESH = 'purge'

Definition at line 23 of file RebuildMessageGroupStatsJob.php.


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