PHP 클래스 think\response\Xml

상속: extends think\Response
파일 보기 프로젝트 열기: top-think/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$contentType
$options 输出参数

보호된 메소드들

메소드 설명
dataToXml ( mixed $data, string $item, string $id ) : string 数据XML编码
output ( mixed $data ) : mixed 处理数据
xmlEncode ( mixed $data, string $root, string $item, string $attr, string $id, string $encoding ) : string XML编码

메소드 상세

dataToXml() 보호된 메소드

数据XML编码
protected dataToXml ( mixed $data, string $item, string $id ) : string
$data mixed 数据
$item string 数字索引时的节点名称
$id string 数字索引key转换为的属性名
리턴 string

output() 보호된 메소드

处理数据
protected output ( mixed $data ) : mixed
$data mixed 要处理的数据
리턴 mixed

xmlEncode() 보호된 메소드

XML编码
protected xmlEncode ( mixed $data, string $root, string $item, string $attr, string $id, string $encoding ) : string
$data mixed 数据
$root string 根节点名
$item string 数字索引的子节点名
$attr string 根节点属性
$id string 数字索引子节点key转换的属性名
$encoding string 数据编码
리턴 string

프로퍼티 상세

$contentType 보호되어 있는 프로퍼티

protected $contentType

$options 보호되어 있는 프로퍼티

输出参数
protected $options