[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Helper class for checkLanguage.php script. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 784 lines (24 kb) |
Included or required: | 2 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
CheckLanguageCLI:: (17 methods):
__construct()
defaultChecks()
nonMessageChecks()
easyChecks()
getChecks()
getTotalCount()
getDescriptions()
help()
execute()
doChecks()
getCheckBlacklist()
isCheckBlacklisted()
checkLanguage()
formatKey()
outputText()
outputWiki()
isEmpty()
CheckExtensionsCLI:: (7 methods):
__construct()
defaultChecks()
nonMessageChecks()
easyChecks()
help()
execute()
checkLanguage()
Class: CheckLanguageCLI - X-Ref
__construct( array $options ) X-Ref |
Constructor. param: array $options Options for script. |
defaultChecks() X-Ref |
Get the default checks. return: array A list of the default checks. |
nonMessageChecks() X-Ref |
Get the checks which check other things than messages. return: array A list of the non-message checks. |
easyChecks() X-Ref |
Get the checks that can easily be treated by non-speakers of the language. return: array A list of the easy checks. |
getChecks() X-Ref |
Get all checks. return: array An array of all check names mapped to their function names. |
getTotalCount() X-Ref |
Get total count for each check non-messages check. return: array An array of all check names mapped to a two-element array: |
getDescriptions() X-Ref |
Get all check descriptions. return: array An array of all check names mapped to their descriptions. |
help() X-Ref |
Get help. return: string The help string. |
execute() X-Ref |
Execute the script. |
doChecks() X-Ref |
Execute the checks. |
getCheckBlacklist() X-Ref |
Get the check blacklist. return: array The list of checks which should not be executed. |
isCheckBlacklisted( $check, $code, $message ) X-Ref |
Verify whether a check is blacklisted. param: string $check Check name param: string $code Language code param: string|bool $message Message name, or False for a whole language return: bool Whether the check is blacklisted |
checkLanguage( $code ) X-Ref |
Check a language. param: string $code The language code. return: array The results. |
formatKey( $key, $code ) X-Ref |
Format a message key. param: string $key The message key. param: string $code The language code. return: string The formatted message key. |
outputText() X-Ref |
Output the checks results as plain text. |
outputWiki() X-Ref |
Output the checks results as wiki text. |
isEmpty() X-Ref |
Check if there are any results for the checks, in any language. return: bool True if there are any results, false if not. |
Class: CheckExtensionsCLI - X-Ref
__construct( array $options, $extension ) X-Ref |
Constructor. param: array $options Options for script. param: string $extension The extension name (or names). |
defaultChecks() X-Ref |
Get the default checks. return: array A list of the default checks. |
nonMessageChecks() X-Ref |
Get the checks which check other things than messages. return: array A list of the non-message checks. |
easyChecks() X-Ref |
Get the checks that can easily be treated by non-speakers of the language. return: array A list of the easy checks. |
help() X-Ref |
Get help. return: string The help string. |
execute() X-Ref |
Execute the script. |
checkLanguage( $code ) X-Ref |
Check a language and show the results. param: string $code The language code. |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |