class Xml extends Base

视图 Json渲染引擎

Properties

protected array $args 要传到模板的数据 from Base

Methods

$this
assign(string $key, mixed $val = null)

变量赋值

from Base
$this
assignByRef(string $key, mixed $val = null)

引用赋值

from Base
mixed
getValue(string $key = null)

获取赋到模板的值

from Base
mixed
display()

输出数据

Details

in Base at line 35
$this assign(string $key, mixed $val = null)

变量赋值

Parameters

string $key | array $key 赋值到模板的key,数组或字符串为数组时批量赋值
mixed $val 赋值到模板的值

Return Value

$this

in Base at line 53
$this assignByRef(string $key, mixed $val = null)

引用赋值

Parameters

string $key | array $key 赋值到模板的key,数组或字符串为数组时批量赋值
mixed $val

Return Value

$this

in Base at line 72
mixed getValue(string $key = null)

获取赋到模板的值

Parameters

string $key 要获取的值的key,数组或字符串为数组时批量赋值

Return Value

mixed

at line 25
mixed display()

输出数据

Return Value

mixed