MediaWiki  REL1_19
ResourceLoaderUserTokensModule Class Reference

Module for user tokens. More...

Inheritance diagram for ResourceLoaderUserTokensModule:
Collaboration diagram for ResourceLoaderUserTokensModule:

List of all members.

Public Member Functions

 getGroup ()
 getScript (ResourceLoaderContext $context)

Protected Member Functions

 contextUserTokens (ResourceLoaderContext $context)
 Fetch the tokens for the current user.

Protected Attributes

 $origin = self::ORIGIN_CORE_INDIVIDUAL

Detailed Description

Module for user tokens.

Definition at line 25 of file ResourceLoaderUserTokensModule.php.


Member Function Documentation

Fetch the tokens for the current user.

Parameters:
$contextResourceLoaderContext: Context object
Returns:
Array: List of tokens keyed by token type

Definition at line 39 of file ResourceLoaderUserTokensModule.php.

References $wgUser, and ApiQueryInfo\getWatchToken().

Referenced by getScript().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
string

Reimplemented from ResourceLoaderModule.

Definition at line 60 of file ResourceLoaderUserTokensModule.php.

Parameters:
$contextResourceLoaderContext
Returns:
string

Reimplemented from ResourceLoaderModule.

Definition at line 52 of file ResourceLoaderUserTokensModule.php.

References contextUserTokens(), and Xml\encodeJsCall().

Here is the call graph for this function:


Member Data Documentation

ResourceLoaderUserTokensModule::$origin = self::ORIGIN_CORE_INDIVIDUAL [protected]

Reimplemented from ResourceLoaderModule.

Definition at line 29 of file ResourceLoaderUserTokensModule.php.


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