PHP 클래스 yii\httpclient\XmlFormatter

부터: 2.0
저자: Paul Klimov ([email protected])
상속: extends yii\base\Object, implements yii\httpclient\FormatterInterface
파일 보기 프로젝트 열기: yiisoft/yii2-httpclient

공개 프로퍼티들

프로퍼티 타입 설명
$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