Class Smarty_Internal_Template
Main class with template data structures and methods
- Smarty_Internal_Data
-
Smarty_Internal_TemplateBase
-
Smarty_Internal_Template
Author: Uwe Tews
Located at tpl/smarty/sysplugins/smarty_internal_template.php
Methods summary
public
|
#
__construct( string $template_resource,
Create template data object Some of the global Smarty settings copied to template scope It load the required template resources and caching plugins |
public
string
|
|
public
|
#
_subTemplateRender( string $template, mixed $cache_id, mixed $compile_id, integer $caching, integer $cache_lifetime, array $data, integer $scope, boolean $forceTplCache, string $uid = null, string $content_func = null )
Runtime function to render sub-template |
public
|
|
public
boolean
|
|
public
|
#
_assignInScope( string $varName, mixed $value, boolean $nocache = false, integer $scope = 0 )
Assign variable in scope |
public
boolean
|
#
_decodeProperties(
This function is executed automatically when a compiled or cached template file is included - Decode saved properties from compiled template and cache files - Check if compiled or cache file is valid |
public
|
#
compileTemplateSource( )
Compiles the template If the template is not evaluated the compiled template is saved on disk |
public
boolean
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
mixed|
|
|
public
|
Methods inherited from Smarty_Internal_TemplateBase
display()
,
fetch()
,
isCached()
,
loadFilter()
,
registerFilter()
,
registerObject()
,
registerPlugin()
,
setCacheId()
,
setCacheLifetime()
,
setCaching()
,
setCompileId()
Methods inherited from Smarty_Internal_Data
_mergeVars()
,
append()
,
appendByRef()
,
assign()
,
assignByRef()
,
assignGlobal()
,
getTemplateVars()
,
getVariable()
Magic methods summary
public
boolean
|
Magic methods inherited from Smarty_Internal_TemplateBase
addAutoloadFilters()
,
addDefaultModifier()
,
createData()
,
getAutoloadFilters()
,
getDebugTemplate()
,
getDefaultModifier()
,
getRegisteredObject()
,
getTags()
,
registerCacheResource()
,
registerClass()
,
registerDefaultConfigHandler()
,
registerDefaultPluginHandler()
,
registerDefaultTemplateHandler()
,
registerResource()
,
setAutoloadFilters()
,
setDebugTemplate()
,
setDefaultModifier()
,
unloadFilter()
,
unregisterCacheResource()
,
unregisterFilter()
,
unregisterObject()
,
unregisterPlugin()
,
unregisterResource()
Magic methods inherited from Smarty_Internal_Data
clearAllAssign()
,
clearAssign()
,
clearConfig()
,
configLoad()
,
getConfigVars()
,
getGlobal()
,
getStreamVariable()
Properties summary
public
integer
|
$_objType
This object type (Smarty = 1, template = 2, data = 4) |
#
2
|
public
|
$smarty
Global smarty instance |
#
null
|
public
|
$source
Source instance |
#
null
|
public
|
$inheritance
Inheritance runtime extension |
#
null
|
public
string
|
$template_resource
Template resource |
#
null
|
public
boolean
|
$mustCompile
flag if compiled template is invalid and must be (re)compiled |
#
null
|
public
null|string
|
$templateId
Template Id |
#
null
|
public
integer
|
$scope
Scope in which variables shall be assigned |
#
0
|
public
boolean
|
$isRenderingCache
Flag which is set while rending a cache file |
#
false
|
public
callback[]
|
$startRenderCallbacks
Callbacks called before rendering template |
#
array()
|
public
callback[]
|
$endRenderCallbacks
Callbacks called after rendering template |
#
array()
|
Properties inherited from Smarty_Internal_TemplateBase
Properties inherited from Smarty_Internal_Data
Magic properties
public
|
$compiled
|
public
|
$cached
|
public
|
$compiler
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 |