resourceloader: Consistently refer to the framework as ResourceLoader

Change-Id: Ia59e4eac9662723e80d62f7cfcb9e4292e3ee4de
This commit is contained in:
Timo Tijhof 2015-10-28 03:24:40 +00:00
parent a0809dfa5a
commit afcfc3290c
28 changed files with 45 additions and 52 deletions

View file

@ -3397,14 +3397,14 @@ $wgMangleFlashPolicy = true;
/** @} */ # End of output format settings }
/*************************************************************************//**
* @name Resource loader settings
* @name ResourceLoader settings
* @{
*/
/**
* Client-side resource modules.
*
* Extensions should add their resource loader module definitions
* Extensions should add their ResourceLoader module definitions
* to the $wgResourceModules variable.
*
* @par Example:
@ -3529,7 +3529,7 @@ $wgResourceLoaderSources = array();
$wgResourceBasePath = null;
/**
* Maximum time in seconds to cache resources served by the resource loader.
* Maximum time in seconds to cache resources served by ResourceLoader.
* Used to set last modified headers (max-age/s-maxage).
*
* Following options to distinguish:
@ -3736,7 +3736,7 @@ $wgResourceLoaderStorageVersion = 1;
*/
$wgAllowSiteCSSOnRestrictedPages = false;
/** @} */ # End of resource loader settings }
/** @} */ # End of ResourceLoader settings }
/*************************************************************************//**
* @name Page title and interwiki link settings

View file

@ -50,7 +50,7 @@ class OutputPage extends ContextSource {
/**
* @var array Additional stylesheets. Looks like this is for extensions.
* Might be replaced by resource loader.
* Might be replaced by ResourceLoader.
*/
protected $mExtStyles = array();
@ -132,7 +132,7 @@ class OutputPage extends ContextSource {
private $mLanguageLinks = array();
/**
* Used for JavaScript (pre resource loader)
* Used for JavaScript (predates ResourceLoader)
* @todo We should split JS / CSS.
* mScripts content is inserted as is in "<head>" by Skin. This might
* contain either a link to a stylesheet or inline CSS.
@ -151,8 +151,6 @@ class OutputPage extends ContextSource {
/** @var array Array of elements in "<head>". Parser might add its own headers! */
protected $mHeadItems = array();
// @todo FIXME: Next 5 variables probably come from the resource loader
/** @var array */
protected $mModules = array();
@ -224,7 +222,7 @@ class OutputPage extends ContextSource {
/**
* @var bool Comes from the parser. This was probably made to load CSS/JS
* only if we had "<gallery>". Used directly in CategoryPage.php.
* Looks like resource loader can replace this.
* Looks like ResourceLoader can replace this.
*/
public $mNoGallery = false;
@ -568,8 +566,8 @@ class OutputPage extends ContextSource {
}
/**
* Add one or more modules recognized by the resource loader. Modules added
* through this function will be loaded by the resource loader when the
* Add one or more modules recognized by ResourceLoader. Modules added
* through this function will be loaded by ResourceLoader when the
* page loads.
*
* @param string|array $modules Module name (string) or array of module names
@ -591,8 +589,8 @@ class OutputPage extends ContextSource {
}
/**
* Add only JS of one or more modules recognized by the resource loader. Module
* scripts added through this function will be loaded by the resource loader when
* Add only JS of one or more modules recognized by ResourceLoader. Module
* scripts added through this function will be loaded by ResourceLoader when
* the page loads.
*
* @param string|array $modules Module name (string) or array of module names
@ -614,7 +612,7 @@ class OutputPage extends ContextSource {
}
/**
* Add only CSS of one or more modules recognized by the resource loader.
* Add only CSS of one or more modules recognized by ResourceLoader.
*
* Module styles added through this function will be added using standard link CSS
* tags, rather than as a combined Javascript and CSS package. Thus, they will

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource message blobs storage used by the resource loader.
* Resource message blobs storage used by ResourceLoader.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -23,8 +23,8 @@
*/
/**
* This class provides access to the resource message blobs storage used by
* the ResourceLoader.
* This class provides access to the resource message blobs storage used
* by ResourceLoader.
*
* A message blob is a JSON object containing the interface messages for a
* certain resource in a certain language. These message blobs are cached

View file

@ -108,19 +108,17 @@ class ParserOutput extends CacheTime {
public $mHeadItems = array();
/**
* @var array $mModules Modules to be loaded by the resource loader
* @var array $mModules Modules to be loaded by ResourceLoader
*/
public $mModules = array();
/**
* @var array $mModuleScripts Modules of which only the JS will be loaded by
* the resource loader.
* @var array $mModuleScripts Modules of which only the JS will be loaded by ResourceLoader.
*/
public $mModuleScripts = array();
/**
* @var array $mModuleStyles Modules of which only the CSSS will be loaded by
* the resource loader.
* @var array $mModuleStyles Modules of which only the CSSS will be loaded by ResourceLoader.
*/
public $mModuleStyles = array();

View file

@ -1,6 +1,6 @@
<?php
/**
* Derivative context for resource loader modules.
* Derivative context for ResourceLoader modules.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Context for resource loader modules.
* Context for ResourceLoader modules.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for the edit toolbar.
* ResourceLoader module for the edit toolbar.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module based on local JavaScript/CSS files.
* ResourceLoader module based on local JavaScript/CSS files.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for generated and embedded images.
* ResourceLoader module for generated and embedded images.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -22,7 +22,7 @@
*/
/**
* Resource loader module for generated and embedded images.
* ResourceLoader module for generated and embedded images.
*
* @since 1.25
*/

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for populating language specific data.
* ResourceLoader module for populating language specific data.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for providing language names.
* ResourceLoader module for providing language names.
*
* By default these names will be autonyms however other extensions may
* provided language names in the context language (e.g. cldr extension)

View file

@ -1,6 +1,6 @@
<?php
/**
* Abstraction for resource loader modules.
* Abstraction for ResourceLoader modules.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -23,7 +23,7 @@
*/
/**
* Abstraction for resource loader modules, with name registration and maxage functionality.
* Abstraction for ResourceLoader modules, with name registration and maxage functionality.
*/
abstract class ResourceLoaderModule {
# Type of resource

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for site customizations.
* ResourceLoader module for site customizations.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for skin stylesheets.
* ResourceLoader module for skin stylesheets.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for populating special characters data for some
* ResourceLoader module for populating special characters data for some
* editing extensions to use.
*
* This program is free software; you can redistribute it and/or modify
@ -22,7 +22,7 @@
*/
/**
* Resource loader module for populating special characters data for some
* ResourceLoader module for populating special characters data for some
* editing extensions to use.
*/
class ResourceLoaderSpecialCharacterDataModule extends ResourceLoaderModule {

View file

@ -1,6 +1,6 @@
<?php
/**
* Module for resource loader initialization.
* Module for ResourceLoader initialization.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for user preference customizations.
* ResourceLoader module for user preference customizations.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for default user preferences.
* ResourceLoader module for default user preferences.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for user customizations.
* ResourceLoader module for user customizations.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for user customizations.
* ResourceLoader module for user customizations.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for user preference customizations.
* ResourceLoader module for user preference customizations.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Resource loader module for user tokens.
* ResourceLoader module for user tokens.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,6 +1,6 @@
<?php
/**
* Abstraction for resource loader modules which pull from wiki pages.
* Abstraction for ResourceLoader modules that pull from wiki pages.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -23,7 +23,7 @@
*/
/**
* Abstraction for resource loader modules which pull from wiki pages
* Abstraction for ResourceLoader modules which pull from wiki pages
*
* This can only be used for wiki pages in the MediaWiki and User namespaces,
* because of its dependence on the functionality of Title::isCssJsSubpage.

View file

@ -1,6 +1,6 @@
<?php
/**
* This file is the entry point for the resource loader.
* This file is the entry point for ResourceLoader.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View file

@ -1,4 +1,4 @@
-- Table for storing JSON message blobs for the resource loader
-- Table for storing JSON message blobs for ResourceLoader
CREATE TABLE /*_*/msg_resource (
-- Resource name
mr_resource varbinary(255) NOT NULL,

View file

@ -1224,7 +1224,7 @@ CREATE TABLE /*_*/l10n_cache (
);
CREATE INDEX /*i*/lc_lang_key ON /*_*/l10n_cache (lc_lang, lc_key);
-- Table for caching JSON message texts for the resource loader
-- Table for caching JSON message texts for ResourceLoader
CREATE TABLE /*_*/msg_resource (
-- Resource name
mr_resource nvarchar(255) NOT NULL,

View file

@ -1496,7 +1496,7 @@ CREATE TABLE /*_*/l10n_cache (
) /*$wgDBTableOptions*/;
CREATE INDEX /*i*/lc_lang_key ON /*_*/l10n_cache (lc_lang, lc_key);
-- Table for caching JSON message blobs for the resource loader
-- Table for caching JSON message blobs for ResourceLoader
CREATE TABLE /*_*/msg_resource (
-- Resource name
mr_resource varbinary(255) NOT NULL,

View file

@ -149,9 +149,6 @@ class WfTimestampTest extends MediaWikiTestCase {
}
/**
* The Resource Loader uses wfTimestamp() to convert timestamps
* from If-Modified-Since header. Thus it must be able to parse all
* rfc2616 date formats
* @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
* @dataProvider provideHttpDates
*/