Logic for handling automatic message group state changes. More...
Public Member Functions | |
__construct ($title, $params=array(), $id=0) | |
run () | |
Static Public Member Functions | |
static | onChange (MessageHandle $handle) |
Hook: TranslateEventTranslationEdit Hook: TranslateEventTranslationReview. | |
static | newJob ($title) |
static | getGroupsWithTransitions (MessageHandle $handle) |
static | getStatValue ($stats, $type) |
static | matchCondition ($value, $condition, $max) |
static | getNewState ($stats, $transitions) |
Logic for handling automatic message group state changes.
Definition at line 16 of file MessageGroupStatesUpdaterJob.php.
MessageGroupStatesUpdaterJob::__construct | ( | $ | title, | |
$ | params = array() , |
|||
$ | id = 0 | |||
) |
Definition at line 39 of file MessageGroupStatesUpdaterJob.php.
static MessageGroupStatesUpdaterJob::getGroupsWithTransitions | ( | MessageHandle $ | handle | ) | [static] |
Definition at line 65 of file MessageGroupStatesUpdaterJob.php.
Referenced by run(), and MessageGroupStatesUpdaterJobTest::testGetGroupsWithTransitions().
static MessageGroupStatesUpdaterJob::getNewState | ( | $ | stats, | |
$ | transitions | |||
) | [static] |
Definition at line 117 of file MessageGroupStatesUpdaterJob.php.
Referenced by run(), and MessageGroupStatesUpdaterJobTest::testGetNewState().
static MessageGroupStatesUpdaterJob::getStatValue | ( | $ | stats, | |
$ | type | |||
) | [static] |
Definition at line 84 of file MessageGroupStatesUpdaterJob.php.
Referenced by getNewState(), and MessageGroupStatesUpdaterJobTest::testGetStatValue().
static MessageGroupStatesUpdaterJob::matchCondition | ( | $ | value, | |
$ | condition, | |||
$ | max | |||
) | [static] |
Definition at line 104 of file MessageGroupStatesUpdaterJob.php.
Referenced by getNewState(), and MessageGroupStatesUpdaterJobTest::testMatchCondition().
static MessageGroupStatesUpdaterJob::newJob | ( | $ | title | ) | [static] |
$title |
Definition at line 33 of file MessageGroupStatesUpdaterJob.php.
Referenced by onChange().
static MessageGroupStatesUpdaterJob::onChange | ( | MessageHandle $ | handle | ) | [static] |
Hook: TranslateEventTranslationEdit Hook: TranslateEventTranslationReview.
Definition at line 22 of file MessageGroupStatesUpdaterJob.php.
MessageGroupStatesUpdaterJob::run | ( | ) |
Definition at line 43 of file MessageGroupStatesUpdaterJob.php.