PHP Class think\template\driver\File

Exibir arquivo Open project: top-think/framework

Public Methods

Method Description
check ( string $cacheFile, integer $cacheTime ) : boolean 检查编译缓存是否有效
read ( string $cacheFile, array $vars = [] ) : void 读取编译编译
write ( string $cacheFile, string $content ) : void | array 写入编译缓存

Method Details

check() public method

检查编译缓存是否有效
public check ( string $cacheFile, integer $cacheTime ) : boolean
$cacheFile string 缓存的文件名
$cacheTime integer 缓存时间
return boolean

read() public method

读取编译编译
public read ( string $cacheFile, array $vars = [] ) : void
$cacheFile string 缓存的文件名
$vars array 变量数组
return void

write() public method

写入编译缓存
public write ( string $cacheFile, string $content ) : void | array
$cacheFile string 缓存的文件名
$content string 缓存的内容
return void | array