Smarty_Internal_Template Klassenreferenz

Smarty_Internal_Template Klassenreferenz
Klassendiagramm für Smarty_Internal_Template:
Zusammengehörigkeiten von Smarty_Internal_Template:

Ö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()
 

Ausführliche Beschreibung

Definiert in Zeile 21 der Datei smarty_internal_template.php.

Beschreibung der Konstruktoren und Destruktoren

__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

Parameter
string$template_resourcetemplate resource string
Smarty$smartySmarty instance
Smarty_Internal_Template$_parentback pointer to parent object with variables or null
mixed$_cache_idcache id or null
mixed$_compile_idcompile id or null
bool$_cachinguse caching?
int$_cache_lifetimecache 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.

Dokumentation der Elementfunktionen

__call (   $name,
  $args 
)

Handle unknown class methods

Parameter
string$nameunknown method-name
array$argsargument array
Rückgabe
mixed
Ausnahmebehandlung
SmartyException

Definiert in Zeile 841 der Datei smarty_internal_template.php.

__get (   $property_name)

get Smarty property in template context

Parameter
string$property_nameproperty name
Rückgabe
mixed|Smarty_Template_Cached
Ausnahmebehandlung
SmartyException

Definiert in Zeile 886 der Datei smarty_internal_template.php.

Benutzt loadCached(), loadCompiled(), loadCompiler() und loadSource().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

__set (   $property_name,
  $value 
)

set Smarty property in template context

Parameter
string$property_nameproperty name
mixed$valuevalue
Ausnahmebehandlung
SmartyException

Definiert in Zeile 859 der Datei smarty_internal_template.php.

_count (   $value)

[util function] counts an array, arrayAccess/traversable or PDOStatement object

Parameter
mixed$value
Rückgabe
int the count for arrays and objects that implement countable, 1 for other objects that don't, and 0 for empty elements

Definiert in Zeile 733 der Datei smarty_internal_template.php.

callTemplateFunction (   $name,
Smarty_Internal_Template  $_smarty_tpl,
  $params,
  $nocache 
)

Call template function

Parameter
string$nametemplate function name
object | \Smarty_Internal_Template$_smarty_tpltemplate object
array$paramsparameter array
bool$nocachetrue if called nocache
Ausnahmebehandlung
\SmartyException

Definiert in Zeile 559 der Datei smarty_internal_template.php.

Benutzt Smarty_Internal_Function_Call_Handler\call().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

capture_error ( )

runtime error not matching capture tags

Definiert in Zeile 761 der Datei smarty_internal_template.php.

Wird benutzt von getRenderedTemplateCode().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

clearCache (   $exp_time = null)

Empty cache for this template

Parameter
integer$exp_timeexpiration time
Rückgabe
integer number of cache files deleted

Definiert in Zeile 773 der Datei smarty_internal_template.php.

Benutzt Smarty_CacheResource\invalidLoadedCache().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

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().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

createLocalArrayVariable (   $tpl_var,
  $nocache = false,
  $scope = Smarty::SCOPE_LOCAL 
)

Template code runtime function to create a local Smarty variable for array assignments

Parameter
string$tpl_vartemplate variable name
bool$nocachecache mode of variable
int$scopescope 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

  • Decode saved properties from compiled template and cache files
  • Check if compiled or cache file is valid
Parameter
array$propertiesspecial template properties
bool$cacheflag if called from cache file
Rückgabe
bool flag if compiled or cache file is valid

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

display ( )

displays a Smarty template

Definiert in Zeile 148 der Datei smarty_internal_template.php.

Benutzt render().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

fetch ( )

fetches rendered template

Ausnahmebehandlung
Exception
SmartyException
Rückgabe
string rendered template output

Definiert in Zeile 140 der Datei smarty_internal_template.php.

Benutzt render().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

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

Parameter
string$templatethe resource handle of the template file
mixed$cache_idcache id to be used with this template
mixed$compile_idcompile id to be used with this template
integer$cachingcache mode
integer$cache_lifetimelife time of cache data
array$datapassed parameter template variables
int$parent_scopescope in which {include} should execute
string$hashnocache hash code
string$content_funcname of content function
Rückgabe
object template content

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

getRenderedTemplateCode ( )

get rendered template content by calling compiled or cached template code

Rückgabe
string
Ausnahmebehandlung
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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

& getScope (   $scope)

Template code runtime function to get pointer to template variable array of requested scope

Parameter
int$scoperequested variable scope
Rückgabe
array array of template variables

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

Parameter
int$scopeparent or root scope
Rückgabe
mixed object

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().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

getSubTemplate (   $template,
  $cache_id,
  $compile_id,
  $caching,
  $cache_lifetime,
  $data,
  $parent_scope 
)

Template code runtime function to get subtemplate content

Parameter
string$templatethe resource handle of the template file
mixed$cache_idcache id to be used with this template
mixed$compile_idcompile id to be used with this template
integer$cachingcache mode
integer$cache_lifetimelife time of cache data
$data
int$parent_scopescope in which {include} should execute
Rückgabe
string template content

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

loadCompiler ( )

Load compiler object

Ausnahmebehandlung
\SmartyException

Definiert in Zeile 826 der Datei smarty_internal_template.php.

Wird benutzt von __get().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

loadSource ( )

Load source resource

Ausnahmebehandlung
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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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

Ausnahmebehandlung
SmartyException
Rückgabe
boolean true if the template must be compiled

Definiert in Zeile 398 der Datei smarty_internal_template.php.

Benutzt $mustCompile.

Wird benutzt von decodeProperties() und Smarty_Template_Compiled\process().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

render (   $merge_tpl_vars = false,
  $no_output_filter = true,
  $display = null 
)

render template

Parameter
bool$merge_tpl_varsif true parent template variables merged in to local scope
bool$no_output_filterif true do not run output filter
bool$displaytrue: display, false: fetch null: subtemplate
Ausnahmebehandlung
Exception
SmartyException
Rückgabe
string rendered template output

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

setupSubTemplate (   $template,
  $cache_id,
  $compile_id,
  $caching,
  $cache_lifetime,
  $data,
  $parent_scope 
)

Template code runtime function to set up an inline subtemplate

Parameter
string$templatethe resource handle of the template file
mixed$cache_idcache id to be used with this template
mixed$compile_idcompile id to be used with this template
integer$cachingcache mode
integer$cache_lifetimelife time of cache data
array$datapassed parameter template variables
int$parent_scopescope in which {include} should execute
Rückgabe
object template object

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

writeCachedContent (   $content)

Writes the content to cache resource

Parameter
string$content
Rückgabe
bool

Definiert in Zeile 432 der Datei smarty_internal_template.php.

Dokumentation der Datenelemente

$_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
Initialisierung:
= array('file_dependency' => array(),
'nocache_hash' => '',
'tpl_function' => array(),
)

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.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.