MediaWiki  REL1_22
ResourceLoaderContext Class Reference

Object passed around to modules which contains information about the state of a specific loader request. More...

List of all members.

Public Member Functions

 __construct ($resourceLoader, WebRequest $request)
 getDebug ()
 getDirection ()
 getHash ()
 getLanguage ()
 getModules ()
 getOnly ()
 getRaw ()
 getRequest ()
 getResourceLoader ()
 getSkin ()
 getUser ()
 getVersion ()
 shouldIncludeMessages ()
 shouldIncludeScripts ()
 shouldIncludeStyles ()

Static Public Member Functions

static expandModuleNames ($modules)
 Expand a string of the form jquery.foo,bar|jquery.ui.baz,quux to an array of module names like array( 'jquery.foo', 'jquery.bar', 'jquery.ui.baz', 'jquery.ui.quux' )
static newDummyContext ()
 Return a dummy ResourceLoaderContext object suitable for passing into things that don't "really" need a context.

Protected Attributes

 $debug
 $direction
 $hash
 $language
 $modules
 $only
 $raw
 $request
 $resourceLoader
 $skin
 $user
 $version

Detailed Description

Object passed around to modules which contains information about the state of a specific loader request.

Definition at line 29 of file ResourceLoaderContext.php.


Constructor & Destructor Documentation


Member Function Documentation

static ResourceLoaderContext::expandModuleNames ( modules) [static]

Expand a string of the form jquery.foo,bar|jquery.ui.baz,quux to an array of module names like array( 'jquery.foo', 'jquery.bar', 'jquery.ui.baz', 'jquery.ui.quux' )

Parameters:
string$modulesPacked module name list
Returns:
array of module names

Definition at line 84 of file ResourceLoaderContext.php.

References $modules, $retval, array(), and as.

Referenced by __construct(), and ResourceLoaderTest\testexpandModuleNames().

Returns:
string

Definition at line 159 of file ResourceLoaderContext.php.

References Language\factory(), getLanguage(), and request.

Referenced by getHash().

Returns:
array

Definition at line 138 of file ResourceLoaderContext.php.

Referenced by ResourceFileCache\newFromContext().

Returns:
String|null

Definition at line 194 of file ResourceLoaderContext.php.

References only.

Referenced by ResourceLoaderStartUpModule\getScript(), and ResourceFileCache\newFromContext().

Returns:
bool

Definition at line 208 of file ResourceLoaderContext.php.

Return a dummy ResourceLoaderContext object suitable for passing into things that don't "really" need a context.

Returns:
ResourceLoaderContext

Definition at line 117 of file ResourceLoaderContext.php.

References array().

Returns:
bool

Definition at line 229 of file ResourceLoaderContext.php.

References only.

Returns:
bool

Definition at line 215 of file ResourceLoaderContext.php.

References only.

Returns:
bool

Definition at line 222 of file ResourceLoaderContext.php.

References only.


Member Data Documentation

ResourceLoaderContext::$debug [protected]

Definition at line 40 of file ResourceLoaderContext.php.

ResourceLoaderContext::$direction [protected]

Definition at line 37 of file ResourceLoaderContext.php.

ResourceLoaderContext::$hash [protected]

Definition at line 43 of file ResourceLoaderContext.php.

ResourceLoaderContext::$language [protected]

Definition at line 36 of file ResourceLoaderContext.php.

ResourceLoaderContext::$modules [protected]

Definition at line 35 of file ResourceLoaderContext.php.

Referenced by __construct(), and expandModuleNames().

ResourceLoaderContext::$only [protected]

Definition at line 41 of file ResourceLoaderContext.php.

ResourceLoaderContext::$raw [protected]

Definition at line 44 of file ResourceLoaderContext.php.

ResourceLoaderContext::$request [protected]

Definition at line 34 of file ResourceLoaderContext.php.

Referenced by __construct().

ResourceLoaderContext::$resourceLoader [protected]

Definition at line 33 of file ResourceLoaderContext.php.

Referenced by __construct().

ResourceLoaderContext::$skin [protected]

Definition at line 38 of file ResourceLoaderContext.php.

ResourceLoaderContext::$user [protected]

Definition at line 39 of file ResourceLoaderContext.php.

ResourceLoaderContext::$version [protected]

Definition at line 42 of file ResourceLoaderContext.php.


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