MediaWiki  REL1_22
ResourceLoaderLanguageDataModule Class Reference

ResourceLoader module for populating language specific data. More...

Inheritance diagram for ResourceLoaderLanguageDataModule:
Collaboration diagram for ResourceLoaderLanguageDataModule:

List of all members.

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' )

Detailed Description

ResourceLoader module for populating language specific data.

Definition at line 28 of file ResourceLoaderLanguageDataModule.php.


Member Function Documentation

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.

Returns:
array

Definition at line 85 of file ResourceLoaderLanguageDataModule.php.

References array(), getDigitGroupingPattern(), getDigitTransformTable(), getPluralRules(), getSeparatorTransformTable(), and getSiteLangGrammarForms().

Referenced by getModifiedHash(), and getScript().

Returns:
array

Reimplemented from ResourceLoaderModule.

Definition at line 128 of file ResourceLoaderLanguageDataModule.php.

References array().

Get the digit groupin Pattern for the site content language.

Returns:
array

Definition at line 55 of file ResourceLoaderLanguageDataModule.php.

References language.

Referenced by getData().

Get the digit transform table for the content language.

Returns:
array

Definition at line 64 of file ResourceLoaderLanguageDataModule.php.

References language.

Referenced by getData().

Parameters:
$contextResourceLoaderContext
Returns:
int: UNIX timestamp

Reimplemented from ResourceLoaderModule.

Definition at line 111 of file ResourceLoaderLanguageDataModule.php.

References ResourceLoaderModule\getHashMtime().

Get the plural forms for the site content language.

Returns:
array

Definition at line 46 of file ResourceLoaderLanguageDataModule.php.

References language.

Referenced by getData().

Get seperator transform table required for converting the .

and , sign to appropriate forms in site content language.

Returns:
array

Definition at line 74 of file ResourceLoaderLanguageDataModule.php.

References language.

Referenced by getData().

Get the grammar forms for the site content language.

Returns:
array

Definition at line 37 of file ResourceLoaderLanguageDataModule.php.

References language.

Referenced by getData().


Member Data Documentation

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.


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