|
MediaWiki
REL1_20
|

Public Member Functions | |
| __construct (Array $options) | |
| Constructor. | |
| execute () | |
| Execute the script. | |
| outputWiki () | |
| Output the checks results as wiki text. | |
Protected Member Functions | |
| checkLanguage ($code) | |
| Check a language. | |
| defaultChecks () | |
| Get the default checks. | |
| doChecks () | |
| Execute the checks. | |
| easyChecks () | |
| Get the checks that can easily be treated by non-speakers of the language. | |
| formatKey ($key, $code) | |
| Format a message key. | |
| getCheckBlacklist () | |
| Get the check blacklist. | |
| getChecks () | |
| Get all checks. | |
| getDescriptions () | |
| Get all check descriptions. | |
| getTotalCount () | |
| Get total count for each check non-messages check. | |
| help () | |
| Get help. | |
| isEmpty () | |
| Check if there are any results for the checks, in any language. | |
| nonMessageChecks () | |
| Get the checks which check other things than messages. | |
| outputText () | |
| Output the checks results as plain text. | |
Protected Attributes | |
| $checkAll = false | |
| $checks = array() | |
| $code = null | |
| $doLinks = false | |
| $L = null | |
| $level = 2 | |
| $linksPrefix = '' | |
| $output = 'plain' | |
| $results = array() | |
| $wikiCode = 'en' | |
Private Attributes | |
| $includeExif = false | |
Definition at line 27 of file checkLanguage.inc.
| CheckLanguageCLI::__construct | ( | Array $ | options | ) |
Constructor.
| $options | array Options for script. |
Definition at line 46 of file checkLanguage.inc.
References defaultChecks(), easyChecks(), echo, and help().
| CheckLanguageCLI::checkLanguage | ( | $ | code | ) | [protected] |
Check a language.
| $code | string The language code. |
Reimplemented in CheckExtensionsCLI.
Definition at line 310 of file checkLanguage.inc.
References $checkBlacklist, $code, $results, getCheckBlacklist(), and getChecks().
Referenced by doChecks(), and help().
| CheckLanguageCLI::defaultChecks | ( | ) | [protected] |
Get the default checks.
Reimplemented in CheckExtensionsCLI.
Definition at line 99 of file checkLanguage.inc.
Referenced by __construct().
| CheckLanguageCLI::doChecks | ( | ) | [protected] |
Execute the checks.
Definition at line 276 of file checkLanguage.inc.
References checkLanguage().
Referenced by execute(), and CheckExtensionsCLI\execute().
| CheckLanguageCLI::easyChecks | ( | ) | [protected] |
Get the checks that can easily be treated by non-speakers of the language.
Reimplemented in CheckExtensionsCLI.
Definition at line 123 of file checkLanguage.inc.
Referenced by __construct().
Execute the script.
Reimplemented in CheckExtensionsCLI.
Definition at line 257 of file checkLanguage.inc.
References doChecks(), outputText(), and outputWiki().
| CheckLanguageCLI::formatKey | ( | $ | key, |
| $ | code | ||
| ) | [protected] |
Format a message key.
| $key | string The message key. |
| $code | string The language code. |
Definition at line 343 of file checkLanguage.inc.
References $code.
Referenced by outputText(), and outputWiki().
| CheckLanguageCLI::getCheckBlacklist | ( | ) | [protected] |
Get the check blacklist.
Definition at line 300 of file checkLanguage.inc.
References $checkBlacklist.
Referenced by checkLanguage().
| CheckLanguageCLI::getChecks | ( | ) | [protected] |
Get all checks.
Definition at line 134 of file checkLanguage.inc.
Referenced by checkLanguage().
| CheckLanguageCLI::getDescriptions | ( | ) | [protected] |
Get all check descriptions.
Definition at line 181 of file checkLanguage.inc.
Referenced by outputText().
| CheckLanguageCLI::getTotalCount | ( | ) | [protected] |
Get total count for each check non-messages check.
Definition at line 164 of file checkLanguage.inc.
Referenced by outputText().
| CheckLanguageCLI::help | ( | ) | [protected] |
Get help.
Reimplemented in CheckExtensionsCLI.
Definition at line 209 of file checkLanguage.inc.
References checkLanguage().
Referenced by __construct().
| CheckLanguageCLI::isEmpty | ( | ) | [protected] |
Check if there are any results for the checks, in any language.
Definition at line 464 of file checkLanguage.inc.
References $messages, and $results.
Referenced by CheckExtensionsCLI\checkLanguage().
| CheckLanguageCLI::nonMessageChecks | ( | ) | [protected] |
Get the checks which check other things than messages.
Reimplemented in CheckExtensionsCLI.
Definition at line 112 of file checkLanguage.inc.
Referenced by outputText(), and outputWiki().
| CheckLanguageCLI::outputText | ( | ) | [protected] |
Output the checks results as plain text.
Definition at line 359 of file checkLanguage.inc.
References $code, $count, $messages, $results, $total, $value, echo, formatKey(), getDescriptions(), getTotalCount(), and nonMessageChecks().
Referenced by CheckExtensionsCLI\checkLanguage(), and execute().
Output the checks results as wiki text.
Definition at line 404 of file checkLanguage.inc.
References $code, $count, $messages, $results, echo, Language\fetchLanguageName(), formatKey(), SpecialVersion\getVersion(), and nonMessageChecks().
Referenced by CheckExtensionsCLI\checkLanguage(), and execute().
CheckLanguageCLI::$checkAll = false [protected] |
Definition at line 33 of file checkLanguage.inc.
CheckLanguageCLI::$checks = array() [protected] |
Definition at line 35 of file checkLanguage.inc.
CheckLanguageCLI::$code = null [protected] |
Definition at line 28 of file checkLanguage.inc.
Referenced by checkLanguage(), CheckExtensionsCLI\checkLanguage(), formatKey(), outputText(), and outputWiki().
CheckLanguageCLI::$doLinks = false [protected] |
Definition at line 30 of file checkLanguage.inc.
CheckLanguageCLI::$includeExif = false [private] |
Definition at line 40 of file checkLanguage.inc.
CheckLanguageCLI::$L = null [protected] |
Definition at line 36 of file checkLanguage.inc.
CheckLanguageCLI::$level = 2 [protected] |
Definition at line 29 of file checkLanguage.inc.
CheckLanguageCLI::$linksPrefix = '' [protected] |
Definition at line 31 of file checkLanguage.inc.
CheckLanguageCLI::$output = 'plain' [protected] |
Definition at line 34 of file checkLanguage.inc.
CheckLanguageCLI::$results = array() [protected] |
Definition at line 38 of file checkLanguage.inc.
Referenced by checkLanguage(), isEmpty(), outputText(), and outputWiki().
CheckLanguageCLI::$wikiCode = 'en' [protected] |
Definition at line 32 of file checkLanguage.inc.