MediaWiki REL1_37
|
Module based on local JavaScript/CSS files. More...
Public Member Functions | |
__construct (array $options=[], $localBasePath=null, $remoteBasePath=null) | |
Constructs a new module from an options array. | |
enableModuleContentVersion () | |
Disable module content versioning. | |
getAllStyleFiles () | |
Returns all style files and all skin style files used by this module. | |
getDefinitionSummary (ResourceLoaderContext $context) | |
Get the definition summary for this module. | |
getDependencies (ResourceLoaderContext $context=null) | |
Gets list of names of modules this module depends on. | |
getFlip (ResourceLoaderContext $context) | |
Get whether CSS for this module should be flipped. | |
getGroup () | |
Gets the name of the group this module should be loaded in. | |
getMessages () | |
Gets list of message keys used by this module. | |
getPackageFiles (ResourceLoaderContext $context) | |
Resolves the package files definition and generates the content of each package file. | |
getScript (ResourceLoaderContext $context) | |
Gets all scripts for a given context concatenated together. | |
getScriptURLsForDebug (ResourceLoaderContext $context) | |
getSkipFunction () | |
getStyleFiles (ResourceLoaderContext $context) | |
Get a list of file paths for all styles in this module, in order of proper inclusion. | |
getStyles (ResourceLoaderContext $context) | |
Get all styles for a given context. | |
getStyleSheetLang ( $path) | |
Infer the stylesheet language from a stylesheet file path. | |
getStyleURLsForDebug (ResourceLoaderContext $context) | |
getTargets () | |
Get target(s) for the module, eg ['desktop'] or ['desktop', 'mobile']. | |
getTemplates () | |
Takes named templates by the module and returns an array mapping. | |
getType () | |
Get the module's load type. | |
readStyleFiles (array $styles, ResourceLoaderContext $context) | |
Get the contents of a list of CSS files. | |
requiresES6 () | |
Whether the module requires ES6 support in the client. | |
setSkinStylesOverride (array $moduleSkinStyles) | |
Provide overrides for skinStyles to modules that support that. | |
supportsURLLoading () | |
Public Member Functions inherited from ResourceLoaderModule | |
getConfig () | |
getDeprecationInformation (ResourceLoaderContext $context) | |
Get JS representing deprecation information for the current module if available. | |
getHeaders (ResourceLoaderContext $context) | |
Get headers to send as part of a module web response. | |
getModuleContent (ResourceLoaderContext $context) | |
Get an array of this module's resources. | |
getName () | |
Get this module's name. | |
getOrigin () | |
Get this module's origin. | |
getSource () | |
Get the source of this module. | |
getVersionHash (ResourceLoaderContext $context) | |
Get a string identifying the current version of this module in a given context. | |
isKnownEmpty (ResourceLoaderContext $context) | |
Check whether this module is known to be empty. | |
setConfig (Config $config) | |
setDependencyAccessCallbacks (callable $loadCallback, callable $saveCallback) | |
Inject the functions that load/save the indirect file path dependency list from storage. | |
setFileDependencies (ResourceLoaderContext $context, array $paths) | |
Set the indirect dependencies for this module persuant to the skin/language context. | |
setHookContainer (HookContainer $hookContainer) | |
setLogger (LoggerInterface $logger) | |
setMessageBlob ( $blob, $lang) | |
Set in-object cache for message blobs. | |
setName ( $name) | |
Set this module's name. | |
shouldEmbedModule (ResourceLoaderContext $context) | |
Check whether this module should be embeded rather than linked. | |
Static Public Member Functions | |
static | extractBasePaths (array $options=[], $localBasePath=null, $remoteBasePath=null) |
Extract a pair of local and remote base paths from module definition information. | |
static | getPackageFileType ( $path) |
Infer the file type from a package file path. | |
Static Public Member Functions inherited from ResourceLoaderModule | |
static | expandRelativePaths (array $filePaths) |
Expand directories relative to $IP. | |
static | getRelativePaths (array $filePaths) |
Make file paths relative to MediaWiki directory. | |
static | getVary (ResourceLoaderContext $context) |
Get vary string. | |
Protected Member Functions | |
compileLessFile ( $fileName, ResourceLoaderContext $context) | |
compileLessString ( $style, $stylePath, ResourceLoaderContext $context) | |
Compile a LESS string into CSS. | |
getAllSkinStyleFiles () | |
Gets a list of file paths for all skin style files in the module, for all available skins. | |
getLocalPath ( $path) | |
getPath ( $path) | |
getRemotePath ( $path) | |
getSkinStyleFiles ( $skinName) | |
Gets a list of file paths for all skin styles in the module used by the skin. | |
getVueComponentParser () | |
processStyle ( $style, $styleLang, $path, ResourceLoaderContext $context) | |
Process a CSS/LESS string. | |
readStyleFile ( $path, ResourceLoaderContext $context) | |
Read and process a style file. | |
stripBom ( $input) | |
Takes an input string and removes the UTF-8 BOM character if present. | |
Protected Member Functions inherited from ResourceLoaderModule | |
buildContent (ResourceLoaderContext $context) | |
Bundle all resources attached to this module into an array. | |
getFileDependencies (ResourceLoaderContext $context) | |
Get the indirect dependencies for this module persuant to the skin/language context. | |
getHookRunner () | |
Get a HookRunner for running core hooks. | |
getLessVars (ResourceLoaderContext $context) | |
Get module-specific LESS variables, if any. | |
getLogger () | |
getMessageBlob (ResourceLoaderContext $context) | |
Get the hash of the message blob. | |
getPreloadLinks (ResourceLoaderContext $context) | |
Get a list of resources that web browsers may preload. | |
saveFileDependencies (ResourceLoaderContext $context, array $curFileRefs) | |
Save the indirect dependencies for this module persuant to the skin/language context. | |
validateScriptFile ( $fileName, $contents) | |
Validate a user-provided JavaScript blob. | |
Static Protected Member Functions | |
static | collateFilePathListByOption (array $list, $option, $default) |
Collates file paths by option (where provided). | |
static | tryForKey (array $list, $key, $fallback=null) |
Get a list of element that match a key, optionally using a fallback key. | |
Static Protected Member Functions inherited from ResourceLoaderModule | |
static | safeFileHash ( $filePath) |
Compute a non-cryptographic string hash of a file's contents. | |
Protected Attributes | |
bool | $debugRaw = true |
Link to raw files in debug mode. | |
array | $debugScripts = [] |
List of paths to JavaScript files to include in debug mode. | |
array | $dependencies = [] |
List of modules this module depends on. | |
bool | $es6 = false |
Whether this module requires the client to support ES6. | |
string | $group |
Name of group to load this module in. | |
bool | $hasGeneratedStyles = false |
Whether getStyleURLsForDebug should return raw file paths, or return load.php urls. | |
array | $languageScripts = [] |
List of JavaScript files to include when using a specific language. | |
string | $localBasePath = '' |
Local base path, see __construct() | |
array | $localFileRefs = [] |
Place where readStyleFile() tracks file dependencies. | |
array | $messages = [] |
List of message keys used by this module. | |
array | $missingLocalFileRefs = [] |
Place where readStyleFile() tracks file dependencies for non-existent files. | |
bool | $noflip = false |
Whether CSSJanus flipping should be skipped for this module. | |
array | $packageFiles = null |
List of packaged files to make available through require() | |
string | $remoteBasePath = '' |
Remote base path, see __construct() | |
array | $scripts = [] |
List of paths to JavaScript files to always include. | |
array | $skinScripts = [] |
List of JavaScript files to include when using a specific skin. | |
array | $skinStyles = [] |
List of paths to CSS files to include when using specific skins. | |
string | $skipFunction = null |
File name containing the body of the skip function. | |
array | $styles = [] |
List of paths to CSS files to always include. | |
string[] | $targets = [ 'desktop' ] |
array | $templates = [] |
Saves a list of the templates named by the modules. | |
VueComponentParser null | $vueComponentParser = null |
Lazy-created by getVueComponentParser() | |
Protected Attributes inherited from ResourceLoaderModule | |
Config | $config |
array | $contents = [] |
Map of (context hash => cached module content) | |
string bool | $deprecated = false |
Deprecation string or true if deprecated; false otherwise. | |
array | $fileDeps = [] |
Map of (variant => indirect file dependencies) | |
LoggerInterface | $logger |
array | $msgBlobs = [] |
Map of (language => in-object cache for message blob) | |
string null | $name = null |
Module name. | |
int | $origin = self::ORIGIN_CORE_SITEWIDE |
Script and style modules form a hierarchy of trustworthiness, with core modules like skins and jQuery as most trustworthy, and user scripts as least trustworthy. | |
string[] | $targets = [ 'desktop' ] |
What client platforms the module targets (e.g. | |
array | $versionHash = [] |
Map of (context hash => cached module version hash) | |
Private Member Functions | |
expandPackageFiles (ResourceLoaderContext $context) | |
Internal helper for use by getPackageFiles(), getFileHashes() and getDefinitionSummary(). | |
getFileContents ( $localPath, $type) | |
Helper method for getting a file. | |
getFileHashes (ResourceLoaderContext $context) | |
Helper method for getDefinitionSummary. | |
getLanguageScripts ( $lang) | |
Get the set of language scripts for the given language, possibly using a fallback language. | |
getScriptFiles (ResourceLoaderContext $context) | |
Get a list of script file paths for this module, in order of proper execution. | |
readScriptFiles (array $scripts) | |
Get the contents of a list of JavaScript files. | |
Private Attributes | |
array | $expandedPackageFiles = [] |
Expanded versions of $packageFiles, lazy-computed by expandPackageFiles(); keyed by context hash. | |
array | $fullyExpandedPackageFiles = [] |
Further expanded versions of $expandedPackageFiles, lazy-computed by getPackageFiles(); keyed by context hash. | |
Module based on local JavaScript/CSS files.
The following public methods can query the database:
Definition at line 40 of file ResourceLoaderFileModule.php.
ResourceLoaderFileModule::__construct | ( | array | $options = [] , |
$localBasePath = null , |
|||
$remoteBasePath = null |
|||
) |
Constructs a new module from an options array.
array | $options | See $wgResourceModules for the available options. |
string | null | $localBasePath | Base path to prepend to all local paths in $options. Defaults to $IP |
string | null | $remoteBasePath | Base path to prepend to all remote paths in $options. Defaults to $wgResourceBasePath |
InvalidArgumentException |
Reimplemented in ResourceLoaderLessVarFileModule, and ResourceLoaderSkinModule.
Definition at line 200 of file ResourceLoaderFileModule.php.
References $localBasePath, $remoteBasePath, extractBasePaths(), and getPath().
|
staticprotected |
Collates file paths by option (where provided).
array | $list | List of file paths in any combination of index/path or path/options pairs |
string | $option | Option name |
mixed | $default | Default value if the option isn't set |
Definition at line 745 of file ResourceLoaderFileModule.php.
|
protected |
string | $fileName | |
ResourceLoaderContext | $context |
Definition at line 1103 of file ResourceLoaderFileModule.php.
References wfDeprecated().
|
protected |
Compile a LESS string into CSS.
Keeps track of all used files and adds them to localFileRefs.
Exception | If less.php encounters a parse error |
string | $style | LESS source to compile |
string | $stylePath | File path of LESS source, used for resolving relative file paths |
ResourceLoaderContext | $context | Context in which to generate script |
Definition at line 1122 of file ResourceLoaderFileModule.php.
References $cache, $path, CACHE_ANYTHING, ResourceLoaderModule\expandRelativePaths(), FileContentsHasher\getFileContentsHash(), ResourceLoaderModule\getRelativePaths(), ResourceLoaderContext\getResourceLoader(), ResourceLoaderContext\getSkin(), and serialize().
ResourceLoaderFileModule::enableModuleContentVersion | ( | ) |
Disable module content versioning.
This class uses getDefinitionSummary() instead, to avoid filesystem overhead involved with building the full module content inside a startup request.
Reimplemented from ResourceLoaderModule.
Reimplemented in ResourceLoaderLanguageDataModule.
Definition at line 534 of file ResourceLoaderFileModule.php.
|
private |
Internal helper for use by getPackageFiles(), getFileHashes() and getDefinitionSummary().
This expands the 'packageFiles' definition into something that's (almost) the right format for getPackageFiles() to return. It expands shorthands, resolves config vars, and handles summarising any non-file data for getVersionHash(). For file-based data, getFileHashes() handles it instead, which also ends up in getDefinitionSummary().
What it does not do is reading the actual contents of any specified files, nor invoking the computation callbacks. Those things are done by getPackageFiles() instead to improve backend performance by only doing this work when the module response is needed, and not when merely computing the version hash for StartupModule, or when checking If-None-Match headers for a HTTP 304 response.
ResourceLoaderContext | $context |
LogicException | If the 'packageFiles' definition is invalid. |
Definition at line 1220 of file ResourceLoaderFileModule.php.
References $file, $path, $type, and ResourceLoaderContext\getHash().
Referenced by getDefinitionSummary(), and getFileHashes().
|
static |
Extract a pair of local and remote base paths from module definition information.
Implementation note: the amount of global state used in this function is staggering.
array | $options | Module definition |
string | null | $localBasePath | Path to use if not provided in module definition. Defaults to $IP |
string | null | $remoteBasePath | Path to use if not provided in module definition. Defaults to $wgResourceBasePath |
Definition at line 306 of file ResourceLoaderFileModule.php.
References $IP, $localBasePath, $remoteBasePath, $wgExtensionAssetsPath, $wgResourceBasePath, and $wgStylePath.
Referenced by __construct(), ResourceLoaderSkinModule\getStyleFiles(), getThemePaths(), and setSkinStylesOverride().
|
protected |
Gets a list of file paths for all skin style files in the module, for all available skins.
Definition at line 904 of file ResourceLoaderFileModule.php.
ResourceLoaderFileModule::getAllStyleFiles | ( | ) |
Returns all style files and all skin style files used by this module.
Definition at line 926 of file ResourceLoaderFileModule.php.
ResourceLoaderFileModule::getDefinitionSummary | ( | ResourceLoaderContext | $context | ) |
Get the definition summary for this module.
ResourceLoaderContext | $context |
Reimplemented from ResourceLoaderModule.
Reimplemented in ResourceLoaderSkinModule.
Definition at line 604 of file ResourceLoaderFileModule.php.
References $packageFiles, expandPackageFiles(), getFileHashes(), ResourceLoaderModule\getLessVars(), and ResourceLoaderModule\getMessageBlob().
ResourceLoaderFileModule::getDependencies | ( | ResourceLoaderContext | $context = null | ) |
Gets list of names of modules this module depends on.
ResourceLoaderContext | null | $context |
Reimplemented from ResourceLoaderModule.
Reimplemented in ResourceLoaderForeignApiModule.
Definition at line 489 of file ResourceLoaderFileModule.php.
References $dependencies.
|
private |
Helper method for getting a file.
string | $localPath | The path to the resource to load |
string | $type | The type of resource being loaded (for error reporting only) |
RuntimeException | If the supplied path is not found, or not a path |
Definition at line 501 of file ResourceLoaderFileModule.php.
References stripBom().
Referenced by getSkipFunction().
|
private |
Helper method for getDefinitionSummary.
ResourceLoaderContext | $context |
Definition at line 544 of file ResourceLoaderFileModule.php.
References $expandedPackageFiles, $packageFiles, $skipFunction, expandPackageFiles(), ResourceLoaderContext\getDebug(), FileContentsHasher\getFileContentsHash(), ResourceLoaderModule\getFileDependencies(), ResourceLoaderContext\getLanguage(), getLanguageScripts(), ResourceLoaderContext\getSkin(), getStyleFiles(), and tryForKey().
Referenced by getDefinitionSummary().
ResourceLoaderFileModule::getFlip | ( | ResourceLoaderContext | $context | ) |
Get whether CSS for this module should be flipped.
ResourceLoaderContext | $context |
Reimplemented from ResourceLoaderModule.
Definition at line 1061 of file ResourceLoaderFileModule.php.
References ResourceLoaderContext\getDirection().
ResourceLoaderFileModule::getGroup | ( | ) |
Gets the name of the group this module should be loaded in.
Reimplemented from ResourceLoaderModule.
Definition at line 480 of file ResourceLoaderFileModule.php.
References $group.
|
private |
Get the set of language scripts for the given language, possibly using a fallback language.
string | $lang |
Definition at line 813 of file ResourceLoaderFileModule.php.
References $lang, $scripts, and tryForKey().
Referenced by getFileHashes(), and getScriptFiles().
|
protected |
string | ResourceLoaderFilePath | $path |
Definition at line 686 of file ResourceLoaderFileModule.php.
References $path.
Referenced by getSkipFunction().
ResourceLoaderFileModule::getMessages | ( | ) |
Gets list of message keys used by this module.
Reimplemented from ResourceLoaderModule.
Reimplemented in ResourceLoaderLessVarFileModule.
Definition at line 471 of file ResourceLoaderFileModule.php.
References $messages.
ResourceLoaderFileModule::getPackageFiles | ( | ResourceLoaderContext | $context | ) |
Resolves the package files definition and generates the content of each package file.
ResourceLoaderContext | $context |
RuntimeException | If a file doesn't exist, or parsing a .vue file fails |
Definition at line 1357 of file ResourceLoaderFileModule.php.
References $content, ResourceLoaderContext\getDebug(), and ResourceLoaderContext\getHash().
Referenced by getScript(), and getStyles().
|
static |
Infer the file type from a package file path.
string | $path |
Definition at line 726 of file ResourceLoaderFileModule.php.
References $path.
|
protected |
string | ResourceLoaderFilePath | $path |
Definition at line 674 of file ResourceLoaderFileModule.php.
References $path.
Referenced by __construct().
|
protected |
string | ResourceLoaderFilePath | $path |
Definition at line 698 of file ResourceLoaderFileModule.php.
References $path.
Referenced by getScriptURLsForDebug(), and getStyleURLsForDebug().
ResourceLoaderFileModule::getScript | ( | ResourceLoaderContext | $context | ) |
Gets all scripts for a given context concatenated together.
ResourceLoaderContext | $context | Context in which to generate script |
Reimplemented from ResourceLoaderModule.
Reimplemented in ResourceLoaderLanguageDataModule.
Definition at line 362 of file ResourceLoaderFileModule.php.
References $file, $packageFiles, ResourceLoaderModule\getDeprecationInformation(), getPackageFiles(), getScriptFiles(), and readScriptFiles().
|
private |
Get a list of script file paths for this module, in order of proper execution.
ResourceLoaderContext | $context |
Definition at line 793 of file ResourceLoaderFileModule.php.
References ResourceLoaderContext\getDebug(), ResourceLoaderContext\getLanguage(), getLanguageScripts(), and ResourceLoaderContext\getSkin().
Referenced by getScript(), and getScriptURLsForDebug().
ResourceLoaderFileModule::getScriptURLsForDebug | ( | ResourceLoaderContext | $context | ) |
ResourceLoaderContext | $context |
Reimplemented from ResourceLoaderModule.
Definition at line 387 of file ResourceLoaderFileModule.php.
References $file, ResourceLoaderModule\getConfig(), getRemotePath(), and getScriptFiles().
|
protected |
Gets a list of file paths for all skin styles in the module used by the skin.
string | $skinName | The name of the skin |
Definition at line 890 of file ResourceLoaderFileModule.php.
ResourceLoaderFileModule::getSkipFunction | ( | ) |
RuntimeException | If the file doesn't exist |
Reimplemented from ResourceLoaderModule.
Definition at line 514 of file ResourceLoaderFileModule.php.
References getFileContents(), and getLocalPath().
ResourceLoaderFileModule::getStyleFiles | ( | ResourceLoaderContext | $context | ) |
Get a list of file paths for all styles in this module, in order of proper inclusion.
ResourceLoaderContext | $context |
Reimplemented in ResourceLoaderSkinModule.
Definition at line 872 of file ResourceLoaderFileModule.php.
References ResourceLoaderContext\getSkin().
Referenced by getFileHashes(), getStyles(), and getStyleURLsForDebug().
ResourceLoaderFileModule::getStyles | ( | ResourceLoaderContext | $context | ) |
Get all styles for a given context.
ResourceLoaderContext | $context |
Reimplemented from ResourceLoaderModule.
Reimplemented in ResourceLoaderSkinModule.
Definition at line 413 of file ResourceLoaderFileModule.php.
References $file, $packageFiles, $styles, getPackageFiles(), getStyleFiles(), processStyle(), readStyleFiles(), and ResourceLoaderModule\saveFileDependencies().
ResourceLoaderFileModule::getStyleSheetLang | ( | $path | ) |
Infer the stylesheet language from a stylesheet file path.
string | $path |
Definition at line 717 of file ResourceLoaderFileModule.php.
References $path.
ResourceLoaderFileModule::getStyleURLsForDebug | ( | ResourceLoaderContext | $context | ) |
ResourceLoaderContext | $context |
Reimplemented from ResourceLoaderModule.
Definition at line 445 of file ResourceLoaderFileModule.php.
References $file, ResourceLoaderModule\getConfig(), getRemotePath(), and getStyleFiles().
ResourceLoaderFileModule::getTargets | ( | ) |
Get target(s) for the module, eg ['desktop'] or ['desktop', 'mobile'].
Reimplemented from ResourceLoaderModule.
Definition at line 1070 of file ResourceLoaderFileModule.php.
ResourceLoaderFileModule::getTemplates | ( | ) |
Takes named templates by the module and returns an array mapping.
RuntimeException | If a file doesn't exist |
Reimplemented from ResourceLoaderModule.
Definition at line 1185 of file ResourceLoaderFileModule.php.
References $content.
ResourceLoaderFileModule::getType | ( | ) |
Get the module's load type.
Reimplemented from ResourceLoaderModule.
Definition at line 1080 of file ResourceLoaderFileModule.php.
|
protected |
Definition at line 663 of file ResourceLoaderFileModule.php.
References $vueComponentParser.
|
protected |
Process a CSS/LESS string.
This method performs the following processing steps:
string | $style | CSS/LESS string |
string | $styleLang | Language of $style ('css' or 'less') |
string | $path | File path where the CSS/LESS lives, used for resolving relative file paths |
ResourceLoaderContext | $context |
Definition at line 1023 of file ResourceLoaderFileModule.php.
Referenced by getStyles().
|
private |
Get the contents of a list of JavaScript files.
Helper for getScript().
string[] | $scripts | List of file paths to scripts to read, remap and concetenate |
RuntimeException |
Definition at line 950 of file ResourceLoaderFileModule.php.
References ResourceLoader\ensureNewline().
Referenced by getScript().
|
protected |
Read and process a style file.
Reads a file from disk and runs it through processStyle().
This method can be used as a callback for array_map()
string | $path | File path of style file to read |
ResourceLoaderContext | $context |
RuntimeException | If the file doesn't exist |
Definition at line 999 of file ResourceLoaderFileModule.php.
References $path.
ResourceLoaderFileModule::readStyleFiles | ( | array | $styles, |
ResourceLoaderContext | $context | ||
) |
Get the contents of a list of CSS files.
array | $styles | Map of media type to file paths to read, remap, and concatenate |
ResourceLoaderContext | $context |
RuntimeException |
Definition at line 973 of file ResourceLoaderFileModule.php.
References $file.
Referenced by getStyles().
ResourceLoaderFileModule::requiresES6 | ( | ) |
Whether the module requires ES6 support in the client.
If the client does not support ES6, attempting to load a module that requires ES6 will result in an error.
Reimplemented from ResourceLoaderModule.
Definition at line 522 of file ResourceLoaderFileModule.php.
References $es6.
ResourceLoaderFileModule::setSkinStylesOverride | ( | array | $moduleSkinStyles | ) |
Provide overrides for skinStyles to modules that support that.
This MUST be called after self::setName().
array | $moduleSkinStyles |
Reimplemented from ResourceLoaderModule.
Reimplemented in ResourceLoaderOOUIFileModule.
Definition at line 830 of file ResourceLoaderFileModule.php.
References $localBasePath, $path, $remoteBasePath, and extractBasePaths().
|
protected |
Takes an input string and removes the UTF-8 BOM character if present.
We need to remove these after reading a file, because we concatenate our files and the BOM character is not valid in the middle of a string. We already assume UTF-8 everywhere, so this should be safe.
string | $input |
Definition at line 1450 of file ResourceLoaderFileModule.php.
Referenced by getFileContents().
ResourceLoaderFileModule::supportsURLLoading | ( | ) |
Reimplemented from ResourceLoaderModule.
Reimplemented in ResourceLoaderLanguageDataModule.
Definition at line 401 of file ResourceLoaderFileModule.php.
References $packageFiles.
|
staticprotected |
Get a list of element that match a key, optionally using a fallback key.
array[] | $list | List of lists to select from |
string | $key | Key to look for in $list |
string | null | $fallback | Key to look for in $list if $key doesn't exist |
Definition at line 775 of file ResourceLoaderFileModule.php.
References $fallback.
Referenced by getFileHashes(), and getLanguageScripts().
|
protected |
Link to raw files in debug mode.
Definition at line 152 of file ResourceLoaderFileModule.php.
|
protected |
List of paths to JavaScript files to include in debug mode.
Definition at line 84 of file ResourceLoaderFileModule.php.
|
protected |
List of modules this module depends on.
Definition at line 132 of file ResourceLoaderFileModule.php.
Referenced by getDependencies(), and ResourceLoaderForeignApiModule\getDependencies().
|
protected |
Whether this module requires the client to support ES6.
Definition at line 161 of file ResourceLoaderFileModule.php.
Referenced by requiresES6().
|
private |
Expanded versions of $packageFiles, lazy-computed by expandPackageFiles(); keyed by context hash.
Definition at line 117 of file ResourceLoaderFileModule.php.
Referenced by getFileHashes().
|
private |
Further expanded versions of $expandedPackageFiles, lazy-computed by getPackageFiles(); keyed by context hash.
Definition at line 123 of file ResourceLoaderFileModule.php.
|
protected |
Name of group to load this module in.
Definition at line 149 of file ResourceLoaderFileModule.php.
Referenced by getGroup().
|
protected |
Whether getStyleURLsForDebug should return raw file paths, or return load.php urls.
Definition at line 167 of file ResourceLoaderFileModule.php.
|
protected |
List of JavaScript files to include when using a specific language.
Definition at line 66 of file ResourceLoaderFileModule.php.
|
protected |
Local base path, see __construct()
Definition at line 42 of file ResourceLoaderFileModule.php.
Referenced by __construct(), ResourceLoaderLessVarFileModule\__construct(), ResourceLoaderSkinModule\__construct(), extractBasePaths(), and setSkinStylesOverride().
|
protected |
Place where readStyleFile() tracks file dependencies.
Definition at line 176 of file ResourceLoaderFileModule.php.
|
protected |
List of message keys used by this module.
Definition at line 146 of file ResourceLoaderFileModule.php.
Referenced by ResourceLoaderSkinModule\__construct(), ResourceLoaderSkinModule\applyFeaturesCompatibility(), and getMessages().
|
protected |
Place where readStyleFile() tracks file dependencies for non-existent files.
Used in tests to detect missing dependencies.
Definition at line 182 of file ResourceLoaderFileModule.php.
|
protected |
Whether CSSJanus flipping should be skipped for this module.
Definition at line 158 of file ResourceLoaderFileModule.php.
|
protected |
List of packaged files to make available through require()
Definition at line 111 of file ResourceLoaderFileModule.php.
Referenced by getDefinitionSummary(), getFileHashes(), getScript(), getStyles(), and supportsURLLoading().
|
protected |
Remote base path, see __construct()
Definition at line 45 of file ResourceLoaderFileModule.php.
Referenced by __construct(), ResourceLoaderLessVarFileModule\__construct(), ResourceLoaderSkinModule\__construct(), extractBasePaths(), and setSkinStylesOverride().
|
protected |
List of paths to JavaScript files to always include.
Definition at line 57 of file ResourceLoaderFileModule.php.
Referenced by getLanguageScripts().
|
protected |
List of JavaScript files to include when using a specific skin.
Definition at line 75 of file ResourceLoaderFileModule.php.
Referenced by ResourceLoaderOOUIFileModule\__construct().
|
protected |
List of paths to CSS files to include when using specific skins.
Definition at line 102 of file ResourceLoaderFileModule.php.
|
protected |
File name containing the body of the skip function.
Definition at line 137 of file ResourceLoaderFileModule.php.
Referenced by getFileHashes().
|
protected |
List of paths to CSS files to always include.
Definition at line 93 of file ResourceLoaderFileModule.php.
Referenced by getStyles().
|
protected |
Definition at line 155 of file ResourceLoaderFileModule.php.
|
protected |
Saves a list of the templates named by the modules.
Definition at line 48 of file ResourceLoaderFileModule.php.
|
protected |
Lazy-created by getVueComponentParser()
Definition at line 187 of file ResourceLoaderFileModule.php.
Referenced by getVueComponentParser().