MediaWiki REL1_34
|
Public Member Functions | |
__construct (array $options, $extension) | |
execute () | |
Execute the script. | |
Public Member Functions inherited from CheckLanguageCLI | |
__construct (array $options) | |
outputWiki () | |
Output the checks results as wiki text. | |
Protected Member Functions | |
checkLanguage ( $code) | |
Check a language and show the results. | |
defaultChecks () | |
Get the default checks. | |
easyChecks () | |
Get the checks that can easily be treated by non-speakers of the language. | |
help () | |
Get help. | |
nonMessageChecks () | |
Get the checks which check other things than messages. | |
Protected Member Functions inherited from CheckLanguageCLI | |
doChecks () | |
Execute the checks. | |
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. | |
isCheckBlacklisted ( $check, $code, $message) | |
Verify whether a check is blacklisted. | |
isEmpty () | |
Check if there are any results for the checks, in any language. | |
outputText () | |
Output the checks results as plain text. | |
Private Attributes | |
$extensions | |
Additional Inherited Members | |
Protected Attributes inherited from CheckLanguageCLI | |
$checkAll = false | |
$checks = [] | |
$code = null | |
$doLinks = false | |
$L = null | |
$level = 2 | |
$linksPrefix = '' | |
$output = 'plain' | |
$results = [] | |
$wikiCode = 'en' | |
Definition at line 554 of file checkLanguage.inc.
CheckExtensionsCLI::__construct | ( | array | $options, |
$extension | |||
) |
array | $options | Options for script. |
string | $extension | The extension name (or names). |
Definition at line 561 of file checkLanguage.inc.
References $extensions, $wgLanguageCode, defaultChecks(), easyChecks(), help(), and print.
|
protected |
Check a language and show the results.
string | $code | The language code. |
MWException |
Reimplemented from CheckLanguageCLI.
Definition at line 736 of file checkLanguage.inc.
References CheckLanguageCLI\$code, CheckLanguageCLI\isEmpty(), CheckLanguageCLI\outputText(), and CheckLanguageCLI\outputWiki().
Referenced by help().
|
protected |
Get the default checks.
Reimplemented from CheckLanguageCLI.
Definition at line 645 of file checkLanguage.inc.
Referenced by __construct().
|
protected |
Get the checks that can easily be treated by non-speakers of the language.
Reimplemented from CheckLanguageCLI.
Definition at line 664 of file checkLanguage.inc.
Referenced by __construct().
CheckExtensionsCLI::execute | ( | ) |
Execute the script.
Reimplemented from CheckLanguageCLI.
Definition at line 727 of file checkLanguage.inc.
References CheckLanguageCLI\doChecks().
|
protected |
Get help.
Reimplemented from CheckLanguageCLI.
Definition at line 674 of file checkLanguage.inc.
References checkLanguage(), and help().
Referenced by __construct(), and help().
|
protected |
Get the checks which check other things than messages.
Reimplemented from CheckLanguageCLI.
Definition at line 656 of file checkLanguage.inc.
|
private |
Definition at line 555 of file checkLanguage.inc.
Referenced by __construct().