Change-Id: I47ce855cab444e139898f7269d63437b44825966
* @param array $templates Keys are name of templates and values are the source of
* the template.
* @throws MWException
* @param array $templates Keys are name of templates and values are the source of
* the template.
* @throws MWException
+ * @return string JavaScript code
*/
protected static function makeLoaderImplementScript(
$name, $scripts, $styles, $messages, $templates
*/
protected static function makeLoaderImplementScript(
$name, $scripts, $styles, $messages, $templates
*
* @param mixed $messages Either an associative array mapping message key to value, or a
* JSON-encoded message blob containing the same data, wrapped in an XmlJsCode object.
*
* @param mixed $messages Either an associative array mapping message key to value, or a
* JSON-encoded message blob containing the same data, wrapped in an XmlJsCode object.
+ * @return string JavaScript code
*/
public static function makeMessageSetScript( $messages ) {
return Xml::encodeJsCall(
*/
public static function makeMessageSetScript( $messages ) {
return Xml::encodeJsCall(
*
* @param string $name
* @param string $state
*
* @param string $name
* @param string $state
+ * @return string JavaScript code
*/
public static function makeLoaderStateScript( $name, $state = null ) {
if ( is_array( $name ) ) {
*/
public static function makeLoaderStateScript( $name, $state = null ) {
if ( is_array( $name ) ) {
* @param string $group Group which the module is in.
* @param string $source Source of the module, or 'local' if not foreign.
* @param string $script JavaScript code
* @param string $group Group which the module is in.
* @param string $source Source of the module, or 'local' if not foreign.
* @param string $script JavaScript code
+ * @return string JavaScript code
*/
public static function makeCustomLoaderScript( $name, $version, $dependencies,
$group, $source, $script
*/
public static function makeCustomLoaderScript( $name, $version, $dependencies,
$group, $source, $script
* @param string $group Group which the module is in
* @param string $source Source of the module, or 'local' if not foreign
* @param string $skip Script body of the skip function
* @param string $group Group which the module is in
* @param string $source Source of the module, or 'local' if not foreign
* @param string $skip Script body of the skip function
+ * @return string JavaScript code
*/
public static function makeLoaderRegisterScript( $name, $version = null,
$dependencies = null, $group = null, $source = null, $skip = null
*/
public static function makeLoaderRegisterScript( $name, $version = null,
$dependencies = null, $group = null, $source = null, $skip = null
*
* @param string $id Source ID
* @param string $loadUrl load.php url
*
* @param string $id Source ID
* @param string $loadUrl load.php url
+ * @return string JavaScript code
*/
public static function makeLoaderSourcesScript( $id, $loadUrl = null ) {
if ( is_array( $id ) ) {
*/
public static function makeLoaderSourcesScript( $id, $loadUrl = null ) {
if ( is_array( $id ) ) {
*
* @deprecated since 1.25; use makeInlineScript instead
* @param string $script JavaScript code
*
* @deprecated since 1.25; use makeInlineScript instead
* @param string $script JavaScript code
+ * @return string JavaScript code
*/
public static function makeLoaderConditionalScript( $script ) {
return '(window.RLQ=window.RLQ||[]).push(function(){' .
*/
public static function makeLoaderConditionalScript( $script ) {
return '(window.RLQ=window.RLQ||[]).push(function(){' .
* the given value.
*
* @param array $configuration List of configuration values keyed by variable name
* the given value.
*
* @param array $configuration List of configuration values keyed by variable name
+ * @return string JavaScript code
*/
public static function makeConfigSetScript( array $configuration ) {
return Xml::encodeJsCall(
*/
public static function makeConfigSetScript( array $configuration ) {
return Xml::encodeJsCall(