MediaWiki
REL1_19
|
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 | ) |
XmlJsCode::$value |
Definition at line 966 of file Xml.php.
Referenced by __construct().