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

Public Member Functions

 __construct (array $options, $extension)
 Constructor. More...
 
 execute ()
 Execute the script. More...
 
- Public Member Functions inherited from CheckLanguageCLI
 __construct (array $options)
 Constructor. More...
 
 outputWiki ()
 Output the checks results as wiki text. More...
 

Protected Member Functions

 checkLanguage ( $code)
 Check a language and show the results. More...
 
 defaultChecks ()
 Get the default checks. More...
 
 easyChecks ()
 Get the checks that can easily be treated by non-speakers of the language. More...
 
 help ()
 Get help. More...
 
 nonMessageChecks ()
 Get the checks which check other things than messages. More...
 
- Protected Member Functions inherited from CheckLanguageCLI
 doChecks ()
 Execute the checks. More...
 
 formatKey ( $key, $code)
 Format a message key. More...
 
 getCheckBlacklist ()
 Get the check blacklist. More...
 
 getChecks ()
 Get all checks. More...
 
 getDescriptions ()
 Get all check descriptions. More...
 
 getTotalCount ()
 Get total count for each check non-messages check. More...
 
 isCheckBlacklisted ( $check, $code, $message)
 Verify whether a check is blacklisted. More...
 
 isEmpty ()
 Check if there are any results for the checks, in any language. More...
 
 outputText ()
 Output the checks results as plain text. More...
 

Private Attributes

 $extensions
 

Additional Inherited Members

- Protected Attributes inherited from CheckLanguageCLI
 $checkAll = false
 
 $checks = array()
 
 $code = null
 
 $doLinks = false
 
 $L = null
 
 $level = 2
 
 $linksPrefix = ''
 
 $output = 'plain'
 
 $results = array()
 
 $wikiCode = 'en'
 

Detailed Description

Definition at line 491 of file checkLanguage.inc.

Constructor & Destructor Documentation

◆ __construct()

CheckExtensionsCLI::__construct ( array  $options,
  $extension 
)

Constructor.

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

Definition at line 499 of file checkLanguage.inc.

Member Function Documentation

◆ checkLanguage()

CheckExtensionsCLI::checkLanguage (   $code)
protected

Check a language and show the results.

Parameters
$codestring The language code.
Exceptions
MWException

Reimplemented from CheckLanguageCLI.

Definition at line 674 of file checkLanguage.inc.

◆ defaultChecks()

CheckExtensionsCLI::defaultChecks ( )
protected

Get the default checks.

Returns
array A list of the default checks.

Reimplemented from CheckLanguageCLI.

Definition at line 583 of file checkLanguage.inc.

References $options.

◆ easyChecks()

CheckExtensionsCLI::easyChecks ( )
protected

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 602 of file checkLanguage.inc.

◆ execute()

CheckExtensionsCLI::execute ( )

Execute the script.

Reimplemented from CheckLanguageCLI.

Definition at line 665 of file checkLanguage.inc.

◆ help()

CheckExtensionsCLI::help ( )
protected

Get help.

Returns
string The help string.

Reimplemented from CheckLanguageCLI.

Definition at line 612 of file checkLanguage.inc.

References as.

◆ 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 594 of file checkLanguage.inc.

Member Data Documentation

◆ $extensions

CheckExtensionsCLI::$extensions
private

Definition at line 492 of file checkLanguage.inc.


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