Property | Type | Description | |
---|---|---|---|
$cache_modes |
Property | Type | Description | |
---|---|---|---|
$cache_mode | |||
$locations |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
delete_cache ( ) | ||
template_exists ( string $file ) : boolean |
Method | Description | |
---|---|---|
_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 | |
return | boolean |
public clear_cache_timber ( $cache_mode = self::CACHE_USE_DEFAULT ) |
public get_loader ( ) : Twig_Loader_Filesystem | ||
return | 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 | |
return | boolean | string |
protected template_exists ( string $file ) : boolean | ||
$file | string | |
return | boolean |