61 foreach ( $obj as $key =>
$value ) {
63 ( $pretty ?
' ' :
'' ) .
65 ( $pretty ?
': ' :
':' ) .
70 ( $pretty ?
"\n" :
'' ) .
71 implode( $pretty ?
",\n" :
',', $parts ) .
72 ( $pretty ?
"\n" :
'' ) .
A wrapper class which causes Xml::encodeJsVar() and Xml::encodeJsCall() to interpret a given string a...
static encodeObject( $obj, $pretty=false)
Encode an object containing XmlJsCode objects.
static encodeJsVar( $value, $pretty=false)
Encode a variable of arbitrary type to JavaScript.