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

Logic for handling automatic message group state changes. More...

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

Public Member Functions

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

Static Public Member Functions

static onChange (MessageHandle $handle)
 Hook: TranslateEventTranslationReview and also on translation changes.
 
static newJob ( $title)
 
static getGroupsWithTransitions (MessageHandle $handle)
 
static getStatValue ( $stats, $type)
 
static matchCondition ( $value, $condition, $max)
 
static getNewState ( $stats, $transitions)
 

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

Logic for handling automatic message group state changes.

Definition at line 22 of file MessageGroupStatesUpdaterJob.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 27 of file MessageGroupStatesUpdaterJob.php.

Member Function Documentation

◆ getGroupsWithTransitions()

static MessageGroupStatesUpdaterJob::getGroupsWithTransitions ( MessageHandle $handle)
static

Definition at line 83 of file MessageGroupStatesUpdaterJob.php.

◆ getNewState()

static MessageGroupStatesUpdaterJob::getNewState ( $stats,
$transitions )
static
Parameters
int[]$stats
array[]$transitions
Returns
string|bool

Definition at line 141 of file MessageGroupStatesUpdaterJob.php.

◆ getStatValue()

static MessageGroupStatesUpdaterJob::getStatValue ( $stats,
$type )
static

Definition at line 102 of file MessageGroupStatesUpdaterJob.php.

◆ matchCondition()

static MessageGroupStatesUpdaterJob::matchCondition ( $value,
$condition,
$max )
static

Definition at line 122 of file MessageGroupStatesUpdaterJob.php.

◆ newJob()

static MessageGroupStatesUpdaterJob::newJob ( $title)
static
Parameters
Title$title
Returns
self

Definition at line 49 of file MessageGroupStatesUpdaterJob.php.

◆ onChange()

static MessageGroupStatesUpdaterJob::onChange ( MessageHandle $handle)
static

Hook: TranslateEventTranslationReview and also on translation changes.

Parameters
MessageHandle$handle
Returns
true

Definition at line 38 of file MessageGroupStatesUpdaterJob.php.

◆ run()

MessageGroupStatesUpdaterJob::run ( )

Definition at line 55 of file MessageGroupStatesUpdaterJob.php.


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