MediaWiki  REL1_22
CheckExtensionsCLI Class Reference
Inheritance diagram for CheckExtensionsCLI:
Collaboration diagram for CheckExtensionsCLI:

List of all members.

Public Member Functions

 __construct (array $options, $extension)
 Constructor.
 execute ()
 Execute the script.

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.

Private Attributes

 $extensions

Detailed Description

Definition at line 483 of file checkLanguage.inc.


Constructor & Destructor Documentation

CheckExtensionsCLI::__construct ( array options,
extension 
)

Constructor.

Parameters:
$optionsarray Options for script.
$extensionstring The extension name (or names).

Definition at line 491 of file checkLanguage.inc.

References $extensions, array(), as, code, defaultChecks(), easyChecks(), extensions, global, help(), output(), and print.


Member Function Documentation

CheckExtensionsCLI::checkLanguage ( code) [protected]

Check a language and show the results.

Parameters:
$codestring The language code.
Exceptions:
MWException

Reimplemented from CheckLanguageCLI.

Definition at line 650 of file checkLanguage.inc.

References CheckLanguageCLI\$code, array(), as, extensions, CheckLanguageCLI\isEmpty(), output(), CheckLanguageCLI\outputText(), and CheckLanguageCLI\outputWiki().

Referenced by help().

Get the default checks.

Returns:
array A list of the default checks.

Reimplemented from CheckLanguageCLI.

Definition at line 575 of file checkLanguage.inc.

References array().

Referenced by __construct().

Get the checks that can easily be treated by non-speakers of the language.

Returns:
arrayA list of the easy checks.

Reimplemented from CheckLanguageCLI.

Definition at line 594 of file checkLanguage.inc.

References array().

Referenced by __construct().

Execute the script.

Reimplemented from CheckLanguageCLI.

Definition at line 641 of file checkLanguage.inc.

References CheckLanguageCLI\doChecks().

CheckExtensionsCLI::help ( ) [protected]

Get help.

Returns:
string The help string.

Reimplemented from CheckLanguageCLI.

Definition at line 604 of file checkLanguage.inc.

References are, broken, characters, check, checkLanguage(), code, complete, content, empty, errors, extensions, following, form, headers, in, installation, is, language, line, list, message, messages, name, of, off, only, output(), pages, result, settings, specific, them, used, values, well, and wiki.

Referenced by __construct().

Get the checks which check other things than messages.

Returns:
array A list of the non-message checks.

Reimplemented from CheckLanguageCLI.

Definition at line 586 of file checkLanguage.inc.

References array().


Member Data Documentation

CheckExtensionsCLI::$extensions [private]

Definition at line 484 of file checkLanguage.inc.

Referenced by __construct().


The documentation for this class was generated from the following file: