MediaWiki  REL1_22
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)
 supportsURLLoading ()

Protected Member Functions

 contextUserTokens ()
 Fetch the tokens for the current user.

Protected Attributes

 $origin = self::ORIGIN_CORE_INDIVIDUAL

Detailed Description

Module for user tokens.

Definition at line 27 of file ResourceLoaderUserTokensModule.php.


Member Function Documentation

Fetch the tokens for the current user.

Returns:
array: List of tokens keyed by token type

Definition at line 40 of file ResourceLoaderUserTokensModule.php.

References $wgUser, array(), ApiQueryRecentChanges\getPatrolToken(), ApiQueryInfo\getWatchToken(), and global.

Referenced by getScript().

Returns:
string

Reimplemented from ResourceLoaderModule.

Definition at line 71 of file ResourceLoaderUserTokensModule.php.


Member Data Documentation

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

Reimplemented from ResourceLoaderModule.

Definition at line 31 of file ResourceLoaderUserTokensModule.php.


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