MediaWiki REL1_39
|
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 | Context72Hack |
PHP 7.2 hack to work around the issue described at https://phabricator.wikimedia.org/T166010#5962098 Load the Context class when ResourceLoader is loaded. 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 | HookRunner |
class | Image |
Class encapsulating an image used in an ImageModule. More... | |
class | ImageModule |
Module for generated and embedded images. More... | |
class | LanguageDataModule |
Module for populating language specific data, such as grammar forms. 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 | ResourceLoader |
ResourceLoader is a loading system for JavaScript and CSS resources. More... | |
class | ResourceLoader72Hack |
PHP 7.2 hack to work around the issue described at https://phabricator.wikimedia.org/T166010#5962098 Load the ResourceLoader class when MessageBlobStore is loaded. 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 | $knownImagesModules |
static | $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 81 of file OOUIModule.php.
References MediaWiki\ResourceLoader\$builtinSkinThemeMap.
Referenced by MediaWiki\ResourceLoader\OOUIImageModule\loadFromDefinition().
|
protected |
string | $theme | See getThemePath() |
string | $module | See getThemePath() |
Definition at line 175 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 131 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 97 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 151 of file OOUIModule.php.
References MediaWiki\ResourceLoader\getThemePath().
|
protected |
string | $theme | See getThemePath() |
string | $module | See getThemePath() |
Definition at line 163 of file OOUIModule.php.
References MediaWiki\ResourceLoader\getThemePath().
|
staticprotected |
Note that keys must be lowercase, values TitleCase.
Definition at line 57 of file OOUIModule.php.
Referenced by MediaWiki\ResourceLoader\getSkinThemeMap().
|
staticprotected |
Note that keys must be TitleCase.
Definition at line 62 of file OOUIModule.php.
Referenced by MediaWiki\ResourceLoader\getThemePaths().
|
staticprotected |
Definition at line 35 of file OOUIModule.php.
|
staticprotected |
Definition at line 34 of file OOUIModule.php.