78 $contents =
'<params>';
79 foreach ( $this->
getParams() as $param ) {
80 $contents .= $param->dump();
82 $contents .=
'</params>';
85 if ( $this->data !==
null ) {
86 $contents .=
'<data>' . htmlspecialchars( json_encode( $this->data ), ENT_NOQUOTES ) .
'</data>';
89 return '<datamessage key="' . htmlspecialchars( $this->
getKey() ) .
'"'
90 .
' code="' . htmlspecialchars( $this->code ) .
'">'