CheckLanguageCLI Class Reference
[MaintenanceLanguage]

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

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


Member Function Documentation

CheckLanguageCLI::defaultChecks (  )  [protected]

Get the default checks.

Returns:
A list of the default checks.

Definition at line 73 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.

Definition at line 97 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 108 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 155 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 138 of file checkLanguage.inc.

CheckLanguageCLI::help (  )  [protected]

Get help.

Returns:
The help string.

Definition at line 183 of file checkLanguage.inc.

References $code, $count, is(), n, obsolete, and output().

Referenced by __construct().

CheckLanguageCLI::nonMessageChecks (  )  [protected]

Get the checks which check other things than messages.

Returns:
A list of the non-message checks.

Definition at line 86 of file checkLanguage.inc.


Member Data Documentation

CheckLanguageCLI::$checkAll = false [protected]

Definition at line 11 of file checkLanguage.inc.

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

Definition at line 13 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 18 of file checkLanguage.inc.

CheckLanguageCLI::$L = null [protected]

Definition at line 14 of file checkLanguage.inc.

CheckLanguageCLI::$level = 2 [protected]

Definition at line 8 of file checkLanguage.inc.

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

Definition at line 12 of file checkLanguage.inc.

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

Definition at line 16 of file checkLanguage.inc.

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

Definition at line 10 of file checkLanguage.inc.


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

Generated on Sat Sep 5 02:08:34 2009 for MediaWiki by  doxygen 1.5.9