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
 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.

Definition at line 19 of file MessageGroupStatsRebuildJob.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 47 of file MessageGroupStatsRebuildJob.php.

Member Function Documentation

◆ newJob()

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

Definition at line 24 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 39 of file MessageGroupStatsRebuildJob.php.

◆ run()

MessageGroupStatsRebuildJob::run ( )

Definition at line 51 of file MessageGroupStatsRebuildJob.php.


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