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

Public Member Functions

 __construct (array $options, $extension)
 
 execute ()
 Execute the script. More...
 
- Public Member Functions inherited from CheckLanguageCLI
 __construct (array $options)
 
 execute ()
 Execute the script. 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
 checkLanguage ( $code)
 Check a language. More...
 
 defaultChecks ()
 Get the default checks. More...
 
 doChecks ()
 Execute the checks. More...
 
 easyChecks ()
 Get the checks that can easily be treated by non-speakers of the language. 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...
 
 help ()
 Get help. 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...
 
 nonMessageChecks ()
 Get the checks which check other things than messages. More...
 
 outputText ()
 Output the checks results as plain text. More...
 

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

Member Function Documentation

◆ checkLanguage()

CheckExtensionsCLI::checkLanguage (   $code)
protected

Check a language and show the results.

Parameters
string$codeThe language code.
Exceptions
MWException

Definition at line 671 of file checkLanguage.inc.

◆ defaultChecks()

CheckExtensionsCLI::defaultChecks ( )
protected

Get the default checks.

Returns
array A list of the default checks.

Definition at line 580 of file checkLanguage.inc.

References CheckLanguageCLI\defaultChecks(), and CheckLanguageCLI\easyChecks().

◆ 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.

Definition at line 599 of file checkLanguage.inc.

References extensions.

◆ execute()

CheckExtensionsCLI::execute ( )

Execute the script.

Definition at line 662 of file checkLanguage.inc.

◆ help()

◆ nonMessageChecks()

CheckExtensionsCLI::nonMessageChecks ( )
protected

Get the checks which check other things than messages.

Returns
array A list of the non-message checks.

Definition at line 591 of file checkLanguage.inc.

References CheckLanguageCLI\defaultChecks(), and CheckLanguageCLI\easyChecks().

Member Data Documentation

◆ $extensions

CheckExtensionsCLI::$extensions
private

Definition at line 490 of file checkLanguage.inc.


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