extends |
Smarty |
---|
Smarty Backward Compatibility Wrapper Class
Methods | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
public
|
__construct()
Initialize new SmartyBC object
|
# | ||||||||
public
|
assign_by_ref(string $tpl_var, mixed &$value)
wrapper for assign_by_ref
wrapper for assign_by_ref Parameters
Overriden by |
# | ||||||||
public
|
append_by_ref(string $tpl_var, mixed &$value, boolean $merge = false)
wrapper for append_by_ref
wrapper for append_by_ref Parameters
Overriden by |
# | ||||||||
public
|
clear_assign(string $tpl_var)
clear the given assigned template variable.
clear the given assigned template variable. Parameters
Overriden by |
# | ||||||||
public
|
register_function(string $function, string $function_impl, bool $cacheable = true, mixed $cache_attrs = null)
Registers custom function to be used in templates
Registers custom function to be used in templates Parameters
Throws
Overriden by |
# | ||||||||
public
|
unregister_function(string $function)
Unregister custom function
Unregister custom function Parameters
Overriden by |
# | ||||||||
public
|
unregister_object(string $object)
Unregister object
Unregister object Parameters
Overriden by |
# | ||||||||
public
|
register_block(string $block, string $block_impl, bool $cacheable = true, mixed $cache_attrs = null)
Registers block function to be used in templates
Registers block function to be used in templates Parameters
Throws
Overriden by |
# | ||||||||
public
|
unregister_block(string $block)
Unregister block function
Unregister block function Parameters
Overriden by |
# | ||||||||
public
|
register_compiler_function(string $function, string $function_impl, bool $cacheable = true)
Registers compiler function
Registers compiler function Parameters
Throws
Overriden by |
# | ||||||||
public
|
unregister_compiler_function(string $function)
Unregister compiler function
Unregister compiler function Parameters
Overriden by |
# | ||||||||
public
|
register_modifier(string $modifier, string $modifier_impl)
Registers modifier to be used in templates
Registers modifier to be used in templates Parameters
Throws
Overriden by |
# | ||||||||
public
|
unregister_modifier(string $modifier)
Unregister modifier
Unregister modifier Parameters
Overriden by |
# | ||||||||
public
|
register_resource(string $type, array $functions)
Registers a resource to fetch a template
Registers a resource to fetch a template Parameters
Overriden by |
# | ||||||||
public
|
unregister_resource(string $type)
Unregister a resource
Unregister a resource Parameters
Overriden by |
# | ||||||||
public
|
register_prefilter(callable $function)
Registers a prefilter function to apply
to a template before compiling
Registers a prefilter function to apply to a template before compiling Throws
Overriden by |
# | ||||||||
public
|
unregister_prefilter(callable $function)
Unregister a prefilter function
|
# | ||||||||
public
|
register_postfilter(callable $function)
Registers a postfilter function to apply
to a compiled template after compilation
Registers a postfilter function to apply to a compiled template after compilation Throws
Overriden by |
# | ||||||||
public
|
unregister_postfilter(callable $function)
Unregister a postfilter function
|
# | ||||||||
public
|
register_outputfilter(callable $function)
Registers an output filter function to apply
to a template output
Registers an output filter function to apply to a template output Throws
Overriden by |
# | ||||||||
public
|
unregister_outputfilter(callable $function)
Unregister an outputfilter function
|
# | ||||||||
public
|
load_filter(string $type, string $name)
load a filter of specified type and name
load a filter of specified type and name Parameters
Throws
Overriden by |
# | ||||||||
public
|
clear_cache(
string $tpl_file = null,
string $cache_id = null,
string $compile_id = null,
string $exp_time = null,
): boolean
clear cached content for the given template and cache id
clear cached content for the given template and cache id Parameters
Overriden by |
# | ||||||||
public
|
clear_all_cache(string $exp_time = null): boolean
clear the entire contents of cache (all templates)
clear the entire contents of cache (all templates) Parameters
Overriden by |
# | ||||||||
public
|
is_cached(string $tpl_file, string $cache_id = null, string $compile_id = null): bool
test to see if valid cache exists for this template
test to see if valid cache exists for this template Parameters
Throws
Overriden by |
# | ||||||||
public
|
clear_all_assign()
clear all the assigned template variables.
|
# | ||||||||
public
|
clear_compiled_tpl(string $tpl_file = null, string $compile_id = null, string $exp_time = null): boolean
clears compiled version of specified template resource,
or all compiled template files if one is not specified.
This…
clears compiled version of specified template resource, or all compiled template files if one is not specified. This function is for advanced use only, not normally needed. Returnsresults of {@link smarty_core_rm_auto()} Overriden by |
# | ||||||||
public
|
template_exists(string $tpl_file): bool
Checks whether requested template exists.
|
# | ||||||||
public
|
get_template_vars(string $name = null): array
Returns an array containing template variables
|
# | ||||||||
public
|
get_config_vars(string $name = null): array
Returns an array containing config variables
|
# | ||||||||
public
|
config_load(string $file, string $section = null, string $scope = 'global')
load configuration values
|
# | ||||||||
public
|
get_registered_object(string $name): object
return a reference to a registered object
|
# | ||||||||
public
|
clear_config(string $var = null)
clear configuration values
|
# | ||||||||
public
|
trigger_error(string $error_msg, integer $error_type = E_USER_WARNING)
trigger Smarty error
trigger Smarty error |
# |
Properties | |||
---|---|---|---|
public
|
string
|
$_version = self::SMARTY_VERSION
|
# |
public
|
array
|
$trusted_dir = []
|
# |
Properties inherited from Smarty_Internal_TemplateBase |
---|
$cache_id, $compile_id, $caching, $compile_check, $cache_lifetime, $tplFunctions, $_cache, |
Properties inherited from Smarty_Internal_Data |
---|
$template_class, $tpl_vars, $parent, $config_vars, $ext, $scope, $smarty |