Smarty_Internal_TemplateBase Klassenreferenz

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

Öffentliche Methoden

 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

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

Private Methoden

 replaceCamelcase ($match)
 

Ausführliche Beschreibung

Definiert in Zeile 17 der Datei smarty_internal_templatebase.php.

Dokumentation der Elementfunktionen

__call (   $name,
  $args 
)

Handle unknown class methods

Parameter
string$nameunknown method-name
array$argsargument array
Ausnahmebehandlung
SmartyException

Definiert in Zeile 509 der Datei smarty_internal_templatebase.php.

_get_filter_name (   $function_name)

Return internal filter name

Parameter
callback$function_name
Rückgabe
string internal filter name

Definiert in Zeile 431 der Datei smarty_internal_templatebase.php.

Wird benutzt von registerFilter() und unregisterFilter().

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

createData (   $parent = null,
  $name = null 
)

creates a data object

Parameter
object$parentnext higher level of Smarty variables
string$nameoptional data block name
Rückgabe
Smarty_Data data object

Definiert in Zeile 84 der Datei smarty_internal_templatebase.php.

Benutzt Smarty_Internal_Data\$parent und Smarty_Internal_Debug\register_data().

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

getRegisteredObject (   $name)

return a reference to a registered object

Parameter
string$nameobject name
Rückgabe
object
Ausnahmebehandlung
SmartyExceptionif no such object is found

Definiert in Zeile 282 der Datei smarty_internal_templatebase.php.

Wird benutzt von SmartyBC\get_registered_object().

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

getTemplateId (   $template_name,
  $cache_id = null,
  $compile_id = null 
)

Get unique template id

Parameter
string$template_name
null | mixed$cache_id
null | mixed$compile_id
Rückgabe
string

Definiert in Zeile 102 der Datei smarty_internal_templatebase.php.

Benutzt $cache_id, $compile_id und Smarty_Resource\getUniqueTemplateName().

Wird benutzt von Smarty\createTemplate() und Smarty_Internal_Template\setupSubTemplate().

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

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

isCached (   $template = null,
  $cache_id = null,
  $compile_id = null,
  $parent = null 
)

test if cache is valid

Parameter
string | object$templatethe resource handle of the template file or template object
mixed$cache_idcache id to be used with this template
mixed$compile_idcompile id to be used with this template
object$parentnext higher level of Smarty variables
Rückgabe
boolean cache status

Definiert in Zeile 56 der Datei smarty_internal_templatebase.php.

Benutzt $cache_id, $compile_id und Smarty_Internal_Data\$parent.

Wird benutzt von Smarty_Template_Cached\cacheModifiedCheck() und SmartyBC\is_cached().

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

loadFilter (   $type,
  $name 
)

load a filter of specified type and name

Parameter
string$typefilter type
string$namefilter name
Ausnahmebehandlung
SmartyExceptionif filter could not be loaded

Definiert in Zeile 451 der Datei smarty_internal_templatebase.php.

Wird benutzt von SmartyBC\load_filter().

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

registerCacheResource (   $type,
Smarty_CacheResource  $callback 
)

Registers a cache resource to cache a template's output

Parameter
string$typename of cache resource type
Smarty_CacheResource$callbackinstance of Smarty_CacheResource to handle output caching
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 209 der Datei smarty_internal_templatebase.php.

registerClass (   $class_name,
  $class_impl 
)

Registers static classes to be used in templates

Parameter
$class_name
string$class_implthe referenced PHP class to register
Ausnahmebehandlung
SmartyException
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 323 der Datei smarty_internal_templatebase.php.

registerDefaultConfigHandler (   $callback)

Registers a default template handler

Parameter
callable$callbackclass/method name
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining
Ausnahmebehandlung
SmartyExceptionif $callback is not callable

Definiert in Zeile 381 der Datei smarty_internal_templatebase.php.

Benutzt Smarty_Internal_Extension_DefaultTemplateHandler\registerDefaultConfigHandler().

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

registerDefaultPluginHandler (   $callback)

Registers a default plugin handler

Parameter
callable$callbackclass/method name
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining
Ausnahmebehandlung
SmartyExceptionif $callback is not callable

Definiert in Zeile 345 der Datei smarty_internal_templatebase.php.

