Class cSmartyWrapper
Wrapper class for Integration of smarty.
-
Smarty
-
cSmartyWrapper
Methods summary
public
mixed|string
|
#
fetch( string $template = NULL, mixed $cache_id = NULL, mixed $compile_id = NULL, object $parent = NULL, boolean $display = false, boolean $merge_tpl_vars = true, boolean $no_output_filter = false )
Parameters
- $template
string $template the resource handle of the template file or template object
- $cache_id
mixed $cache_id cache id to be used with this template
- $compile_id
mixed $compile_id compile id to be used with this template
- $parent
object $parent next higher level of Smarty variables
- $display
boolean $display
- $merge_tpl_vars
boolean $merge_tpl_vars
- $no_output_filter
boolean $no_output_filter
Returns
mixed|string
See
Smarty_Internal_TemplateBase::fetch()
|
public
string
|
#
fetchGeneral( string $template = NULL, mixed $cache_id = NULL, mixed $compile_id = NULL, object $parent = NULL, boolean $display = false, boolean $merge_tpl_vars = true, boolean $no_output_filter = false )
Parameters
- $template
string $template the resource handle of the template file or template object
- $cache_id
mixed $cache_id cache id to be used with this template
- $compile_id
mixed $compile_id compile id to be used with this template
- $parent
object $parent next higher level of Smarty variables
- $display
boolean $display
- $merge_tpl_vars
boolean $merge_tpl_vars
- $no_output_filter
boolean $no_output_filter
Returns
string
See
Smarty_Internal_TemplateBase::fetch()
|
public
|
#
display( string $template = NULL, mixed $cache_id = NULL, mixed $compile_id = NULL, object $parent = NULL )
Parameters
- $template
string $template the resource handle of the template file or template object
- $cache_id
mixed $cache_id cache id to be used with this template
- $compile_id
mixed $compile_id compile id to be used with this template
- $parent
object $parent next higher level of Smarty variables
|
public
|
#
displayGeneral( string $template = NULL, mixed $cache_id = NULL, mixed $compile_id = NULL, object $parent = NULL )
Parameters
- $template
string $template the resource handle of the template file or template object
- $cache_id
mixed $cache_id cache id to be used with this template
- $compile_id
mixed $compile_id compile id to be used with this template
- $parent
object $parent next higher level of Smarty variables
See
Smarty_Internal_TemplateBase::display()
|
public
integer
|
#
clearCache( string $template_name, string $cache_id = null, string $compile_id = null, integer $exp_time = null, string $type = null )
Empty cache for a specific template
Empty cache for a specific template
Parameters
- $template_name
string $template_name template name
- $cache_id
string $cache_id cache id
- $compile_id
string $compile_id compile id
- $exp_time
integer $exp_time expiration time
- $type
string $type resource type
Returns
integer number of cache files deleted
|