MediaWiki  REL1_19
XmlJsCode Class Reference

A wrapper class which causes Xml::encodeJsVar() and Xml::encodeJsCall() to interpret a given string as being a JavaScript expression, instead of string data. More...

List of all members.

Public Member Functions

 __construct ($value)

Public Attributes

 $value

Detailed Description

A wrapper class which causes Xml::encodeJsVar() and Xml::encodeJsCall() to interpret a given string as being a JavaScript expression, instead of string data.

Example:

Xml::encodeJsVar( new XmlJsCode( 'a + b' ) );

Returns "a + b".

Since:
1.17

Definition at line 965 of file Xml.php.


Constructor & Destructor Documentation

XmlJsCode::__construct ( value)

Definition at line 968 of file Xml.php.

References $value.


Member Data Documentation

XmlJsCode::$value

Definition at line 966 of file Xml.php.

Referenced by __construct().


The documentation for this class was generated from the following file: