Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MessageGroupStatsRebuildJob Class Reference

Job for rebuilding message group stats. More...

Inheritance diagram for MessageGroupStatsRebuildJob:
MediaWiki\Extension\Translate\Jobs\GenericTranslateJob

Public Member Functions

 __construct ( $title, $params=[])
 
 run ()
 

Static Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\Extension\Translate\Jobs\GenericTranslateJob
 getLogger ()
 Returns a logger instance with the channel name.
 
 getLogPrefix ()
 
 logInfo ( $msg, $context=[])
 
 logDebug ( $msg, $context=[])
 
 logError ( $msg, $context=[])
 
 logWarning ( $msg, $context=[])
 
- Protected Attributes inherited from MediaWiki\Extension\Translate\Jobs\GenericTranslateJob
 $logger
 

Detailed Description

Job for rebuilding message group stats.

Definition at line 18 of file MessageGroupStatsRebuildJob.php.

Constructor & Destructor Documentation

◆ __construct()

MessageGroupStatsRebuildJob::__construct ( $title,
$params = [] )
Parameters
Title$title
array$params

Definition at line 46 of file MessageGroupStatsRebuildJob.php.

Member Function Documentation

◆ newJob()

static MessageGroupStatsRebuildJob::newJob ( $params)
static
Parameters
array$params
Returns
self

Definition at line 23 of file MessageGroupStatsRebuildJob.php.

◆ newRefreshGroupsJob()

static MessageGroupStatsRebuildJob::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
Returns
self

Definition at line 38 of file MessageGroupStatsRebuildJob.php.

◆ run()

MessageGroupStatsRebuildJob::run ( )

Definition at line 50 of file MessageGroupStatsRebuildJob.php.


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