PHP Class think\response\Xml

Inheritance: extends think\Response
Afficher le fichier Open project: top-think/framework

Protected Properties

Свойство Type Description
$contentType
$options 输出参数

Méthodes protégées

Méthode 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 méthode

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

output() protected méthode

处理数据
protected output ( mixed $data ) : mixed
$data mixed 要处理的数据
Résultat mixed

xmlEncode() protected méthode

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 数据编码
Résultat string

Property Details

$contentType protected_oe property

protected $contentType

$options protected_oe property

输出参数
protected $options