MediaWiki
REL1_22
|
ResourceLoader module for populating language specific data. More...
Public Member Functions | |
getDependencies () | |
getModifiedHash (ResourceLoaderContext $context) | |
getModifiedTime (ResourceLoaderContext $context) | |
getScript (ResourceLoaderContext $context) | |
Protected Member Functions | |
getData () | |
Get all the dynamic data for the content language to an array. | |
getDigitGroupingPattern () | |
Get the digit groupin Pattern for the site content language. | |
getDigitTransformTable () | |
Get the digit transform table for the content language. | |
getPluralRules () | |
Get the plural forms for the site content language. | |
getSeparatorTransformTable () | |
Get seperator transform table required for converting the . | |
getSiteLangGrammarForms () | |
Get the grammar forms for the site content language. | |
Protected Attributes | |
$language | |
$targets = array( 'desktop', 'mobile' ) |
ResourceLoader module for populating language specific data.
Definition at line 28 of file ResourceLoaderLanguageDataModule.php.
ResourceLoaderLanguageDataModule::getData | ( | ) | [protected] |
Get all the dynamic data for the content language to an array.
NOTE: Before calling this you HAVE to make sure $this->language is set.
Definition at line 85 of file ResourceLoaderLanguageDataModule.php.
References array(), getDigitGroupingPattern(), getDigitTransformTable(), getPluralRules(), getSeparatorTransformTable(), and getSiteLangGrammarForms().
Referenced by getModifiedHash(), and getScript().
Reimplemented from ResourceLoaderModule.
Definition at line 128 of file ResourceLoaderLanguageDataModule.php.
References array().
ResourceLoaderLanguageDataModule::getDigitGroupingPattern | ( | ) | [protected] |
Get the digit groupin Pattern for the site content language.
Definition at line 55 of file ResourceLoaderLanguageDataModule.php.
References language.
Referenced by getData().
ResourceLoaderLanguageDataModule::getDigitTransformTable | ( | ) | [protected] |
Get the digit transform table for the content language.
Definition at line 64 of file ResourceLoaderLanguageDataModule.php.
References language.
Referenced by getData().
$context | ResourceLoaderContext |
Reimplemented from ResourceLoaderModule.
Definition at line 119 of file ResourceLoaderLanguageDataModule.php.
References Language\factory(), getData(), ResourceLoaderContext\getLanguage(), and language.
$context | ResourceLoaderContext |
Reimplemented from ResourceLoaderModule.
Definition at line 111 of file ResourceLoaderLanguageDataModule.php.
References ResourceLoaderModule\getHashMtime().
ResourceLoaderLanguageDataModule::getPluralRules | ( | ) | [protected] |
Get the plural forms for the site content language.
Definition at line 46 of file ResourceLoaderLanguageDataModule.php.
References language.
Referenced by getData().
$context | ResourceLoaderContext |
Reimplemented from ResourceLoaderModule.
Definition at line 99 of file ResourceLoaderLanguageDataModule.php.
References array(), Xml\encodeJsCall(), Language\factory(), getData(), ResourceLoaderContext\getLanguage(), and language.
ResourceLoaderLanguageDataModule::getSeparatorTransformTable | ( | ) | [protected] |
Get seperator transform table required for converting the .
and , sign to appropriate forms in site content language.
Definition at line 74 of file ResourceLoaderLanguageDataModule.php.
References language.
Referenced by getData().
ResourceLoaderLanguageDataModule::getSiteLangGrammarForms | ( | ) | [protected] |
Get the grammar forms for the site content language.
Definition at line 37 of file ResourceLoaderLanguageDataModule.php.
References language.
Referenced by getData().
ResourceLoaderLanguageDataModule::$language [protected] |
Definition at line 30 of file ResourceLoaderLanguageDataModule.php.
ResourceLoaderLanguageDataModule::$targets = array( 'desktop', 'mobile' ) [protected] |
Reimplemented from ResourceLoaderModule.
Definition at line 31 of file ResourceLoaderLanguageDataModule.php.