CheckLanguageCLI Class Reference
[MaintenanceLanguage]

Inherited by CheckExtensionsCLI.

List of all members.

Public Member Functions

 __construct (Array $options)
 Constructor.

Protected Member Functions

 defaultChecks ()
 Get the default checks.
 nonMessageChecks ()
 Get the checks which check other things than messages.
 easyChecks ()
 Get the checks that can easily be treated by non-speakers of the language.
 getChecks ()
 Get all checks.
 getTotalCount ()
 Get total count for each check non-messages check.
 getDescriptions ()
 Get all check descriptions.
 help ()
 Get help.

Protected Attributes

 $code = null
 $level = 2
 $doLinks = false
 $linksPrefix = ''
 $wikiCode = 'en'
 $checkAll = false
 $output = 'plain'
 $checks = array()
 $L = null
 $results = array()

Private Attributes

 $includeExif = false


Detailed Description

Definition at line 6 of file checkLanguage.inc.


Constructor & Destructor Documentation

CheckLanguageCLI::__construct ( Array $  options  ) 

Constructor.

Parameters:
$options Options for script.

Definition at line 25 of file checkLanguage.inc.

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


Member Function Documentation

CheckLanguageCLI::defaultChecks (  )  [protected]

Get the default checks.

Returns:
A list of the default checks.

Reimplemented in CheckExtensionsCLI.

Definition at line 78 of file checkLanguage.inc.

Referenced by __construct().

CheckLanguageCLI::easyChecks (  )  [protected]

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

Returns:
A list of the easy checks.

Reimplemented in CheckExtensionsCLI.

Definition at line 102 of file checkLanguage.inc.

Referenced by __construct().

CheckLanguageCLI::getChecks (  )  [protected]

Get all checks.

Returns:
An array of all check names mapped to their function names.

Definition at line 113 of file checkLanguage.inc.

CheckLanguageCLI::getDescriptions (  )  [protected]

Get all check descriptions.

Returns:
An array of all check names mapped to their descriptions.

Definition at line 160 of file checkLanguage.inc.

CheckLanguageCLI::getTotalCount (  )  [protected]

Get total count for each check non-messages check.

Returns:
An array of all check names mapped to a two-element array: function name to get the total count and language code or null for checked code.

Definition at line 143 of file checkLanguage.inc.

CheckLanguageCLI::help (  )  [protected]

Get help.

Returns:
The help string.

Reimplemented in CheckExtensionsCLI.

Definition at line 188 of file checkLanguage.inc.

References $code, and n.

Referenced by __construct().

CheckLanguageCLI::nonMessageChecks (  )  [protected]

Get the checks which check other things than messages.

Returns:
A list of the non-message checks.

Reimplemented in CheckExtensionsCLI.

Definition at line 91 of file checkLanguage.inc.


Member Data Documentation

CheckLanguageCLI::$checkAll = false [protected]

Definition at line 12 of file checkLanguage.inc.

CheckLanguageCLI::$checks = array() [protected]

Definition at line 14 of file checkLanguage.inc.

CheckLanguageCLI::$code = null [protected]

Definition at line 7 of file checkLanguage.inc.

Referenced by help().

CheckLanguageCLI::$doLinks = false [protected]

Definition at line 9 of file checkLanguage.inc.

CheckLanguageCLI::$includeExif = false [private]

Definition at line 19 of file checkLanguage.inc.

CheckLanguageCLI::$L = null [protected]

Definition at line 15 of file checkLanguage.inc.

CheckLanguageCLI::$level = 2 [protected]

Definition at line 8 of file checkLanguage.inc.

CheckLanguageCLI::$linksPrefix = '' [protected]

Definition at line 10 of file checkLanguage.inc.

CheckLanguageCLI::$output = 'plain' [protected]

Definition at line 13 of file checkLanguage.inc.

CheckLanguageCLI::$results = array() [protected]

Definition at line 17 of file checkLanguage.inc.

CheckLanguageCLI::$wikiCode = 'en' [protected]

Definition at line 11 of file checkLanguage.inc.


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

Generated on Sat Apr 30 22:57:34 2011 for MediaWiki by  doxygen 1.5.9