MediaWiki
REL1_22
|
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::__construct | ( | $ | value | ) |