|
MediaWiki
1.23.0
|


Public Member Functions | |
| getGroup () | |
| getModifiedHash (ResourceLoaderContext $context) | |
| Hash of all dynamic data embedded in getScript(). More... | |
| getModifiedTime (ResourceLoaderContext $context) | |
| getScript (ResourceLoaderContext $context) | |
| 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... | |
| getDefinitionSummary (ResourceLoaderContext $context) | |
| Get the definition summary for this module. More... | |
| getDependencies () | |
| Get a list of modules this module depends on. More... | |
| getFileDependencies ( $skin) | |
| Get the files this module depends on indirectly for a given skin. More... | |
| getFlip ( $context) | |
| getHashMtime (ResourceLoaderContext $context) | |
| Helper method for calculating when the module's hash (if it has one) changed. More... | |
| getLoaderScript () | |
| Get the loader JS for this module, if set. More... | |
| getMessages () | |
| Get the messages needed for this module. 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... | |
| getPosition () | |
| Where on the HTML page should this module's JS be loaded? More... | |
| getScriptURLsForDebug (ResourceLoaderContext $context) | |
| Get the URL or URLs to load for this module's JS in debug mode. More... | |
| getSource () | |
| Get the origin of this module. More... | |
| getStyles (ResourceLoaderContext $context) | |
| Get all CSS for this module for a given skin. More... | |
| getStyleURLsForDebug (ResourceLoaderContext $context) | |
| Get the URL or URLs to load for this module's CSS in debug mode. More... | |
| getTargets () | |
| Get target(s) for the module, eg ['desktop'] or ['desktop', 'mobile']. 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... | |
Static Public Member Functions | |
| static | getModuleRegistrations (ResourceLoaderContext $context) |
| Get registration code for all modules. More... | |
| static | getStartupModulesUrl (ResourceLoaderContext $context) |
| Get the load URL of the startup modules. More... | |
Protected Member Functions | |
| getConfig ( $context) | |
Protected Member Functions inherited from ResourceLoaderModule | |
| validateScriptFile ( $fileName, $contents) | |
| Validate a given script file; if valid returns the original source. More... | |
Protected Attributes | |
| $configVars = array() | |
| $modifiedTime = array() | |
| $targets = array( 'desktop', 'mobile' ) | |
Protected Attributes inherited from ResourceLoaderModule | |
| $fileDeps = array() | |
| $msgBlobMtime = array() | |
| $name = null | |
| $origin = self::ORIGIN_CORE_SITEWIDE | |
| $targets = array( 'desktop' ) | |
Additional Inherited Members | |
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' |
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... | |
Definition at line 25 of file ResourceLoaderStartUpModule.php.
|
protected |
| ResourceLoaderContext | $context |
Definition at line 39 of file ResourceLoaderStartUpModule.php.
References $hash, ResourceLoaderModule\$name, $vars, $wgActionPaths, $wgArticlePath, $wgContLang, $wgCookiePrefix, $wgDBname, $wgFileExtensions, array(), as, BitmapHandler\canRotate(), Title\convertByteClassToUnicodeClass(), MWNamespace\getCanonicalNamespaces(), MWNamespace\getContentNamespaces(), Skin\getSkinNames(), global, MWNamespace\isCapitalized(), Title\legalChars(), Title\newMainPage(), object, wfRunHooks(), and wfUrlProtocols().
Referenced by getModifiedHash(), and getScript().
| ResourceLoaderStartUpModule::getGroup | ( | ) |
Reimplemented from ResourceLoaderModule.
Definition at line 365 of file ResourceLoaderStartUpModule.php.
| ResourceLoaderStartUpModule::getModifiedHash | ( | ResourceLoaderContext | $context | ) |
Hash of all dynamic data embedded in getScript().
Detect changes to mw.config settings embedded in getScript (bug 28899).
| $context | ResourceLoaderContext |
Reimplemented from ResourceLoaderModule.
Definition at line 351 of file ResourceLoaderStartUpModule.php.
References array(), getConfig(), and global.
| ResourceLoaderStartUpModule::getModifiedTime | ( | ResourceLoaderContext | $context | ) |
| ResourceLoaderContext | $context |
Reimplemented from ResourceLoaderModule.
Definition at line 308 of file ResourceLoaderStartUpModule.php.
References $hash, $IP, ResourceLoaderModule\$name, $time, as, ResourceLoaderContext\getHash(), ResourceLoaderModule\getHashMtime(), ResourceLoaderContext\getResourceLoader(), global, TS_UNIX, and wfTimestamp().
|
static |
Get registration code for all modules.
| ResourceLoaderContext | $context | object |
Definition at line 126 of file ResourceLoaderStartUpModule.php.
References ResourceLoaderModule\$name, $out, $resourceLoader, array(), as, ResourceLoaderContext\getRequest(), ResourceLoaderContext\getResourceLoader(), global, ResourceLoader\makeCustomLoaderScript(), ResourceLoader\makeLoaderRegisterScript(), ResourceLoader\makeLoaderSourcesScript(), TS_ISO_8601_BASIC, TS_UNIX, wfProfileIn(), wfProfileOut(), and wfTimestamp().
Referenced by getScript(), and ResourceLoaderStartupModuleTest\testGetModuleRegistrations().
| ResourceLoaderStartUpModule::getScript | ( | ResourceLoaderContext | $context | ) |
| ResourceLoaderContext | $context |
Reimplemented from ResourceLoaderModule.
Definition at line 269 of file ResourceLoaderStartUpModule.php.
References $IP, $out, array(), Xml\encodeJsCall(), getConfig(), getModuleRegistrations(), ResourceLoaderContext\getOnly(), global, and Html\linkedScript().
|
static |
Get the load URL of the startup modules.
This is a helper for getScript(), but can also be called standalone, such as when generating an AppCache manifest.
| ResourceLoaderContext | $context |
Definition at line 238 of file ResourceLoaderStartUpModule.php.
References $query, $version, array(), as, ResourceLoaderContext\getDebug(), ResourceLoaderContext\getLanguage(), ResourceLoaderContext\getResourceLoader(), ResourceLoaderContext\getSkin(), ResourceLoader\makePackedModulesString(), TS_ISO_8601_BASIC, wfAppendQuery(), wfRunHooks(), wfScript(), and wfTimestamp().
| ResourceLoaderStartUpModule::isRaw | ( | ) |
Reimplemented from ResourceLoaderModule.
Definition at line 225 of file ResourceLoaderStartUpModule.php.
| ResourceLoaderStartUpModule::supportsURLLoading | ( | ) |
Reimplemented from ResourceLoaderModule.
Definition at line 300 of file ResourceLoaderStartUpModule.php.
|
protected |
Definition at line 30 of file ResourceLoaderStartUpModule.php.
|
protected |
Definition at line 29 of file ResourceLoaderStartUpModule.php.
|
protected |
Definition at line 31 of file ResourceLoaderStartUpModule.php.