Свойство | Тип | Описание | |
---|---|---|---|
$cache_modes |
Свойство | Тип | Описание | |
---|---|---|---|
$cache_mode | |||
$locations |
Метод | Описание | |
---|---|---|
__construct ( boolean | string $caller = false ) | ||
choose_template ( array $filenames ) : boolean | ||
clear_cache_timber ( $cache_mode = self::CACHE_USE_DEFAULT ) | ||
clear_cache_twig ( ) | ||
get_cache ( string $key, string $group = self::CACHEGROUP, string $cache_mode = self::CACHE_USE_DEFAULT ) : boolean | ||
get_loader ( ) : Twig_Loader_Filesystem | ||
get_twig ( ) : Twig_Environment | ||
render ( string $file, array $data = null, array | boolean $expires = false, string $cache_mode = self::CACHE_USE_DEFAULT ) : boolean | string | ||
rrmdir ( string | false $dirPath ) | ||
set_cache ( string $key, string | boolean $value, string $group = self::CACHEGROUP, integer $expires, string $cache_mode = self::CACHE_USE_DEFAULT ) : string | boolean |
Метод | Описание | |
---|---|---|
delete_cache ( ) | ||
template_exists ( string $file ) : boolean |
Метод | Описание | |
---|---|---|
_get_cache_extension ( ) : |
||
_get_cache_mode ( string $cache_mode ) : string |
public __construct ( boolean | string $caller = false ) | ||
$caller | boolean | string | the calling directory or false |
public choose_template ( array $filenames ) : boolean | ||
$filenames | array | |
Результат | boolean |
public clear_cache_timber ( $cache_mode = self::CACHE_USE_DEFAULT ) |
public get_loader ( ) : Twig_Loader_Filesystem | ||
Результат | Twig_Loader_Filesystem |
public render ( string $file, array $data = null, array | boolean $expires = false, string $cache_mode = self::CACHE_USE_DEFAULT ) : boolean | string | ||
$file | string | |
$data | array | |
$expires | array | boolean | (array for options, false for none, integer for # of seconds) |
$cache_mode | string | |
Результат | boolean | string |
protected template_exists ( string $file ) : boolean | ||
$file | string | |
Результат | boolean |