ApiHardMessages Class Reference

API module for marking translations hard Records the skip count for the message. More...

List of all members.

Public Member Functions

 execute ()
 isWriteMode ()
 needsToken ()
 getAllowedParams ()
 getParamDescription ()
 getDescription ()
 getPossibleErrors ()
 getExamples ()
 getVersion ()

Static Public Member Functions

static doMarkHard (Revision $revision, $count)
 Mark the message skip count.
static getHardCount (Revision $revision)
 Get the number of times the message was skipped.
static getToken ()
static injectTokenFunction (&$list)
static getRight ()

Static Protected Attributes

static $right = 'translate'

Detailed Description

API module for marking translations hard Records the skip count for the message.

Assumption: the more the translators skip a message, the more hard it is to translate.

Since:
2012-12-20

Definition at line 18 of file ApiHardMessages.php.


Member Function Documentation

static ApiHardMessages::doMarkHard ( Revision $  revision,
count 
) [static]

Mark the message skip count.

Parameters:
Revision $revision
int $count

Definition at line 65 of file ApiHardMessages.php.

Referenced by execute().

ApiHardMessages::execute (  ) 

Definition at line 21 of file ApiHardMessages.php.

Here is the call graph for this function:

ApiHardMessages::getAllowedParams (  ) 

Definition at line 122 of file ApiHardMessages.php.

ApiHardMessages::getDescription (  ) 

Definition at line 144 of file ApiHardMessages.php.

ApiHardMessages::getExamples (  ) 

Definition at line 158 of file ApiHardMessages.php.

static ApiHardMessages::getHardCount ( Revision $  revision  )  [static]

Get the number of times the message was skipped.

Parameters:
Revision $revision
Returns:
int How many times the message was skipped

Definition at line 98 of file ApiHardMessages.php.

Referenced by execute().

ApiHardMessages::getParamDescription (  ) 

Definition at line 135 of file ApiHardMessages.php.

Here is the call graph for this function:

ApiHardMessages::getPossibleErrors (  ) 

Definition at line 148 of file ApiHardMessages.php.

static ApiHardMessages::getRight (  )  [static]

Definition at line 183 of file ApiHardMessages.php.

static ApiHardMessages::getToken (  )  [static]

Definition at line 168 of file ApiHardMessages.php.

ApiHardMessages::getVersion (  ) 

Definition at line 164 of file ApiHardMessages.php.

static ApiHardMessages::injectTokenFunction ( &$  list  )  [static]

Definition at line 177 of file ApiHardMessages.php.

ApiHardMessages::isWriteMode (  ) 

Definition at line 114 of file ApiHardMessages.php.

ApiHardMessages::needsToken (  ) 

Definition at line 118 of file ApiHardMessages.php.


Member Data Documentation

ApiHardMessages::$right = 'translate' [static, protected]

Definition at line 19 of file ApiHardMessages.php.

Referenced by getPossibleErrors().


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:40 2013 for MediaWiki Translate Extension by  doxygen 1.6.3