SpecialMagic Class Reference
[Special pages of Translate extension]

This special page helps with the translations of MediaWiki features that are not in the main messages array (special page aliases, magic words, namespace names). More...

List of all members.

Public Member Functions

 __construct ()
 getDescription ()
 execute ($parameters)
 The special page running code.

Public Attributes

const MODULE_MAGIC = 'words'
const MODULE_SPECIAL = 'special'
const MODULE_NAMESPACE = 'namespace'

Protected Member Functions

 getForm ()
 Returns HTML5 output of the form GLOBALS: $wgScript.
 moduleSelector ($selectedId)
 Helper function get module selector.
 setup ($parameters)
 outputErrors ($errors)

Private Attributes

 $aModules
 List of supported modules.
 $options = array()
 Page options.
 $defaults = array()
 $nondefaults = array()

Detailed Description

This special page helps with the translations of MediaWiki features that are not in the main messages array (special page aliases, magic words, namespace names).

Definition at line 18 of file SpecialMagic.php.


Constructor & Destructor Documentation

SpecialMagic::__construct (  ) 

Definition at line 39 of file SpecialMagic.php.


Member Function Documentation

SpecialMagic::execute ( parameters  ) 

The special page running code.

Definition at line 149 of file SpecialMagic.php.

Here is the call graph for this function:

SpecialMagic::getDescription (  ) 
See also:
SpecialPage::getDescription
Returns:
string

Definition at line 48 of file SpecialMagic.php.

SpecialMagic::getForm (  )  [protected]

Returns HTML5 output of the form GLOBALS: $wgScript.

Returns:
string

Definition at line 57 of file SpecialMagic.php.

Referenced by execute().

Here is the call graph for this function:

SpecialMagic::moduleSelector ( selectedId  )  [protected]

Helper function get module selector.

Parameters:
string $selectedId Which value should be selected by default
Returns:
string HTML5-compatible select-element.

Definition at line 96 of file SpecialMagic.php.

Referenced by getForm().

SpecialMagic::outputErrors ( errors  )  [protected]

Definition at line 226 of file SpecialMagic.php.

Referenced by execute().

SpecialMagic::setup ( parameters  )  [protected]

Place where all non default variables will end.

Temporary store possible values parsed from parameters.

Definition at line 107 of file SpecialMagic.php.

Referenced by execute().


Member Data Documentation

SpecialMagic::$aModules [private]
Initial value:
 array(
        self::MODULE_SPECIAL,
        self::MODULE_NAMESPACE,
        self::MODULE_MAGIC
    )

List of supported modules.

Definition at line 26 of file SpecialMagic.php.

SpecialMagic::$defaults = array() [private]

Definition at line 36 of file SpecialMagic.php.

Referenced by setup().

SpecialMagic::$nondefaults = array() [private]

Definition at line 37 of file SpecialMagic.php.

Referenced by setup().

SpecialMagic::$options = array() [private]

Page options.

Definition at line 35 of file SpecialMagic.php.

Referenced by setup().

const SpecialMagic::MODULE_MAGIC = 'words'

Definition at line 19 of file SpecialMagic.php.

const SpecialMagic::MODULE_NAMESPACE = 'namespace'

Definition at line 21 of file SpecialMagic.php.

const SpecialMagic::MODULE_SPECIAL = 'special'

Definition at line 20 of file SpecialMagic.php.


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:53 2013 for MediaWiki Translate Extension by  doxygen 1.6.3