PHP Class yii\httpclient\XmlFormatter

Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\base\Object, implements yii\httpclient\FormatterInterface
Exibir arquivo Open project: yiisoft/yii2-httpclient

Public Properties

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

Public Methods

Method Description
format ( Request $request )

Protected Methods

Method Description
buildXml ( DOMElement $element, mixed $data )

Method Details

buildXml() protected method

protected buildXml ( DOMElement $element, mixed $data )
$element DOMElement
$data mixed

format() public method

public format ( Request $request )
$request Request

Property Details

$contentType public_oe property

the Content-Type header for the response
public $contentType

$encoding public_oe property

the XML encoding. If not set, it will use the value of [[\yii\base\Application::charset]].
public $encoding

$itemTag public_oe property

the name of the elements that represent the array elements with numeric keys.
Since: 2.0.1
public $itemTag

$rootTag public_oe property

the name of the root element.
public $rootTag

$useTraversableAsArray public_oe property

whether to interpret objects implementing the [[\Traversable]] interface as arrays. Defaults to true.
Since: 2.0.1
public $useTraversableAsArray

$version public_oe property

the XML version
public $version