PHP Class yii\httpclient\XmlFormatter

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

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode Description
format ( Request $request )

Méthodes protégées

Méthode Description
buildXml ( DOMElement $element, mixed $data )

Method Details

buildXml() protected méthode

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

format() public méthode

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