MediaWiki master
|
Namespaces | |
namespace | Hook |
Classes | |
class | CircularDependencyError |
class | ClientHtml |
Load and configure a ResourceLoader client on an HTML page. More... | |
class | CodexModule |
Module for codex that has direction-specific style files and a static helper function for embedding icons in package modules. More... | |
class | Context |
Context object that contains information about the state of a specific ResourceLoader web request. More... | |
class | DerivativeContext |
A mutable version of Context. More... | |
class | FileModule |
Module based on local JavaScript/CSS files. More... | |
class | FilePath |
A path to a bundled file (such as JavaScript or CSS), along with a remote and local base path. More... | |
class | ForeignApiModule |
Module for mediawiki.ForeignApi and mediawiki.ForeignRest that has dynamically generated dependencies, via a hook usable by extensions. More... | |
class | ForeignResourceManager |
Manage foreign resources registered with ResourceLoader. More... | |
class | ForeignResourceNetworkException |
Exception thrown when a network error occurs while fetching a foreign resource. More... | |
class | HookRunner |
class | Image |
Class encapsulating an image used in an ImageModule. More... | |
class | ImageModule |
Module for generated and embedded images. More... | |
class | LessVarFileModule |
Module augmented with context-specific LESS variables. More... | |
class | MessageBlobStore |
This class generates message blobs for use by ResourceLoader. More... | |
class | Module |
Abstraction for ResourceLoader modules, with name registration and maxage functionality. More... | |
class | MwUrlModule |
class | OOUIFileModule |
Module which magically loads the right skinScripts and skinStyles for every skin, using the specified OOUI theme for each. More... | |
class | OOUIIconPackModule |
Allows loading arbitrary sets of OOUI icons. More... | |
class | OOUIImageModule |
Loads the module definition from JSON files in the format that OOUI uses, converting it to the format we use. More... | |
class | ReplayMinifierState |
Fake minifier that buffers additions to later replay to multiple another minifiers. More... | |
class | ResourceLoader |
ResourceLoader is a loading system for JavaScript and CSS resources. More... | |
class | ResourceLoaderEntryPoint |
Entry point implementation for ResourceLoader, which serves static CSS/JavaScript via MediaWiki\ResourceLoader\Module Module subclasses. More... | |
class | SiteModule |
Module for site customizations. More... | |
class | SiteStylesModule |
Module for site style customizations. More... | |
class | SkinModule |
Module for skin stylesheets. More... | |
class | StartUpModule |
Module for ResourceLoader initialization. More... | |
class | UserModule |
Module for user customizations scripts. More... | |
class | UserOptionsModule |
Module for per-user private data that is transmitted on all HTML web responses. More... | |
class | UserStylesModule |
Module for user customizations styles. More... | |
class | VueComponentParser |
Parser for Vue single file components (.vue files). More... | |
class | WikiModule |
Abstraction for ResourceLoader modules which pull from wiki pages. More... | |
Functions | |
static | getSkinThemeMap () |
Return a map of skin names (in lowercase) to OOUI theme names, defining which theme a given skin should use. | |
getThemeImagesPath ( $theme, $module) | |
getThemePath ( $theme, $kind, $module) | |
Return a path to load given module of given theme from. | |
static | getThemePaths () |
Return a map of theme names to lists of paths from which a given theme should be loaded. | |
getThemeScriptsPath ( $theme, $module) | |
getThemeStylesPath ( $theme, $module) | |
Variables | |
static string[] | $builtinSkinThemeMap |
Note that keys must be lowercase, values TitleCase. | |
static string[][] | $builtinThemePaths |
Note that keys must be TitleCase. | |
static string[] | $knownImagesModules |
static string[] | $knownStylesModules = [ 'core', 'widgets', 'toolbars', 'windows' ] |
trait | OOUIModule |
Convenience methods for dealing with OOUI themes and their relations to MW skins. | |
|
static |
Return a map of skin names (in lowercase) to OOUI theme names, defining which theme a given skin should use.
Definition at line 85 of file OOUIModule.php.
References MediaWiki\ResourceLoader\$builtinSkinThemeMap, and MediaWiki\Registration\ExtensionRegistry\getAttribute().
Referenced by MediaWiki\ResourceLoader\OOUIImageModule\loadFromDefinition().
|
protected |
string | $theme | See getThemePath() |
string | $module | See getThemePath() |
Definition at line 179 of file OOUIModule.php.
References MediaWiki\ResourceLoader\getThemePath().
Referenced by MediaWiki\ResourceLoader\OOUIImageModule\loadOOUIDefinition(), and MediaWiki\ResourceLoader\OOUIIconPackModule\loadOOUIDefinition().
|
protected |
Return a path to load given module of given theme from.
The file at this path may not exist. This should be handled by the caller (throwing an error or falling back to default theme).
string | $theme | OOUI theme name, for example 'WikimediaUI' or 'Apex' |
string | $kind | Kind of the module: 'scripts', 'styles', or 'images' |
string | $module | Module name, for valid values see $knownScriptsModules, $knownStylesModules, $knownImagesModules |
Definition at line 135 of file OOUIModule.php.
References $path, and MediaWiki\ResourceLoader\getThemePaths().
Referenced by MediaWiki\ResourceLoader\getThemeImagesPath(), MediaWiki\ResourceLoader\getThemeScriptsPath(), and MediaWiki\ResourceLoader\getThemeStylesPath().
|
staticprotected |
Return a map of theme names to lists of paths from which a given theme should be loaded.
Keys are theme names, values are associative arrays. Keys of the inner array are 'scripts', 'styles', or 'images', and values are paths. Paths may be strings or FilePaths.
Additionally, the string '{module}' in paths represents the name of the module to load.
Definition at line 101 of file OOUIModule.php.
References MediaWiki\ResourceLoader\$builtinThemePaths, $path, and MediaWiki\ResourceLoader\FileModule\extractBasePaths().
Referenced by MediaWiki\ResourceLoader\getThemePath().
|
protected |
string | $theme | See getThemePath() |
string | $module | See getThemePath() |
Definition at line 155 of file OOUIModule.php.
References MediaWiki\ResourceLoader\getThemePath().
|
protected |
string | $theme | See getThemePath() |
string | $module | See getThemePath() |
Definition at line 167 of file OOUIModule.php.
References MediaWiki\ResourceLoader\getThemePath().
|
staticprotected |
Note that keys must be lowercase, values TitleCase.
Definition at line 61 of file OOUIModule.php.
Referenced by MediaWiki\ResourceLoader\getSkinThemeMap().
|
staticprotected |
Note that keys must be TitleCase.
Definition at line 66 of file OOUIModule.php.
Referenced by MediaWiki\ResourceLoader\getThemePaths().
|
staticprotected |
Definition at line 38 of file OOUIModule.php.
|
staticprotected |
Definition at line 36 of file OOUIModule.php.