MediaWiki  1.23.2
ResourceLoaderFileModuleTestModule Class Reference
Inheritance diagram for ResourceLoaderFileModuleTestModule:
Collaboration diagram for ResourceLoaderFileModuleTestModule:

Additional Inherited Members

- Public Member Functions inherited from ResourceLoaderFileModule
 __construct ( $options=array(), $localBasePath=null, $remoteBasePath=null)
 Constructs a new module from an options array. More...
 
 getAllStyleFiles ()
 Returns all style files used by this module. More...
 
 getDefinitionSummary (ResourceLoaderContext $context)
 Get the definition summary for this module. More...
 
 getDependencies ()
 Gets list of names of modules this module depends on. More...
 
 getFlip ( $context)
 Get whether CSS for this module should be flipped. More...
 
 getGroup ()
 Gets the name of the group this module should be loaded in. More...
 
 getLoaderScript ()
 Gets loader script. More...
 
 getMessages ()
 Gets list of message keys used by this module. More...
 
 getModifiedTime (ResourceLoaderContext $context)
 Get the last modified timestamp of this module. More...
 
 getPosition ()
 
 getScript (ResourceLoaderContext $context)
 Gets all scripts for a given context concatenated together. More...
 
 getScriptURLsForDebug (ResourceLoaderContext $context)
 
 getStyles (ResourceLoaderContext $context)
 Gets all styles for a given context concatenated together. More...
 
 getStyleSheetLang ( $path)
 Infer the stylesheet language from a stylesheet file path. More...
 
 getStyleURLsForDebug (ResourceLoaderContext $context)
 
 getTargets ()
 Get target(s) for the module, eg ['desktop'] or ['desktop', 'mobile']. More...
 
 isRaw ()
 
 supportsURLLoading ()
 
- Public Member Functions inherited from ResourceLoaderModule
 getDefinitionMtime (ResourceLoaderContext $context)
 Helper method for calculating when this module's definition summary was last changed. More...
 
 getFileDependencies ( $skin)
 Get the files this module depends on indirectly for a given skin. More...
 
 getHashMtime (ResourceLoaderContext $context)
 Helper method for calculating when the module's hash (if it has one) changed. More...
 
 getModifiedHash (ResourceLoaderContext $context)
 Get the hash for whatever this module may contain. More...
 
 getMsgBlobMtime ( $lang)
 Get the last modification timestamp of the message blob for this module in a given language. More...
 
 getName ()
 Get this module's name. More...
 
 getOrigin ()
 Get this module's origin. More...
 
 getSource ()
 Get the origin of this module. More...
 
 isKnownEmpty (ResourceLoaderContext $context)
 Check whether this module is known to be empty. More...
 
 setFileDependencies ( $skin, $deps)
 Set preloaded file dependency information. More...
 
 setMsgBlobMtime ( $lang, $mtime)
 Set a preloaded message blob last modification timestamp. More...
 
 setName ( $name)
 Set this module's name. More...
 
 setOrigin ( $origin)
 Set this module's origin. More...
 
- Public Attributes inherited from ResourceLoaderModule
const ORIGIN_ALL = 10
 
const ORIGIN_CORE_INDIVIDUAL = 2
 
const ORIGIN_CORE_SITEWIDE = 1
 
const ORIGIN_USER_INDIVIDUAL = 4
 
const ORIGIN_USER_SITEWIDE = 3
 
const TYPE_COMBINED = 'combined'
 
const TYPE_MESSAGES = 'messages'
 
const TYPE_SCRIPTS = 'scripts'
 
const TYPE_STYLES = 'styles'
 
- Protected Member Functions inherited from ResourceLoaderFileModule
 compileLESSFile ( $fileName)
 Compile a LESS file into CSS. More...
 
 getLocalPath ( $path)
 
 getRemotePath ( $path)
 
 getScriptFiles (ResourceLoaderContext $context)
 Gets a list of file paths for all scripts in this module, in order of propper execution. More...
 
 getStyleFiles (ResourceLoaderContext $context)
 Gets a list of file paths for all styles in this module, in order of propper inclusion. More...
 
 readScriptFiles (array $scripts)
 Gets the contents of a list of JavaScript files. More...
 
 readStyleFile ( $path, $flip)
 Reads a style file. More...
 
 readStyleFiles (array $styles, $flip)
 Gets the contents of a list of CSS files. More...
 
- Protected Member Functions inherited from ResourceLoaderModule
 validateScriptFile ( $fileName, $contents)
 Validate a given script file; if valid returns the original source. More...
 
- Static Protected Member Functions inherited from ResourceLoaderFileModule
static collateFilePathListByOption (array $list, $option, $default)
 Collates file paths by option (where provided). More...
 
static getLESSCacheKey ( $fileName)
 Generate a cache key for a LESS file. More...
 
static tryForKey (array $list, $key, $fallback=null)
 Gets a list of element that match a key, optionally using a fallback key. More...
 
- Static Protected Member Functions inherited from ResourceLoaderModule
static javaScriptParser ()
 
static safeFilemtime ( $filename)
 Safe version of filemtime(), which doesn't throw a PHP warning if the file doesn't exist but returns 1 instead. More...
 
- Protected Attributes inherited from ResourceLoaderFileModule
 $debugRaw = true
 Boolean: Link to raw files in debug mode. More...
 
 $debugScripts = array()
 Array: List of paths to JavaScript files to include in debug mode. More...
 
 $dependencies = array()
 Array: List of modules this module depends on. More...
 
 $group
 String: Name of group to load this module in. More...
 
 $hasGeneratedStyles = false
 Boolean: Whether getStyleURLsForDebug should return raw file paths, or return load.php urls. More...
 
 $languageScripts = array()
 Array: List of JavaScript files to include when using a specific language. More...
 
 $loaderScripts = array()
 Array: List of paths to JavaScript files to include in the startup module. More...
 
 $localBasePath = ''
 String: Local base path, see __construct() More...
 
 $localFileRefs = array()
 Array: Place where readStyleFile() tracks file dependencies. More...
 
 $messages = array()
 Array: List of message keys used by this module. More...
 
 $modifiedTime = array()
 Array: Cache for mtime. More...
 
 $position = 'bottom'
 String: Position on the page to load this module at. More...
 
 $raw = false
 Boolean: Whether mw.loader.state() call should be omitted. More...
 
 $remoteBasePath = ''
 String: Remote base path, see __construct() More...
 
 $scripts = array()
 Array: List of paths to JavaScript files to always include. More...
 
 $skinScripts = array()
 Array: List of JavaScript files to include when using a specific skin. More...
 
 $skinStyles = array()
 Array: List of paths to CSS files to include when using specific skins. More...
 
 $styles = array()
 Array: List of paths to CSS files to always include. More...
 
 $targets = array( 'desktop' )
 
- Protected Attributes inherited from ResourceLoaderModule
 $fileDeps = array()
 
 $msgBlobMtime = array()
 
 $name = null
 
 $origin = self::ORIGIN_CORE_SITEWIDE
 
 $targets = array( 'desktop' )
 

Detailed Description

Definition at line 68 of file ResourceLoaderTestCase.php.


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