\sRTemplate

Summary

Methods
Properties
Constants
__construct()
gGetVars()
file2Str()
file2pVar()
tpl2Str()
tpl2pVar()
saveAsFile()
__set()
__get()
render()
No public properties found
No constants found
No protected methods found
$tplStr
$tplFile
$renderData
N/A
No private methods found
No private properties found
N/A

Properties

$tplStr

$tplStr : 

Type

$tplFile

$tplFile : 

Type

$renderData

$renderData : 

Type

Methods

__construct()

__construct(  $option = array()) 

Parameters

$option

gGetVars()

gGetVars(string  $tpl) : \Generator

模板字符解析(生成器)

Parameters

string $tpl

Returns

\Generator

file2Str()

file2Str(boolean|string  $filename = false, array  $data = array()) : boolean|mixed

文件模板解析为字符串

Parameters

boolean|string $filename
array $data

Returns

boolean|mixed

file2pVar()

file2pVar(boolean|string  $filename = false) : boolean|mixed

文件模式解析为php变量

Parameters

boolean|string $filename

Returns

boolean|mixed

tpl2Str()

tpl2Str(boolean|string  $tpl = false, array  $data = array()) : boolean|mixed

字符串模板解析为字符串

Parameters

boolean|string $tpl
array $data

Returns

boolean|mixed

tpl2pVar()

tpl2pVar(boolean|string  $tpl = false) : boolean|mixed

模板转化为php变量

Parameters

boolean|string $tpl

Returns

boolean|mixed

saveAsFile()

saveAsFile(string  $file) 

保存内容为文件名

Parameters

string $file

__set()

__set(  $name,   $value) 

Parameters

$name
$value

__get()

__get(  $name) : mixed|null

参数过去

Parameters

$name

Returns

mixed|null

render()

render(string  $file, array  $data = array()) 

Parameters

string $file
array $data