registerDefaultTemplateHandler (   $callback)

Registers a default template handler

Parameter
callable$callbackclass/method name
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining
Ausnahmebehandlung
SmartyExceptionif $callback is not callable

Definiert in Zeile 366 der Datei smarty_internal_templatebase.php.

Benutzt Smarty_Internal_Extension_DefaultTemplateHandler\registerDefaultTemplateHandler().

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

registerFilter (   $type,
  $callback 
)

Registers a filter function

Parameter
string$typefilter type
callback$callback
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 396 der Datei smarty_internal_templatebase.php.

Benutzt _get_filter_name().

Wird benutzt von SmartyBC\register_outputfilter(), SmartyBC\register_postfilter() und SmartyBC\register_prefilter().

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

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

registerObject (   $object_name,
  $object_impl,
  $allowed = array(),
  $smarty_args = true,
  $block_methods = array() 
)

Registers object to be used in templates

Parameter
$object_name
object$object_implthe referenced PHP object to register
array$allowedlist of allowed methods (empty = all)
boolean$smarty_argssmarty argument format, else traditional
array$block_methodslist of block-methods
Ausnahmebehandlung
SmartyException
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 248 der Datei smarty_internal_templatebase.php.

Wird benutzt von SmartyBC\register_object().

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

registerPlugin (   $type,
  $tag,
  $callback,
  $cacheable = true,
  $cache_attr = null 
)

Registers plugin to be used in templates

Parameter
string$typeplugin type
string$tagname of template tag
callback$callbackPHP callback to register
boolean$cacheableif true (default) this fuction is cachable
array$cache_attrcaching attributes if any
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining
Ausnahmebehandlung
SmartyExceptionwhen the plugin tag is invalid

Definiert in Zeile 131 der Datei smarty_internal_templatebase.php.

Wird benutzt von SmartyBC\register_block(), SmartyBC\register_compiler_function(), SmartyBC\register_function() und SmartyBC\register_modifier().

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

registerResource (   $type,
  $callback 
)

Registers a resource to fetch a template

Parameter
string$typename of resource type
Smarty_Resource | array$callbackor instance of Smarty_Resource, or array of callbacks to handle resource (deprecated)
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 174 der Datei smarty_internal_templatebase.php.

Wird benutzt von Smarty_Resource\load() und SmartyBC\register_resource().

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

replaceCamelcase (   $match)
private

preg_replace callback to convert camelcase getter/setter to underscore property names

Parameter
string$matchmatch string
Rückgabe
string replacemant

Definiert in Zeile 496 der Datei smarty_internal_templatebase.php.

unloadFilter (   $type,
  $name 
)

unload a filter of specified type and name

Parameter
string$typefilter type
string$namefilter name
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 478 der Datei smarty_internal_templatebase.php.

unregisterCacheResource (   $type)

Unregisters a cache resource

Parameter
string$typename of cache resource type
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 225 der Datei smarty_internal_templatebase.php.

unregisterFilter (   $type,
  $callback 
)

Unregisters a filter function

Parameter
string$typefilter type
callback$callback
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 413 der Datei smarty_internal_templatebase.php.

Benutzt _get_filter_name().

Wird benutzt von SmartyBC\unregister_outputfilter(), SmartyBC\unregister_postfilter() und SmartyBC\unregister_prefilter().

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

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

unregisterObject (   $name)

unregister an object

Parameter
string$nameobject name
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 303 der Datei smarty_internal_templatebase.php.

Wird benutzt von SmartyBC\unregister_object().

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

unregisterPlugin (   $type,
  $tag 
)

Unregister Plugin

Parameter
string$typeof plugin
string$tagname of plugin
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 154 der Datei smarty_internal_templatebase.php.

Wird benutzt von SmartyBC\unregister_block(), SmartyBC\unregister_compiler_function(), SmartyBC\unregister_function() und SmartyBC\unregister_modifier().

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

unregisterResource (   $type)

Unregisters a resource

Parameter
string$typename of resource type
Rückgabe
Smarty_Internal_Templatebase current Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Definiert in Zeile 190 der Datei smarty_internal_templatebase.php.

Wird benutzt von SmartyBC\unregister_resource().

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

Dokumentation der Datenelemente


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.