Class Smarty_Internal_TemplateBase
Class with shared smarty/template methods
- Smarty_Internal_Data
- Smarty_Internal_TemplateBase
Direct known subclasses
Package: Smarty\Template
Author: Uwe Tews
Located at tpl/smarty/sysplugins/smarty_internal_templatebase.php
Methods summary
public
string
|
#
fetch( string $template = null, mixed $cache_id = null, mixed $compile_id = null, object $parent = null )
fetches a rendered Smarty template |
public
|
#
display( string $template = null, mixed $cache_id = null, mixed $compile_id = null, object $parent = null )
displays a Smarty template |
public
boolean
|
#
isCached( null|string|
test if cache is valid |
public
|
#
registerPlugin( string $type, string $name, callable $callback, boolean $cacheable = true, mixed $cache_attr = null )
Registers plugin to be used in templates |
public
boolean
|
|
public
|
#
registerFilter( string $type, callable $callback, string|null $name = null )
Registers a filter function |
public
|
#
registerObject( string $object_name, object $object, array $allowed_methods_properties = array(), boolean $format = true, array $block_methods = array() )
Registers object to be used in templates |
public
|
|
public
|
|
public
|
|
public
|
Methods inherited from Smarty_Internal_Data
__call()
,
__construct()
,
_mergeVars()
,
append()
,
appendByRef()
,
assign()
,
assignByRef()
,
assignGlobal()
,
getTemplateVars()
,
getVariable()
Magic methods summary
public
|
|
public
|
|
public
|
|
public
array
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
object
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Magic methods inherited from Smarty_Internal_Data
clearAllAssign()
,
clearAssign()
,
clearConfig()
,
configLoad()
,
getConfigVars()
,
getGlobal()
,
getStreamVariable()
Properties summary
public
string
|
$cache_id
Set this if you want different sets of cache files for the same templates. |
#
null
|
public
string
|
$compile_id
Set this if you want different sets of compiled files for the same templates. |
#
null
|
public
boolean
|
$caching
caching enabled |
#
false
|
public
integer
|
$cache_lifetime
cache lifetime in seconds |
#
3600
|
public
array()
|
$_cache
universal cache |
#
array()
|
Properties inherited from Smarty_Internal_Data
$_objType
,
$config_vars
,
$ext
,
$parent
,
$template_class
,
$tpl_vars
Magic properties
public
|
$smarty
The following methods will be dynamically loaded by the extension handler when they are called. They are located in a corresponding Smarty_Internal_Method_xxxx class |