[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/resourceloader/ -> ResourceLoaderContext.php (summary)

Context for resource loader modules. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Trevor Parscal
Author: Roan Kattouw
File Size: 242 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ResourceLoaderContext:: (18 methods):
  __construct()
  expandModuleNames()
  newDummyContext()
  getResourceLoader()
  getRequest()
  getModules()
  getLanguage()
  getDirection()
  getSkin()
  getUser()
  getDebug()
  getOnly()
  getVersion()
  getRaw()
  shouldIncludeScripts()
  shouldIncludeStyles()
  shouldIncludeMessages()
  getHash()


Class: ResourceLoaderContext  - X-Ref

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

__construct( ResourceLoader $resourceLoader, WebRequest $request )   X-Ref

param: ResourceLoader $resourceLoader
param: WebRequest $request

expandModuleNames( $modules )   X-Ref
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' )

param: string $modules Packed module name list
return: array Array of module names

newDummyContext()   X-Ref
Return a dummy ResourceLoaderContext object suitable for passing into
things that don't "really" need a context.

return: ResourceLoaderContext

getResourceLoader()   X-Ref

return: ResourceLoader

getRequest()   X-Ref

return: WebRequest

getModules()   X-Ref

return: array

getLanguage()   X-Ref

return: string

getDirection()   X-Ref

return: string

getSkin()   X-Ref

return: string|null

getUser()   X-Ref

return: string|null

getDebug()   X-Ref

return: bool

getOnly()   X-Ref

return: string|null

getVersion()   X-Ref

return: string|null

getRaw()   X-Ref

return: bool

shouldIncludeScripts()   X-Ref

return: bool

shouldIncludeStyles()   X-Ref

return: bool

shouldIncludeMessages()   X-Ref

return: bool

getHash()   X-Ref

return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1