interface View

视图驱动抽象接口

Methods

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

变量赋值

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

引用赋值

mixed
getValue(string $key = null)

获取赋到模板的值

mixed
display()

抽象display

Details

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

变量赋值

Parameters

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

Return Value

$this

at line 36
$this assignByRef(string $key, mixed $val = null)

引用赋值

Parameters

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

Return Value

$this

at line 45
mixed getValue(string $key = null)

获取赋到模板的值

Parameters

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

Return Value

mixed

at line 52
mixed display()

抽象display

Return Value

mixed