Свойство | Тип | Описание | |
---|---|---|---|
$has_compiled |
Свойство | Тип | Описание | |
---|---|---|---|
$bootstrap | |||
$cache_dir | |||
$check_get | |||
$check_set | |||
$check_ttl | |||
$compiler | |||
$debug | |||
$hash_filename | |||
$templates_dir | |||
$use_autoload |
Метод | Описание | |
---|---|---|
Load ( string $file, array $vars = [], boolean $return = FALSE, array $blocks = [] ) : string | null | Load | |
Safe_Load ( $file, $vars = [], $return = FALSE, $blocks = [] ) | safe_load(string $file, array $vars, bool $return, array $blocks) {{{ | |
checkCacheDir ( ) : void | Check the directory where the compiled templates are stored. | |
compile ( string $tpl, array $context = [] ) : callback($vars=array(), | Compile one template and return a PHP function | |
configure ( array $opts ) : void | Configuration to load Haanga | |
enableDebug ( $bool ) | enableDebug($bool) {{{ | |
getTemplateDir ( ) | ||
getTemplatePath ( $file ) | }}} |
Метод | Описание | |
---|---|---|
getCompiler ( boolean $checkdir = TRUE ) : Haanga_Compiler_Runtime | This function is a singleton for the Haanga_Compiler_Runtime class. |
Метод | Описание | |
---|---|---|
__construct ( ) |
public static Safe_Load ( $file, $vars = [], $return = FALSE, $blocks = [] ) |
public static checkCacheDir ( ) : void | ||
Результат | void |
public static enableDebug ( $bool ) |
protected static getCompiler ( boolean $checkdir = TRUE ) : Haanga_Compiler_Runtime | ||
$checkdir | boolean | TRUE @return Haanga_Compiler_Runtime |
Результат | Haanga_Compiler_Runtime |