Property | Type | Description | |
---|---|---|---|
$contentType | the Content-Type header for the response | ||
$encoding | the XML encoding. If not set, it will use the value of [[\yii\base\Application::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 ( |
Method | Description | |
---|---|---|
buildXml ( DOMElement $element, mixed $data ) |
public $encoding |
public $itemTag |
public $useTraversableAsArray |