MediaWiki
1.28.0
|
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...
Public Member Functions | |
__construct ($value) | |
Public Attributes | |
$value | |
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".
XmlJsCode::$value |
Definition at line 885 of file Xml.php.
Referenced by __construct().