Class which handles special definition format for MediaWiki extensions. More...
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 |
Class which handles special definition format for MediaWiki extensions.
Definition at line 14 of file MediaWikiExtensions.php.
PremadeMediawikiExtensionGroups::__construct | ( | $ | def, | |
$ | path | |||
) |
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.
PremadeMediawikiExtensionGroups::createMessageGroup | ( | $ | id, | |
$ | info | |||
) | [protected] |
Creates MediaWikiExtensionMessageGroup objects from parsed data.
string | $id unique group id already prefixed | |
array | $info array of group info |
Definition at line 92 of file MediaWikiExtensions.php.
Referenced by register().
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().
PremadeMediawikiExtensionGroups::register | ( | array &$ | list, | |
array &$ | deps | |||
) |
Hook: TranslatePostInitGroups.
Definition at line 74 of file MediaWikiExtensions.php.
PremadeMediawikiExtensionGroups::setGroupPrefix | ( | $ | value | ) |
How to prefix message group ids.
Definition at line 56 of file MediaWikiExtensions.php.
PremadeMediawikiExtensionGroups::setNamespace | ( | $ | value | ) |
What namespace holds the messages.
Definition at line 64 of file MediaWikiExtensions.php.
PremadeMediawikiExtensionGroups::setUseConfigure | ( | $ | value | ) |
Whether to use the Configure extension to load extension home pages.
Definition at line 48 of file MediaWikiExtensions.php.
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.