PHP Class think\response\Xml

Inheritance: extends think\Response
ファイルを表示 Open project: top-think/framework

Protected Properties

Property Type Description
$contentType
$options 输出参数

Protected Methods

Method Description
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编码

Method Details

dataToXml() protected method

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

output() protected method

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

xmlEncode() protected method

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 数据编码
return string

Property Details

$contentType protected_oe property

protected $contentType

$options protected_oe property

输出参数
protected $options