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

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'
 

Detailed Description

Definition at line 554 of file checkLanguage.inc.

Constructor & Destructor Documentation

◆ __construct()

CheckExtensionsCLI::__construct ( array  $options,
  $extension 
)
Parameters
array$optionsOptions for script.
string$extensionThe extension name (or names).

Definition at line 561 of file checkLanguage.inc.

References $extensions, $wgLanguageCode, defaultChecks(), easyChecks(), help(), and print.

Member Function Documentation

◆ checkLanguage()

CheckExtensionsCLI::checkLanguage (   $code)
protected

Check a language and show the results.

Parameters
string$codeThe language code.
Exceptions
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().

◆ defaultChecks()

CheckExtensionsCLI::defaultChecks ( )
protected

Get the default checks.

Returns
array A list of the default checks.

Reimplemented from CheckLanguageCLI.

Definition at line 645 of file checkLanguage.inc.

Referenced by __construct().

◆ easyChecks()

CheckExtensionsCLI::easyChecks ( )
protected

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

Returns
array A list of the easy checks.

Reimplemented from CheckLanguageCLI.

Definition at line 664 of file checkLanguage.inc.

Referenced by __construct().

◆ execute()

CheckExtensionsCLI::execute ( )

Execute the script.

Reimplemented from CheckLanguageCLI.

Definition at line 727 of file checkLanguage.inc.

References CheckLanguageCLI\doChecks().

◆ help()

CheckExtensionsCLI::help ( )
protected

Get help.

Returns
string The help string.

Reimplemented from CheckLanguageCLI.

Definition at line 674 of file checkLanguage.inc.

References checkLanguage(), and help().

Referenced by __construct(), and help().

◆ nonMessageChecks()

CheckExtensionsCLI::nonMessageChecks ( )
protected

Get the checks which check other things than messages.

Returns
array A list of the non-message checks.

Reimplemented from CheckLanguageCLI.

Definition at line 656 of file checkLanguage.inc.

Member Data Documentation

◆ $extensions

CheckExtensionsCLI::$extensions
private

Definition at line 555 of file checkLanguage.inc.

Referenced by __construct().


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