PremadeMediawikiExtensionGroups Class Reference

Class which handles special definition format for MediaWiki extensions. More...

Inheritance diagram for PremadeMediawikiExtensionGroups:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($def, $path)
 setUseConfigure ($value)
 Whether to use the Configure extension to load extension home pages.
 setGroupPrefix ($value)
 How to prefix message group ids.
 setNamespace ($value)
 What namespace holds the messages.
 register (array &$list, array &$deps)
 Hook: TranslatePostInitGroups.

Static Public Member Functions

static foldId ($name)
 Makes an group id from extension name.

Protected Member Functions

 createMessageGroup ($id, $info)
 Creates MediaWikiExtensionMessageGroup objects from parsed data.
 parseFile ()
 processGroups ($groups)
 loadConfigureExtensionData ()

Protected Attributes

 $useConfigure = true
 $idPrefix = 'ext-'
 $namespace = NS_MEDIAWIKI
 $path
 $definitionFile

Detailed Description

Class which handles special definition format for MediaWiki extensions.

Definition at line 14 of file MediaWikiExtensions.php.


Constructor & Destructor Documentation

PremadeMediawikiExtensionGroups::__construct ( def,
path 
)
Parameters:
string $def Absolute path to the definition file. See tests/data/mediawiki-extensions.txt for example.
string $path General prefix to the file locations without the extension specific part. Should start with GROUPROOT/ or otherwise export path will be wrong. The export path is constructed by replacing GROUPROOT/ with target directory.

Definition at line 39 of file MediaWikiExtensions.php.


Member Function Documentation

PremadeMediawikiExtensionGroups::createMessageGroup ( id,
info 
) [protected]

Creates MediaWikiExtensionMessageGroup objects from parsed data.

Parameters:
string $id unique group id already prefixed
array $info array of group info
Returns:
MediaWikiExtensionMessageGroup

Definition at line 92 of file MediaWikiExtensions.php.

Referenced by register().

Here is the call graph for this function:

static PremadeMediawikiExtensionGroups::foldId ( name  )  [static]

Makes an group id from extension name.

Definition at line 69 of file MediaWikiExtensions.php.

Referenced by processGroups().

PremadeMediawikiExtensionGroups::loadConfigureExtensionData (  )  [protected]

Definition at line 303 of file MediaWikiExtensions.php.

Referenced by processGroups().

PremadeMediawikiExtensionGroups::parseFile (  )  [protected]

Definition at line 158 of file MediaWikiExtensions.php.

Referenced by register().

PremadeMediawikiExtensionGroups::processGroups ( groups  )  [protected]

Reimplemented in PremadeIntuitionTextdomains.

Definition at line 238 of file MediaWikiExtensions.php.

Referenced by register().

Here is the call graph for this function:

PremadeMediawikiExtensionGroups::register ( array &$  list,
array &$  deps 
)

Hook: TranslatePostInitGroups.

Definition at line 74 of file MediaWikiExtensions.php.

Here is the call graph for this function:

PremadeMediawikiExtensionGroups::setGroupPrefix ( value  ) 

How to prefix message group ids.

Since:
2012-03-22

Definition at line 56 of file MediaWikiExtensions.php.

PremadeMediawikiExtensionGroups::setNamespace ( value  ) 

What namespace holds the messages.

Since:
2012-03-22

Definition at line 64 of file MediaWikiExtensions.php.

PremadeMediawikiExtensionGroups::setUseConfigure ( value  ) 

Whether to use the Configure extension to load extension home pages.

Since:
2012-03-22

Definition at line 48 of file MediaWikiExtensions.php.


Member Data Documentation

PremadeMediawikiExtensionGroups::$definitionFile [protected]

Definition at line 29 of file MediaWikiExtensions.php.

PremadeMediawikiExtensionGroups::$idPrefix = 'ext-' [protected]

Reimplemented in PremadeIntuitionTextdomains.

Definition at line 16 of file MediaWikiExtensions.php.

PremadeMediawikiExtensionGroups::$namespace = NS_MEDIAWIKI [protected]

Reimplemented in PremadeIntuitionTextdomains.

Definition at line 17 of file MediaWikiExtensions.php.

PremadeMediawikiExtensionGroups::$path [protected]

Definition at line 23 of file MediaWikiExtensions.php.

Referenced by __construct().

PremadeMediawikiExtensionGroups::$useConfigure = true [protected]

Reimplemented in PremadeIntuitionTextdomains.

Definition at line 15 of file MediaWikiExtensions.php.


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