Gathers translator activity from the database. More...
Public Member Functions | |
__construct (Config $options, ILoadBalancer $loadBalancer) | |
inLanguage (string $code) | |
Fetch the translators for a language. | |
inAllLanguages () | |
Fetch the translators for all languages. | |
Public Attributes | |
const | USER_NAME = 0 |
const | USER_TRANSLATIONS = 1 |
const | USER_LAST_ACTIVITY = 2 |
Gathers translator activity from the database.
Definition at line 16 of file TranslatorActivityQuery.php.
MediaWiki\Extension\Translate\Statistics\TranslatorActivityQuery::__construct | ( | Config | $options, |
ILoadBalancer | $loadBalancer ) |
Definition at line 23 of file TranslatorActivityQuery.php.
MediaWiki\Extension\Translate\Statistics\TranslatorActivityQuery::inAllLanguages | ( | ) |
Fetch the translators for all languages.
This is faster than doing each language separately.
Definition at line 76 of file TranslatorActivityQuery.php.
MediaWiki\Extension\Translate\Statistics\TranslatorActivityQuery::inLanguage | ( | string | $code | ) |
Fetch the translators for a language.
string | $code | Language tag |
Definition at line 34 of file TranslatorActivityQuery.php.
const MediaWiki\Extension\Translate\Statistics\TranslatorActivityQuery::USER_LAST_ACTIVITY = 2 |
Definition at line 19 of file TranslatorActivityQuery.php.
const MediaWiki\Extension\Translate\Statistics\TranslatorActivityQuery::USER_NAME = 0 |
Definition at line 17 of file TranslatorActivityQuery.php.
const MediaWiki\Extension\Translate\Statistics\TranslatorActivityQuery::USER_TRANSLATIONS = 1 |
Definition at line 18 of file TranslatorActivityQuery.php.