PHP Класс yii\httpclient\XmlFormatter

С версии: 2.0
Автор: Paul Klimov ([email protected])
Наследование: extends yii\base\Object, implements yii\httpclient\FormatterInterface
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
format ( Request $request )

Защищенные методы

Метод Описание
buildXml ( DOMElement $element, mixed $data )

Описание методов

buildXml() защищенный Метод

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

format() публичный Метод

public format ( Request $request )
$request Request

Описание свойств

$contentType публичное свойство

the Content-Type header for the response
public $contentType

$encoding публичное свойство

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

$itemTag публичное свойство

the name of the elements that represent the array elements with numeric keys.
С версии: 2.0.1
public $itemTag

$rootTag публичное свойство

the name of the root element.
public $rootTag

$useTraversableAsArray публичное свойство

whether to interpret objects implementing the [[\Traversable]] interface as arrays. Defaults to true.
С версии: 2.0.1
public $useTraversableAsArray

$version публичное свойство

the XML version
public $version