STpl
extends Tpl
in package
Table of Contents
Properties
- $_tpl_vars : mixed
- $compile_dir : mixed
- $force_compile : mixed
- $left_delimiter : mixed
- $right_delimiter : mixed
- $safe_mode : mixed
- $template_dir : mixed
- $_tmpData : mixed
- $_tmpIndex : mixed
- $_tmpPrefix : mixed
Methods
- assign() : mixed
- display() : mixed
- 别名 render
- fetch() : mixed
- redirect() : mixed
- 302 redirect
- render() : mixed
- 渲染模板
- setCompileDir() : mixed
- 设置模板编译路径
- setDelimter() : mixed
- 设置模板代码的左右分割符号
- setForceCompile() : mixed
- 设置强制编译
- setSafeMode() : mixed
- 安全模式,禁止编译php代码
- setTemplateDir() : mixed
- 设置模板文件路径
- _compile() : mixed
- _match() : mixed
- _matchfunction() : mixed
- _matchmodifier() : mixed
- _tmpData() : mixed
Properties
$_tpl_vars
public
static mixed
$_tpl_vars
= array()
$compile_dir
public
static mixed
$compile_dir
= ''
$force_compile
public
static mixed
$force_compile
= false
$left_delimiter
public
static mixed
$left_delimiter
= ''
$right_delimiter
public
static mixed
$right_delimiter
= ''
$safe_mode
public
static mixed
$safe_mode
= true
$template_dir
public
static mixed
$template_dir
= ''
$_tmpData
private
static mixed
$_tmpData
$_tmpIndex
private
static mixed
$_tmpIndex
= 0
$_tmpPrefix
private
static mixed
$_tmpPrefix
= "TPL_TMP_PREFIX_"
Methods
assign()
public
static assign(mixed $tpl_var[, mixed $value = null ]) : mixed
Parameters
- $tpl_var : mixed
- $value : mixed = null
display()
别名 render
public
display(mixed $tpl[, mixed $parames = array() ]) : mixed
Parameters
- $tpl : mixed
- $parames : mixed = array()
fetch()
public
static fetch(mixed $tpl) : mixed
Parameters
- $tpl : mixed
redirect()
302 redirect
public
redirect(mixed $url) : mixed
Parameters
- $url : mixed
render()
渲染模板
public
render(mixed $tpl[, mixed $parames = array() ]) : mixed
Parameters
- $tpl : mixed
- $parames : mixed = array()
setCompileDir()
设置模板编译路径
public
static setCompileDir([mixed $path = "" ]) : mixed
Parameters
- $path : mixed = ""
setDelimter()
设置模板代码的左右分割符号
public
static setDelimter([mixed $left = "{" ][, mixed $right = "}" ]) : mixed
Parameters
- $left : mixed = "{"
- $right : mixed = "}"
setForceCompile()
设置强制编译
public
static setForceCompile([mixed $force_compile = false ]) : mixed
Parameters
- $force_compile : mixed = false
setSafeMode()
安全模式,禁止编译php代码
public
static setSafeMode([mixed $safe_mode = true ]) : mixed
Parameters
- $safe_mode : mixed = true
setTemplateDir()
设置模板文件路径
public
static setTemplateDir([mixed $path = "" ]) : mixed
Parameters
- $path : mixed = ""
_compile()
private
static _compile(mixed $content) : mixed
Parameters
- $content : mixed
_match()
private
static _match(mixed $matches) : mixed
Parameters
- $matches : mixed
_matchfunction()
private
static _matchfunction(mixed $function) : mixed
Parameters
- $function : mixed
_matchmodifier()
private
static _matchmodifier(mixed $modifier) : mixed
Parameters
- $modifier : mixed
_tmpData()
private
static _tmpData(mixed $matches) : mixed
Parameters
- $matches : mixed