MediaWiki  REL1_24
ResourceLoaderEditToolbarModule Class Reference

ResourceLoader module for the edit toolbar. More...

Inheritance diagram for ResourceLoaderEditToolbarModule:
Collaboration diagram for ResourceLoaderEditToolbarModule:

List of all members.

Public Member Functions

 getModifiedHash (ResourceLoaderContext $context)
 getModifiedTime (ResourceLoaderContext $context)

Protected Member Functions

 getLessCompiler (ResourceLoaderContext $context=null)
 Get a LESS compiler instance for this module.

Private Member Functions

 getLessVars (ResourceLoaderContext $context)
 Get language-specific LESS variables for this module.

Static Private Member Functions

static cssSerializeString ($value)
 Serialize a string (escape and quote) for use as a CSS string value.

Detailed Description

ResourceLoader module for the edit toolbar.

Since:
1.24

Definition at line 28 of file ResourceLoaderEditToolbarModule.php.


Member Function Documentation

static ResourceLoaderEditToolbarModule::cssSerializeString ( value) [static, private]

Serialize a string (escape and quote) for use as a CSS string value.

http://www.w3.org/TR/2013/WD-cssom-20131205/#serialize-a-string

Parameters:
string$value
Returns:
string

Definition at line 36 of file ResourceLoaderEditToolbarModule.php.

References $value, and array().

Referenced by getLessVars().

Get a LESS compiler instance for this module.

Set our variables in it.

Exceptions:
MWException
Parameters:
ResourceLoaderContext$context
Returns:
lessc

Reimplemented from ResourceLoaderFileModule.

Definition at line 97 of file ResourceLoaderEditToolbarModule.php.

References getLessVars().

Get language-specific LESS variables for this module.

Returns:
array

Definition at line 52 of file ResourceLoaderEditToolbarModule.php.

References $key, $value, $vars, as, cssSerializeString(), Language\factory(), and ResourceLoaderContext\getLanguage().

Referenced by getLessCompiler(), and getModifiedHash().

Parameters:
ResourceLoaderContext$context
Returns:
string Hash

Reimplemented from ResourceLoaderModule.

Definition at line 81 of file ResourceLoaderEditToolbarModule.php.

References getLessVars().

Parameters:
ResourceLoaderContext$context
Returns:
int UNIX timestamp

Reimplemented from ResourceLoaderFileModule.

Definition at line 70 of file ResourceLoaderEditToolbarModule.php.

References ResourceLoaderModule\getHashMtime().


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