公有成员 | |
| FLEA_View_Simple ($path=null) | |
| assign ($name, $value=null) | |
| & | fetch ($file, $cacheId=null) |
| display ($file, $cacheId=null) | |
| isCached ($file, $cacheId=null) | |
| cleanCache ($file, $cacheId=null) | |
| cleanAllCache () | |
| _getCacheFile ($file, $cacheId) | |
公有属性 | |
| $path | |
| $cacheLifetime | |
| $enableCache | |
| $cacheDir | |
| $vars | |
| $cacheState | |
在文件View/Simple.php第28行定义。
| FLEA_View_Simple::FLEA_View_Simple | ( | $ | path = null |
) |
| FLEA_View_Simple::assign | ( | $ | name, | |
| $ | value = null | |||
| ) |
| & FLEA_View_Simple::fetch | ( | $ | file, | |
| $ | cacheId = null | |||
| ) |
构造模板输出内容
| string | $file 模板文件名 | |
| string | $cacheId 缓存 ID,如果指定该值则会使用该内容的缓存输出 |
在文件View/Simple.php第116行定义。
参考 _getCacheFile()及isCached().
参考自 display().
| FLEA_View_Simple::display | ( | $ | file, | |
| $ | cacheId = null | |||
| ) |
显示指定模版的内容
| string | $file 模板文件名 | |
| string | $cacheId 缓存 ID,如果指定该值则会使用该内容的缓存输出 |
在文件View/Simple.php第146行定义。
参考 fetch().
| FLEA_View_Simple::isCached | ( | $ | file, | |
| $ | cacheId = null | |||
| ) |
检查内容是否已经被缓存
| string | $file 模板文件名 | |
| string | $cacheId 缓存 ID |
在文件View/Simple.php第158行定义。
参考 _getCacheFile().
参考自 fetch().
| FLEA_View_Simple::cleanCache | ( | $ | file, | |
| $ | cacheId = null | |||
| ) |
| FLEA_View_Simple::cleanAllCache | ( | ) |
清除所有缓存
在文件View/Simple.php第197行定义。
| FLEA_View_Simple::_getCacheFile | ( | $ | file, | |
| $ | cacheId | |||
| ) |
| FLEA_View_Simple::$path |
| FLEA_View_Simple::$cacheLifetime |
在文件View/Simple.php第43行定义。
| FLEA_View_Simple::$enableCache |
在文件View/Simple.php第51行定义。
| FLEA_View_Simple::$cacheDir |
在文件View/Simple.php第59行定义。
| FLEA_View_Simple::$vars |
在文件View/Simple.php第67行定义。
| FLEA_View_Simple::$cacheState |
在文件View/Simple.php第75行定义。
1.5.3