Öffentliche Methoden | |
__construct ($template_resource, $smarty, $_parent=null, $_cache_id=null, $_compile_id=null, $_caching=null, $_cache_lifetime=null) | |
fetch () | |
display () | |
render ($merge_tpl_vars=false, $no_output_filter=true, $display=null) | |
getRenderedTemplateCode () | |
mustCompile () | |
compileTemplateSource () | |
writeCachedContent ($content) | |
getSubTemplate ($template, $cache_id, $compile_id, $caching, $cache_lifetime, $data, $parent_scope) | |
setupSubTemplate ($template, $cache_id, $compile_id, $caching, $cache_lifetime, $data, $parent_scope) | |
getInlineSubTemplate ($template, $cache_id, $compile_id, $caching, $cache_lifetime, $data, $parent_scope, $hash, $content_func) | |
callTemplateFunction ($name, Smarty_Internal_Template $_smarty_tpl, $params, $nocache) | |
decodeProperties ($properties, $cache=false) | |
createLocalArrayVariable ($tpl_var, $nocache=false, $scope=Smarty::SCOPE_LOCAL) | |
& | getScope ($scope) |
getScopePointer ($scope) | |
_count ($value) | |
capture_error () | |
clearCache ($exp_time=null) | |
loadSource () | |
loadCompiled () | |
loadCached () | |
loadCompiler () | |
__call ($name, $args) | |
__set ($property_name, $value) | |
__get ($property_name) | |
__destruct () | |
Öffentliche Methoden geerbt von Smarty_Internal_TemplateBase | |
isCached ($template=null, $cache_id=null, $compile_id=null, $parent=null) | |
createData ($parent=null, $name=null) | |
getTemplateId ($template_name, $cache_id=null, $compile_id=null) | |
registerPlugin ($type, $tag, $callback, $cacheable=true, $cache_attr=null) | |
unregisterPlugin ($type, $tag) | |
registerResource ($type, $callback) | |
unregisterResource ($type) | |
registerCacheResource ($type, Smarty_CacheResource $callback) | |
unregisterCacheResource ($type) | |
registerObject ($object_name, $object_impl, $allowed=array(), $smarty_args=true, $block_methods=array()) | |
getRegisteredObject ($name) | |
unregisterObject ($name) | |
registerClass ($class_name, $class_impl) | |
registerDefaultPluginHandler ($callback) | |
registerDefaultTemplateHandler ($callback) | |
registerDefaultConfigHandler ($callback) | |
registerFilter ($type, $callback) | |
unregisterFilter ($type, $callback) | |
_get_filter_name ($function_name) | |
loadFilter ($type, $name) | |
unloadFilter ($type, $name) | |
__call ($name, $args) | |
Öffentliche Methoden geerbt von Smarty_Internal_Data | |
assign ($tpl_var, $value=null, $nocache=false) | |
assignGlobal ($varname, $value=null, $nocache=false) | |
assignByRef ($tpl_var, &$value, $nocache=false) | |
append ($tpl_var, $value=null, $merge=false, $nocache=false) | |
appendByRef ($tpl_var, &$value, $merge=false) | |
getTemplateVars ($varname=null, $_ptr=null, $search_parents=true) | |
clearAssign ($tpl_var) | |
clearAllAssign () | |
configLoad ($config_file, $sections=null) | |
getVariable ($variable, $_ptr=null, $search_parents=true, $error_enable=true) | |
getConfigVariable ($variable, $error_enable=true) | |
getConfigVars ($varname=null, $search_parents=true) | |
clearConfig ($varname=null) | |
getStreamVariable ($variable) | |
Datenfelder | |
$smarty = null | |
$template_resource = null | |
$templateId = null | |
$mustCompile = null | |
$has_nocache_code = false | |
$properties | |
$required_plugins = array('compiled' => array(), 'nocache' => array()) | |
$block_data = array() | |
$variable_filters = array() | |
$used_tags = array() | |
$allow_relative_path = false | |
$_capture_stack = array(0 => array()) | |
Datenfelder geerbt von Smarty_Internal_TemplateBase | |
$cache_id = null | |
$compile_id = null | |
$caching = false | |
$cache_lifetime = 3600 | |
Datenfelder geerbt von Smarty_Internal_Data | |
$template_class = 'Smarty_Internal_Template' | |
$tpl_vars = array() | |
$parent = null | |
$config_vars = array() | |
Definiert in Zeile 21 der Datei smarty_internal_template.php.
__construct | ( | $template_resource, | |
$smarty, | |||
$_parent = null , |
|||
$_cache_id = null , |
|||
$_compile_id = null , |
|||
$_caching = null , |
|||
$_cache_lifetime = null |
|||
) |
Create template data object Some of the global Smarty settings copied to template scope It load the required template resources and caching plugins
string | $template_resource | template resource string |
Smarty | $smarty | Smarty instance |
Smarty_Internal_Template | $_parent | back pointer to parent object with variables or null |
mixed | $_cache_id | cache id or null |
mixed | $_compile_id | compile id or null |
bool | $_caching | use caching? |
int | $_cache_lifetime | cache life-time in seconds |
Definiert in Zeile 113 der Datei smarty_internal_template.php.
Benutzt $smarty, $template_resource und Smarty\CACHING_LIFETIME_CURRENT.
__destruct | ( | ) |
Template data object destructor
Definiert in Zeile 916 der Datei smarty_internal_template.php.
__call | ( | $name, | |
$args | |||
) |
Handle unknown class methods
string | $name | unknown method-name |
array | $args | argument array |
SmartyException |
Definiert in Zeile 841 der Datei smarty_internal_template.php.
__get | ( | $property_name) |
get Smarty property in template context
string | $property_name | property name |
SmartyException |
Definiert in Zeile 886 der Datei smarty_internal_template.php.
Benutzt loadCached(), loadCompiled(), loadCompiler() und loadSource().
__set | ( | $property_name, | |
$value | |||
) |
set Smarty property in template context
string | $property_name | property name |
mixed | $value | value |
SmartyException |
Definiert in Zeile 859 der Datei smarty_internal_template.php.
_count | ( | $value) |
[util function] counts an array, arrayAccess/traversable or PDOStatement object
mixed | $value |
Definiert in Zeile 733 der Datei smarty_internal_template.php.
callTemplateFunction | ( | $name, | |
Smarty_Internal_Template | $_smarty_tpl, | ||
$params, | |||
$nocache | |||
) |
Call template function
string | $name | template function name |
object | \Smarty_Internal_Template | $_smarty_tpl | template object |
array | $params | parameter array |
bool | $nocache | true if called nocache |
\SmartyException |
Definiert in Zeile 559 der Datei smarty_internal_template.php.
Benutzt Smarty_Internal_Function_Call_Handler\call().
capture_error | ( | ) |
runtime error not matching capture tags
Definiert in Zeile 761 der Datei smarty_internal_template.php.
Wird benutzt von getRenderedTemplateCode().
clearCache | ( | $exp_time = null ) |
Empty cache for this template
integer | $exp_time | expiration time |
Definiert in Zeile 773 der Datei smarty_internal_template.php.
Benutzt Smarty_CacheResource\invalidLoadedCache().
compileTemplateSource | ( | ) |
Compiles the template If the template is not evaluated the compiled template is saved on disk
Definiert in Zeile 420 der Datei smarty_internal_template.php.
Wird benutzt von Smarty_Internal_Utility\getTags().
createLocalArrayVariable | ( | $tpl_var, | |
$nocache = false , |
|||
$scope = Smarty::SCOPE_LOCAL |
|||
) |
Template code runtime function to create a local Smarty variable for array assignments
string | $tpl_var | template variable name |
bool | $nocache | cache mode of variable |
int | $scope | scope of variable |
Definiert in Zeile 661 der Datei smarty_internal_template.php.
Benutzt Smarty\SCOPE_LOCAL.
decodeProperties | ( | $properties, | |
$cache = false |
|||
) |
This function is executed automatically when a compiled or cached template file is included
array | $properties | special template properties |
bool | $cache | flag if called from cache file |
Definiert in Zeile 594 der Datei smarty_internal_template.php.
Benutzt $properties, Smarty\CACHING_LIFETIME_SAVED, Smarty\COMPILECHECK_ON, mustCompile(), Smarty\SMARTY_VERSION und Smarty_Resource\source().
display | ( | ) |
displays a Smarty template
Definiert in Zeile 148 der Datei smarty_internal_template.php.
Benutzt render().
fetch | ( | ) |
fetches rendered template
Exception | |
SmartyException |
Definiert in Zeile 140 der Datei smarty_internal_template.php.
Benutzt render().
getInlineSubTemplate | ( | $template, | |
$cache_id, | |||
$compile_id, | |||
$caching, | |||
$cache_lifetime, | |||
$data, | |||
$parent_scope, | |||
$hash, | |||
$content_func | |||
) |
Template code runtime function to set up an inline subtemplate
string | $template | the resource handle of the template file |
mixed | $cache_id | cache id to be used with this template |
mixed | $compile_id | compile id to be used with this template |
integer | $caching | cache mode |
integer | $cache_lifetime | life time of cache data |
array | $data | passed parameter template variables |
int | $parent_scope | scope in which {include} should execute |
string | $hash | nocache hash code |
string | $content_func | name of content function |
Definiert in Zeile 525 der Datei smarty_internal_template.php.
Benutzt Smarty_Internal_TemplateBase\$cache_id, Smarty_Internal_TemplateBase\$cache_lifetime, Smarty_Internal_TemplateBase\$caching, Smarty_Internal_TemplateBase\$compile_id, Smarty_Internal_Debug\end_render(), Smarty_Internal_Debug\end_template(), setupSubTemplate(), Smarty_Internal_Debug\start_render() und Smarty_Internal_Debug\start_template().
getRenderedTemplateCode | ( | ) |
get rendered template content by calling compiled or cached template code
Exception |
Definiert in Zeile 356 der Datei smarty_internal_template.php.
Benutzt capture_error().
Wird benutzt von render(), Smarty_Template_Compiled\render() und Smarty_Template_Cached\render().
& getScope | ( | $scope) |
Template code runtime function to get pointer to template variable array of requested scope
int | $scope | requested variable scope |
Definiert in Zeile 683 der Datei smarty_internal_template.php.
Benutzt Smarty\$global_tpl_vars, Smarty_Internal_Data\$parent, Smarty\SCOPE_GLOBAL, Smarty\SCOPE_PARENT und Smarty\SCOPE_ROOT.
getScopePointer | ( | $scope) |
Get parent or root of template parent chain
int | $scope | parent or root scope |
Definiert in Zeile 709 der Datei smarty_internal_template.php.
Benutzt Smarty_Internal_Data\$parent, Smarty\SCOPE_PARENT und Smarty\SCOPE_ROOT.
Wird benutzt von setupSubTemplate().
getSubTemplate | ( | $template, | |
$cache_id, | |||
$compile_id, | |||
$caching, | |||
$cache_lifetime, | |||
$data, | |||
$parent_scope | |||
) |
Template code runtime function to get subtemplate content
string | $template | the resource handle of the template file |
mixed | $cache_id | cache id to be used with this template |
mixed | $compile_id | compile id to be used with this template |
integer | $caching | cache mode |
integer | $cache_lifetime | life time of cache data |
$data | ||
int | $parent_scope | scope in which {include} should execute |
Definiert in Zeile 450 der Datei smarty_internal_template.php.
Benutzt Smarty_Internal_TemplateBase\$cache_id, Smarty_Internal_TemplateBase\$cache_lifetime, Smarty_Internal_TemplateBase\$caching, Smarty_Internal_TemplateBase\$compile_id und setupSubTemplate().
loadCached | ( | ) |
Load cached object
Definiert in Zeile 811 der Datei smarty_internal_template.php.
Benutzt Smarty_Template_Cached\load().
Wird benutzt von __get() und render().
loadCompiled | ( | ) |
Load compiled object
Definiert in Zeile 797 der Datei smarty_internal_template.php.
Benutzt Smarty_Template_Compiled\load().
Wird benutzt von __get() und render().
loadCompiler | ( | ) |
Load compiler object
\SmartyException |
Definiert in Zeile 826 der Datei smarty_internal_template.php.
Wird benutzt von __get().
loadSource | ( | ) |
Load source resource
SmartyException |
Definiert in Zeile 785 der Datei smarty_internal_template.php.
Benutzt $templateId und Smarty_Template_Source\load().
Wird benutzt von Smarty_Template_Cached\__construct(), __get() und render().
mustCompile | ( | ) |
Returns if the current template must be compiled by the Smarty compiler It does compare the timestamps of template source and the compiled templates and checks the force compile configuration
SmartyException |
Definiert in Zeile 398 der Datei smarty_internal_template.php.
Benutzt $mustCompile.
Wird benutzt von decodeProperties() und Smarty_Template_Compiled\process().
render | ( | $merge_tpl_vars = false , |
|
$no_output_filter = true , |
|||
$display = null |
|||
) |
render template
bool | $merge_tpl_vars | if true parent template variables merged in to local scope |
bool | $no_output_filter | if true do not run output filter |
bool | $display | true: display, false: fetch null: subtemplate |
Exception | |
SmartyException |
Definiert in Zeile 164 der Datei smarty_internal_template.php.
Benutzt Smarty_Internal_Data\$config_vars, Smarty\$global_tpl_vars, $has_nocache_code, Smarty_Internal_Data\$tpl_vars, Smarty\CACHING_LIFETIME_CURRENT, Smarty\CACHING_LIFETIME_SAVED, Smarty_Internal_Debug\debugUrl(), Smarty_Internal_Debug\display_debug(), Smarty_Internal_Debug\end_cache(), Smarty_Internal_Debug\end_render(), Smarty_Internal_Debug\end_template(), getRenderedTemplateCode(), loadCached(), loadCompiled(), loadSource(), Smarty_Internal_Filter_Handler\runFilter(), Smarty_Internal_Debug\start_cache(), Smarty_Internal_Debug\start_render() und Smarty_Internal_Debug\start_template().
Wird benutzt von display() und fetch().
setupSubTemplate | ( | $template, | |
$cache_id, | |||
$compile_id, | |||
$caching, | |||
$cache_lifetime, | |||
$data, | |||
$parent_scope | |||
) |
Template code runtime function to set up an inline subtemplate
string | $template | the resource handle of the template file |
mixed | $cache_id | cache id to be used with this template |
mixed | $compile_id | compile id to be used with this template |
integer | $caching | cache mode |
integer | $cache_lifetime | life time of cache data |
array | $data | passed parameter template variables |
int | $parent_scope | scope in which {include} should execute |
Definiert in Zeile 469 der Datei smarty_internal_template.php.
Benutzt Smarty_Internal_TemplateBase\$cache_id, Smarty_Internal_TemplateBase\$cache_lifetime, Smarty_Internal_TemplateBase\$caching, Smarty_Internal_TemplateBase\$compile_id, Smarty_Internal_Data\$config_vars, Smarty\$global_tpl_vars, Smarty_Internal_Data\$tpl_vars, getScopePointer(), Smarty_Internal_TemplateBase\getTemplateId(), Smarty\SCOPE_GLOBAL, Smarty\SCOPE_LOCAL und Smarty\SCOPE_PARENT.
Wird benutzt von getInlineSubTemplate() und getSubTemplate().
writeCachedContent | ( | $content) |
Writes the content to cache resource
string | $content |
Definiert in Zeile 432 der Datei smarty_internal_template.php.
$_capture_stack = array(0 => array()) |
Definiert in Zeile 98 der Datei smarty_internal_template.php.
$allow_relative_path = false |
Definiert in Zeile 92 der Datei smarty_internal_template.php.
$block_data = array() |
Definiert in Zeile 74 der Datei smarty_internal_template.php.
$has_nocache_code = false |
Definiert in Zeile 53 der Datei smarty_internal_template.php.
Wird benutzt von render().
$mustCompile = null |
Definiert in Zeile 47 der Datei smarty_internal_template.php.
Wird benutzt von mustCompile().
$properties |
Definiert in Zeile 59 der Datei smarty_internal_template.php.
Wird benutzt von decodeProperties().
$required_plugins = array('compiled' => array(), 'nocache' => array()) |
Definiert in Zeile 68 der Datei smarty_internal_template.php.
$smarty = null |
Definiert in Zeile 28 der Datei smarty_internal_template.php.
Wird benutzt von __construct().
$template_resource = null |
Definiert in Zeile 35 der Datei smarty_internal_template.php.
Wird benutzt von __construct().
$templateId = null |
Definiert in Zeile 41 der Datei smarty_internal_template.php.
Wird benutzt von loadSource().
$used_tags = array() |
Definiert in Zeile 86 der Datei smarty_internal_template.php.
$variable_filters = array() |
Definiert in Zeile 80 der Datei smarty_internal_template.php.