Property | Type | Description | |
---|---|---|---|
$contentType | the Content-Type header for the response | ||
$encoding | the XML encoding. If not set, it will use the value of [[Response::charset]]. | ||
$itemTag | the name of the elements that represent the array elements with numeric keys. | ||
$rootTag | the name of the root element. | ||
$useTraversableAsArray | whether to interpret objects implementing the [[\Traversable]] interface as arrays. Defaults to true. | ||
$version | the XML version |
Method | Description | |
---|---|---|
format ( |
Formats the specified response. |
Method | Description | |
---|---|---|
buildXml ( DOMElement $element, mixed $data ) | ||
formatScalarValue ( integer | string | boolean $value ) : string | Formats scalar value to use in XML text node |
public format ( |
||
$response | the response to be formatted. |
public $encoding |
public $itemTag |
public $useTraversableAsArray |