API module for marking translations as reviewed. More...
Public Member Functions | |
execute () | |
isWriteMode () | |
needsToken () | |
getTokenSalt () | |
getAllowedParams () | |
getParamDescription () | |
getDescription () | |
getPossibleErrors () | |
getExamples () | |
getVersion () | |
Static Public Member Functions | |
static | doReview (User $user, Revision $revision, $comment=null) |
Executes the real stuff. | |
static | getReviewBlockers (User $user, Revision $revision) |
Validates review action by checking permissions and other things. | |
static | getToken () |
static | injectTokenFunction (&$list) |
static | getRight () |
Static Protected Attributes | |
static | $right = 'translate-messagereview' |
static | $salt = 'translate-messagereview' |
API module for marking translations as reviewed.
Definition at line 15 of file ApiTranslationReview.php.
static ApiTranslationReview::doReview | ( | User $ | user, | |
Revision $ | revision, | |||
$ | comment = null | |||
) | [static] |
Executes the real stuff.
No checks done!
User | $user | |
Revision | $revision | |
null|string | $comment |
Definition at line 73 of file ApiTranslationReview.php.
Referenced by execute(), and MessageGroupStatesUpdaterJobTest::testHooks().
ApiTranslationReview::execute | ( | ) |
ApiTranslationReview::getAllowedParams | ( | ) |
Definition at line 148 of file ApiTranslationReview.php.
ApiTranslationReview::getDescription | ( | ) |
Definition at line 170 of file ApiTranslationReview.php.
ApiTranslationReview::getExamples | ( | ) |
Definition at line 186 of file ApiTranslationReview.php.
ApiTranslationReview::getParamDescription | ( | ) |
ApiTranslationReview::getPossibleErrors | ( | ) |
Definition at line 174 of file ApiTranslationReview.php.
static ApiTranslationReview::getReviewBlockers | ( | User $ | user, | |
Revision $ | revision | |||
) | [static] |
Validates review action by checking permissions and other things.
User | $user | |
Revision | $revision |
Definition at line 114 of file ApiTranslationReview.php.
Referenced by execute(), and ApiTranslationReviewTest::testgetReviewBlockers().
static ApiTranslationReview::getRight | ( | ) | [static] |
Definition at line 211 of file ApiTranslationReview.php.
static ApiTranslationReview::getToken | ( | ) | [static] |
Definition at line 196 of file ApiTranslationReview.php.
Referenced by MessageTable::getReviewButton().
ApiTranslationReview::getTokenSalt | ( | ) |
Definition at line 144 of file ApiTranslationReview.php.
ApiTranslationReview::getVersion | ( | ) |
Definition at line 192 of file ApiTranslationReview.php.
static ApiTranslationReview::injectTokenFunction | ( | &$ | list | ) | [static] |
Definition at line 205 of file ApiTranslationReview.php.
ApiTranslationReview::isWriteMode | ( | ) |
Definition at line 136 of file ApiTranslationReview.php.
ApiTranslationReview::needsToken | ( | ) |
Definition at line 140 of file ApiTranslationReview.php.
ApiTranslationReview::$right = 'translate-messagereview' [static, protected] |
Definition at line 16 of file ApiTranslationReview.php.
Referenced by getPossibleErrors().
ApiTranslationReview::$salt = 'translate-messagereview' [static, protected] |
Definition at line 17 of file ApiTranslationReview.php.