Smarty Klassenreferenz

Klassendiagramm für Smarty:
Zusammengehörigkeiten von Smarty:

Öffentliche Methoden

 __construct ()
 
 fetch ($template=null, $cache_id=null, $compile_id=null, $parent=null, $display=false, $merge_tpl_vars=true, $no_output_filter=false)
 
 display ($template=null, $cache_id=null, $compile_id=null, $parent=null)
 
 templateExists ($resource_name)
 
 getGlobal ($varname=null)
 
 clearAllCache ($exp_time=null, $type=null)
 
 clearCache ($template_name, $cache_id=null, $compile_id=null, $exp_time=null, $type=null)
 
 enableSecurity ($security_class=null)
 
 disableSecurity ()
 
 setTemplateDir ($template_dir)
 
 addTemplateDir ($template_dir, $key=null)
 
 getTemplateDir ($index=null)
 
 setConfigDir ($config_dir)
 
 addConfigDir ($config_dir, $key=null)
 
 getConfigDir ($index=null)
 
 setPluginsDir ($plugins_dir)
 
 addPluginsDir ($plugins_dir)
 
 getPluginsDir ()
 
 setCompileDir ($compile_dir)
 
 getCompileDir ()
 
 setCacheDir ($cache_dir)
 
 getCacheDir ()
 
 setDefaultModifiers ($modifiers)
 
 addDefaultModifiers ($modifiers)
 
 getDefaultModifiers ()
 
 setAutoloadFilters ($filters, $type=null)
 
 addAutoloadFilters ($filters, $type=null)
 
 getAutoloadFilters ($type=null)
 
 getDebugTemplate ()
 
 setDebugTemplate ($tpl_name)
 
 createTemplate ($template, $cache_id=null, $compile_id=null, $parent=null, $do_clone=true)
 
 loadPlugin ($plugin_name, $check=true)
 
 compileAllTemplates ($extension= '.tpl', $force_compile=false, $time_limit=0, $max_errors=null)
 
 compileAllConfig ($extension= '.conf', $force_compile=false, $time_limit=0, $max_errors=null)
 
 clearCompiledTemplate ($resource_name=null, $compile_id=null, $exp_time=null)
 
 getTags (Smarty_Internal_Template $template)
 
 testInstall (&$errors=null)
 
 setCompileCheck ($compile_check)
 
 setUseSubDirs ($use_sub_dirs)
 
 setCaching ($caching)
 
 setCacheLifetime ($cache_lifetime)
 
 setCompileId ($compile_id)
 
 setCacheId ($cache_id)
 
 setErrorReporting ($error_reporting)
 
 setEscapeHtml ($escape_html)
 
 setAutoLiteral ($auto_literal)
 
 setForceCompile ($force_compile)
 
 setMergeCompiledIncludes ($merge_compiled_includes)
 
 setLeftDelimiter ($left_delimiter)
 
 setRightDelimiter ($right_delimiter)
 
 setDebugging ($debugging)
 
 setConfigOverwrite ($config_overwrite)
 
 setConfigBooleanize ($config_booleanize)
 
 setConfigReadHidden ($config_read_hidden)
 
 setCompileLocking ($compile_locking)
 
 __destruct ()
 
 __get ($name)
 
 __set ($name, $value)
 
- Ö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)
 

Öffentliche, statische Methoden

static mutingErrorHandler ($errno, $errstr, $errfile, $errline, $errcontext)
 
static muteExpectedErrors ()
 
static unmuteExpectedErrors ()
 

Datenfelder

const SMARTY_VERSION = '3.1.27'
 
const SCOPE_LOCAL = 0
 
const SCOPE_PARENT = 1
 
const SCOPE_ROOT = 2
 
const SCOPE_GLOBAL = 3
 
const CACHING_OFF = 0
 
const CACHING_LIFETIME_CURRENT = 1
 
const CACHING_LIFETIME_SAVED = 2
 
const CLEAR_EXPIRED = - 1
 
const COMPILECHECK_OFF = 0
 
const COMPILECHECK_ON = 1
 
const COMPILECHECK_CACHEMISS = 2
 
const DEBUG_OFF = 0
 
const DEBUG_ON = 1
 
const DEBUG_INDIVIDUAL = 2
 
const PHP_PASSTHRU = 0
 
const PHP_QUOTE = 1
 
const PHP_REMOVE = 2
 
const PHP_ALLOW = 3
 
const FILTER_POST = 'post'
 
const FILTER_PRE = 'pre'
 
const FILTER_OUTPUT = 'output'
 
const FILTER_VARIABLE = 'variable'
 
const PLUGIN_FUNCTION = 'function'
 
const PLUGIN_BLOCK = 'block'
 
const PLUGIN_COMPILER = 'compiler'
 
const PLUGIN_MODIFIER = 'modifier'
 
const PLUGIN_MODIFIERCOMPILER = 'modifiercompiler'
 
 $auto_literal = true
 
 $error_unassigned = false
 
 $use_include_path = false
 
 $joined_template_dir = './templates/'
 
 $joined_config_dir = './configs/'
 
 $default_template_handler_func = null
 
 $default_config_handler_func = null
 
 $default_plugin_handler_func = null
 
 $force_compile = false
 
 $compile_check = true
 
 $use_sub_dirs = false
 
 $allow_ambiguous_resources = false
 
 $merge_compiled_includes = false
 
 $inheritance_merge_compiled_includes = true
 
 $force_cache = false
 
 $left_delimiter = "{"
 
 $right_delimiter = "}"
 
 $security_class = 'Smarty_Security'
 
 $security_policy = null
 
 $php_handling = self::PHP_PASSTHRU
 
 $allow_php_templates = false
 
 $direct_access_security = true
 
 $debugging = false
 
 $debugging_ctrl = 'NONE'
 
 $smarty_debug_id = 'SMARTY_DEBUG'
 
 $debug_tpl = null
 
 $error_reporting = null
 
 $get_used_tags = false
 
 $config_overwrite = true
 
 $config_booleanize = true
 
 $config_read_hidden = false
 
 $compile_locking = true
 
 $cache_locking = false
 
 $locking_timeout = 10
 
 $default_resource_type = 'file'
 
 $caching_type = 'file'
 
 $properties = array()
 
 $default_config_type = 'file'
 
 $source_objects = array()
 
 $template_objects = array()
 
 $resource_caching = false
 
 $template_resource_caching = true
 
 $cache_modified_check = false
 
 $registered_plugins = array()
 
 $plugin_search_order = array('function', 'block', 'compiler', 'class')
 
 $registered_objects = array()
 
 $registered_classes = array()
 
 $registered_filters = array()
 
 $registered_resources = array()
 
 $_resource_handlers = array()
 
 $registered_cache_resources = array()
 
 $_cacheresource_handlers = array()
 
 $autoload_filters = array()
 
 $default_modifiers = array()
 
 $escape_html = false
 
 $start_time = 0
 
 $_file_perms = 0644
 
 $_dir_perms = 0771
 
 $_tag_stack = array()
 
 $_current_file = null
 
 $_parserdebug = false
 
 $_is_file_cache = 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()
 

Statische öffentliche Attribute

static $global_tpl_vars = array()
 
static $_previous_error_handler = null
 
static $_muted_directories = array('./templates_c/' => null, './cache/' => null)
 
static $_MBSTRING = SMARTY_MBSTRING
 
static $_CHARSET = SMARTY_RESOURCE_CHAR_SET
 
static $_DATE_FORMAT = SMARTY_RESOURCE_DATE_FORMAT
 
static $_UTF8_MODIFIER = 'u'
 
static $_IS_WINDOWS = false
 
static $_smarty_vars = array()
 

Private Methoden

 _addDir ($dirName, $dir, $key=null)
 

Private Attribute

 $template_dir = array('./templates/')
 
 $compile_dir = './templates_c/'
 
 $plugins_dir = null
 
 $cache_dir = './cache/'
 
 $config_dir = array('./configs/')
 

Ausführliche Beschreibung

Definiert in Zeile 105 der Datei Smarty.class.php.

Beschreibung der Konstruktoren und Destruktoren

__construct ( )

#@- Initialize new Smarty object

Definiert in Zeile 752 der Datei Smarty.class.php.

Benutzt $_CHARSET, $_IS_WINDOWS, $_UTF8_MODIFIER, $global_tpl_vars, setCacheDir(), setCompileDir(), setConfigDir(), setPluginsDir() und setTemplateDir().

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

__destruct ( )

Class destructor

Definiert in Zeile 1658 der Datei Smarty.class.php.

Dokumentation der Elementfunktionen

__get (   $name)

<<magic>> Generic getter. Calls the appropriate getter function. Issues an E_USER_NOTICE if no valid getter is found.

Parameter
string$nameproperty name
Rückgabe
mixed

Definiert in Zeile 1672 der Datei Smarty.class.php.

__set (   $name,
  $value 
)

<<magic>> Generic setter. Calls the appropriate setter function. Issues an E_USER_NOTICE if no valid setter is found.

Parameter
string$nameproperty name
mixed$valueparameter passed to setter

Definiert in Zeile 1693 der Datei Smarty.class.php.

_addDir (   $dirName,
  $dir,
  $key = null 
)
private

add directories to given property name

Parameter
string$dirNamedirectory property name
string | array$dirdirectory string or array of strings
mixed$keyoptional key

Definiert in Zeile 1159 der Datei Smarty.class.php.

Wird benutzt von addConfigDir() und addTemplateDir().

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

addAutoloadFilters (   $filters,
  $type = null 
)

Add autoload filters

Parameter
array$filtersfilters to load automatically
string$type"pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1256 der Datei Smarty.class.php.

addConfigDir (   $config_dir,
  $key = null 
)

Add config directory(s)

Parameter
string | array$config_dirdirectory(s) of config sources
mixed$keykey of the array element to assign the config dir to
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1034 der Datei Smarty.class.php.

Benutzt $config_dir und _addDir().

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

addDefaultModifiers (   $modifiers)

Add default modifiers

Parameter
array | string$modifiersmodifier or list of modifiers to add
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1206 der Datei Smarty.class.php.

addPluginsDir (   $plugins_dir)

Adds directory of plugin files

Parameter
$plugins_dir
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1077 der Datei Smarty.class.php.

Benutzt $plugins_dir.

Wird benutzt von setPluginsDir().

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

addTemplateDir (   $template_dir,
  $key = null 
)

Add template directory(s)

Parameter
string | array$template_dirdirectory(s) of template sources
string$keyof the array element to assign the template dir to
Rückgabe
Smarty current Smarty instance for chaining
Ausnahmebehandlung
SmartyExceptionwhen the given template directory is not valid

Definiert in Zeile 987 der Datei Smarty.class.php.

Benutzt $template_dir und _addDir().

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

clearAllCache (   $exp_time = null,
  $type = null 
)

Empty cache folder

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

Definiert in Zeile 889 der Datei Smarty.class.php.

Benutzt Smarty_CacheResource\invalidLoadedCache() und Smarty_CacheResource\load().

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

clearCache (   $template_name,
  $cache_id = null,
  $compile_id = null,
  $exp_time = null,
  $type = null 
)

Empty cache for a specific template

Parameter
string$template_nametemplate name
string$cache_idcache id
string$compile_idcompile id
integer$exp_timeexpiration time
string$typeresource type
Rückgabe
integer number of cache files deleted

Definiert in Zeile 909 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$cache_id, Smarty_Internal_TemplateBase\$compile_id, Smarty_CacheResource\invalidLoadedCache() und Smarty_CacheResource\load().

Wird benutzt von SmartyBC\clear_all_cache() und SmartyBC\clear_cache().

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

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

clearCompiledTemplate (   $resource_name = null,
  $compile_id = null,
  $exp_time = null 
)

Delete compiled template file

Parameter
string$resource_nametemplate name
string$compile_idcompile id
integer$exp_timeexpiration time
Rückgabe
integer number of template files deleted

Definiert in Zeile 1482 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$compile_id und Smarty_Internal_Utility\clearCompiledTemplate().

Wird benutzt von SmartyBC\clear_compiled_tpl().

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

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

compileAllConfig (   $extension = '.conf',
  $force_compile = false,
  $time_limit = 0,
  $max_errors = null 
)

Compile all config files

Parameter
string$extensionfile extension
bool$force_compileforce all to recompile
int$time_limit
int$max_errors
Rückgabe
integer number of template files recompiled

Definiert in Zeile 1468 der Datei Smarty.class.php.

Benutzt $force_compile und Smarty_Internal_Utility\compileAllConfig().

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

compileAllTemplates (   $extension = '.tpl',
  $force_compile = false,
  $time_limit = 0,
  $max_errors = null 
)

Compile all template files

Parameter
string$extensionfile extension
bool$force_compileforce all to recompile
int$time_limit
int$max_errors
Rückgabe
integer number of template files recompiled

Definiert in Zeile 1453 der Datei Smarty.class.php.

Benutzt $force_compile und Smarty_Internal_Utility\compileAllTemplates().

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

createTemplate (   $template,
  $cache_id = null,
  $compile_id = null,
  $parent = null,
  $do_clone = true 
)

creates a template object

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
object$parentnext higher level of Smarty variables
boolean$do_cloneflag is Smarty object shall be cloned
Rückgabe
object template object

Definiert in Zeile 1333 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$cache_id, Smarty_Internal_TemplateBase\$compile_id, Smarty_Internal_Data\$parent, Smarty_Internal_TemplateBase\getTemplateId() und Smarty_Internal_Debug\register_template().

Wird benutzt von Smarty_Internal_Utility\compileAllTemplates() und fetch().

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

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

disableSecurity ( )

Disable security

Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 954 der Datei Smarty.class.php.

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

displays a Smarty template

Parameter
string$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

Definiert in Zeile 831 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$cache_id, Smarty_Internal_TemplateBase\$compile_id, Smarty_Internal_Data\$parent und fetch().

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

enableSecurity (   $security_class = null)

Loads security class and enables security

Parameter
string | Smarty_Security$security_classif a string is used, it must be class-name
Rückgabe
Smarty current Smarty instance for chaining
Ausnahmebehandlung
SmartyExceptionwhen an invalid class name is provided

Definiert in Zeile 926 der Datei Smarty.class.php.

Benutzt $security_class.

fetch (   $template = null,
  $cache_id = null,
  $compile_id = null,
  $parent = null,
  $display = false,
  $merge_tpl_vars = true,
  $no_output_filter = false 
)

fetches a rendered Smarty template

Parameter
string$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
bool$displaytrue: display, false: fetch
bool$merge_tpl_varsnot used - left for BC
bool$no_output_filternot used - left for BC
Ausnahmebehandlung
Exception
SmartyException
Rückgabe
string rendered template output

Definiert in Zeile 806 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$cache_id, Smarty_Internal_TemplateBase\$caching, Smarty_Internal_TemplateBase\$compile_id, Smarty_Internal_Data\$parent und createTemplate().

Wird benutzt von display().

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

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

getAutoloadFilters (   $type = null)

Get autoload filters

Parameter
string$typetype of filter to get autoloads for. Defaults to all autoload filters
Rückgabe
array array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified

Definiert in Zeile 1285 der Datei Smarty.class.php.

Benutzt $autoload_filters.

getCacheDir ( )

Get cache directory

Rückgabe
string path of cache directory

Definiert in Zeile 1147 der Datei Smarty.class.php.

Benutzt $cache_dir.

Wird benutzt von Smarty_Internal_CacheResource_File\clear() und Smarty_Internal_TestInstall\testInstall().

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

getCompileDir ( )

Get compiled directory

Rückgabe
string path to compiled templates

Definiert in Zeile 1121 der Datei Smarty.class.php.

Benutzt $compile_dir.

Wird benutzt von Smarty_Internal_Utility\clearCompiledTemplate() und Smarty_Internal_TestInstall\testInstall().

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

getConfigDir (   $index = null)

Get config directory

Parameter
mixed$indexindex of directory to get, null to get all
Rückgabe
array|string configuration directory

Definiert in Zeile 1048 der Datei Smarty.class.php.

Benutzt $config_dir.

Wird benutzt von Smarty_Internal_Utility\compileAllConfig() und Smarty_Internal_TestInstall\testInstall().

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

getDebugTemplate ( )

return name of debugging template

Rückgabe
string

Definiert in Zeile 1299 der Datei Smarty.class.php.

Benutzt $debug_tpl.

getDefaultModifiers ( )

Get default modifiers

Rückgabe
array list of default modifiers

Definiert in Zeile 1222 der Datei Smarty.class.php.

Benutzt $default_modifiers.

getGlobal (   $varname = null)

Returns a single or all global variables

Parameter
string$varnamevariable name or null
Rückgabe
string variable value or or array of variables

Definiert in Zeile 863 der Datei Smarty.class.php.

getPluginsDir ( )

Get plugin directories

Rückgabe
array list of plugin directories

Definiert in Zeile 1094 der Datei Smarty.class.php.

Benutzt $plugins_dir.

Wird benutzt von loadPlugin() und Smarty_Internal_TestInstall\testInstall().

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

getTags ( Smarty_Internal_Template  $template)

Return array of tag/attributes of all tags used by an template

Parameter
Smarty_Internal_Template$template
Rückgabe
array of tag/attributes

Definiert in Zeile 1494 der Datei Smarty.class.php.

Benutzt Smarty_Internal_Utility\getTags().

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

getTemplateDir (   $index = null)

Get template directories

Parameter
mixed$indexindex of directory to get, null to get all
Rückgabe
array|string list of template directories, or directory of $index

Definiert in Zeile 1001 der Datei Smarty.class.php.

Benutzt $template_dir.

Wird benutzt von Smarty_Internal_Utility\compileAllTemplates() und Smarty_Internal_TestInstall\testInstall().

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

loadPlugin (   $plugin_name,
  $check = true 
)

Takes unknown classes and loads plugin files for them class name format: Smarty_PluginType_PluginName plugin filename format: plugintype.pluginname.php

Parameter
string$plugin_nameclass plugin name to load
bool$checkcheck if already loaded
Ausnahmebehandlung
SmartyException
Rückgabe
string |boolean filepath of loaded file or false

Definiert in Zeile 1387 der Datei Smarty.class.php.

Benutzt Smarty_Internal_Get_Include_Path\getIncludePath() und getPluginsDir().

Wird benutzt von Smarty_Resource\load() und Smarty_CacheResource\load().

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

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

static muteExpectedErrors ( )
static

Enable error handler to mute expected messages

Rückgabe
void

Definiert in Zeile 1766 der Datei Smarty.class.php.

Benutzt $_previous_error_handler.

static mutingErrorHandler (   $errno,
  $errstr,
  $errfile,
  $errline,
  $errcontext 
)
static
setAutoLiteral (   $auto_literal)
Parameter
boolean$auto_literal

Definiert in Zeile 1578 der Datei Smarty.class.php.

Benutzt $auto_literal.

setAutoloadFilters (   $filters,
  $type = null 
)

Set autoload filters

Parameter
array$filtersfilters to load automatically
string$type"pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1236 der Datei Smarty.class.php.

setCacheDir (   $cache_dir)

Set cache directory

Parameter
string$cache_dirdirectory to store cached templates in
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1133 der Datei Smarty.class.php.

Benutzt $_muted_directories und $cache_dir.

Wird benutzt von __construct().

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

setCacheId (   $cache_id)
Parameter
string$cache_id

Definiert in Zeile 1554 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$cache_id.

setCacheLifetime (   $cache_lifetime)
Parameter
int$cache_lifetime

Definiert in Zeile 1538 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$cache_lifetime.

setCaching (   $caching)
Parameter
boolean$caching

Definiert in Zeile 1530 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$caching.

setCompileCheck (   $compile_check)
Parameter
boolean$compile_check

Definiert in Zeile 1514 der Datei Smarty.class.php.

Benutzt $compile_check.

setCompileDir (   $compile_dir)

Set compile directory

Parameter
string$compile_dirdirectory to store compiled templates in
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1106 der Datei Smarty.class.php.

Benutzt $_muted_directories und $compile_dir.

Wird benutzt von __construct().

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

setCompileId (   $compile_id)
Parameter
string$compile_id

Definiert in Zeile 1546 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TemplateBase\$compile_id.

setCompileLocking (   $compile_locking)
Parameter
boolean$compile_locking

Definiert in Zeile 1650 der Datei Smarty.class.php.

Benutzt $compile_locking.

setConfigBooleanize (   $config_booleanize)
Parameter
boolean$config_booleanize

Definiert in Zeile 1634 der Datei Smarty.class.php.

Benutzt $config_booleanize.

setConfigDir (   $config_dir)

Set config directory

Parameter
$config_dir
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1016 der Datei Smarty.class.php.

Benutzt $config_dir.

Wird benutzt von __construct().

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

setConfigOverwrite (   $config_overwrite)
Parameter
boolean$config_overwrite

Definiert in Zeile 1626 der Datei Smarty.class.php.

Benutzt $config_overwrite.

setConfigReadHidden (   $config_read_hidden)
Parameter
boolean$config_read_hidden

Definiert in Zeile 1642 der Datei Smarty.class.php.

Benutzt $config_read_hidden.

setDebugging (   $debugging)
Parameter
boolean$debugging

Definiert in Zeile 1618 der Datei Smarty.class.php.

Benutzt $debugging.

setDebugTemplate (   $tpl_name)

set the debug template

Parameter
string$tpl_name
Rückgabe
Smarty current Smarty instance for chaining
Ausnahmebehandlung
SmartyExceptionif file is not readable

Definiert in Zeile 1312 der Datei Smarty.class.php.

setDefaultModifiers (   $modifiers)

Set default modifiers

Parameter
array | string$modifiersmodifier or list of modifiers to set
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1192 der Datei Smarty.class.php.

setErrorReporting (   $error_reporting)
Parameter
int$error_reporting

Definiert in Zeile 1562 der Datei Smarty.class.php.

Benutzt $error_reporting.

setEscapeHtml (   $escape_html)
Parameter
boolean$escape_html

Definiert in Zeile 1570 der Datei Smarty.class.php.

Benutzt $escape_html.

setForceCompile (   $force_compile)
Parameter
boolean$force_compile

Definiert in Zeile 1586 der Datei Smarty.class.php.

Benutzt $force_compile.

setLeftDelimiter (   $left_delimiter)
Parameter
string$left_delimiter

Definiert in Zeile 1602 der Datei Smarty.class.php.

Benutzt $left_delimiter.

setMergeCompiledIncludes (   $merge_compiled_includes)
Parameter
boolean$merge_compiled_includes

Definiert in Zeile 1594 der Datei Smarty.class.php.

Benutzt $merge_compiled_includes.

setPluginsDir (   $plugins_dir)

Set plugins directory

Parameter
string | array$plugins_dirdirectory(s) of plugins
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 1063 der Datei Smarty.class.php.

Benutzt $plugins_dir und addPluginsDir().

Wird benutzt von __construct().

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

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

setRightDelimiter (   $right_delimiter)
Parameter
string$right_delimiter

Definiert in Zeile 1610 der Datei Smarty.class.php.

Benutzt $right_delimiter.

setTemplateDir (   $template_dir)

Set template directory

Parameter
string | array$template_dirdirectory(s) of template sources
Rückgabe
Smarty current Smarty instance for chaining

Definiert in Zeile 968 der Datei Smarty.class.php.

Benutzt $template_dir.

Wird benutzt von __construct().

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

setUseSubDirs (   $use_sub_dirs)
Parameter
boolean$use_sub_dirs

Definiert in Zeile 1522 der Datei Smarty.class.php.

Benutzt $use_sub_dirs.

templateExists (   $resource_name)

Check if a template resource exists

Parameter
string$resource_nametemplate name
Rückgabe
boolean status

Definiert in Zeile 844 der Datei Smarty.class.php.

Benutzt $template_objects.

Wird benutzt von SmartyBC\template_exists().

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

testInstall ( $errors = null)

Run installation test

Parameter
array$errorsArray to write errors into, rather than outputting them
Rückgabe
boolean true if setup is fine, false if something is wrong

Definiert in Zeile 1506 der Datei Smarty.class.php.

Benutzt Smarty_Internal_TestInstall\testInstall().

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

static unmuteExpectedErrors ( )
static

Disable error handler muting expected messages

Rückgabe
void

Definiert in Zeile 1798 der Datei Smarty.class.php.

Dokumentation der Datenelemente

$_cacheresource_handlers = array()

Definiert in Zeile 668 der Datei Smarty.class.php.

$_current_file = null

Definiert in Zeile 731 der Datei Smarty.class.php.

$_DATE_FORMAT = SMARTY_RESOURCE_DATE_FORMAT
static

The date format to be used internally (accepts date() and strftime())

Definiert in Zeile 225 der Datei Smarty.class.php.

Wird benutzt von smarty_modifier_date_format().

$_dir_perms = 0771

Definiert in Zeile 717 der Datei Smarty.class.php.

$_file_perms = 0644

Definiert in Zeile 710 der Datei Smarty.class.php.

$_is_file_cache = array()

Definiert in Zeile 745 der Datei Smarty.class.php.

$_IS_WINDOWS = false
static

Flag denoting if operating system is windows

Definiert in Zeile 235 der Datei Smarty.class.php.

Wird benutzt von __construct() und Smarty_Internal_Write_File\writeFile().

$_muted_directories = array('./templates_c/' => null, './cache/' => null)
static

contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors()

Definiert in Zeile 209 der Datei Smarty.class.php.

Wird benutzt von mutingErrorHandler(), setCacheDir() und setCompileDir().

$_parserdebug = false

Definiert in Zeile 738 der Datei Smarty.class.php.

$_previous_error_handler = null
static

error handler returned by set_error_hanlder() in Smarty::muteExpectedErrors()

Definiert in Zeile 204 der Datei Smarty.class.php.

Wird benutzt von muteExpectedErrors() und mutingErrorHandler().

$_resource_handlers = array()

Definiert in Zeile 654 der Datei Smarty.class.php.

$_smarty_vars = array()
static

Definiert in Zeile 696 der Datei Smarty.class.php.

$_tag_stack = array()

Definiert in Zeile 724 der Datei Smarty.class.php.

$allow_ambiguous_resources = false

Definiert in Zeile 358 der Datei Smarty.class.php.

$allow_php_templates = false

Definiert in Zeile 426 der Datei Smarty.class.php.

$auto_literal = true

Definiert in Zeile 246 der Datei Smarty.class.php.

Wird benutzt von setAutoLiteral().

$autoload_filters = array()

Definiert in Zeile 675 der Datei Smarty.class.php.

Wird benutzt von getAutoloadFilters().

$cache_dir = './cache/'
private

Definiert in Zeile 323 der Datei Smarty.class.php.

Wird benutzt von getCacheDir() und setCacheDir().

$cache_locking = false

Definiert in Zeile 531 der Datei Smarty.class.php.

$cache_modified_check = false

Definiert in Zeile 605 der Datei Smarty.class.php.

$caching_type = 'file'

Definiert in Zeile 556 der Datei Smarty.class.php.

$compile_check = true

Definiert in Zeile 344 der Datei Smarty.class.php.

Wird benutzt von setCompileCheck().

$compile_dir = './templates_c/'
private

Definiert in Zeile 309 der Datei Smarty.class.php.

Wird benutzt von getCompileDir() und setCompileDir().

$compile_locking = true

Definiert in Zeile 524 der Datei Smarty.class.php.

Wird benutzt von setCompileLocking().

$config_booleanize = true

Definiert in Zeile 504 der Datei Smarty.class.php.

Wird benutzt von setConfigBooleanize().

$config_dir = array('./configs/')
private

Definiert in Zeile 330 der Datei Smarty.class.php.

Wird benutzt von addConfigDir(), getConfigDir() und setConfigDir().

$config_overwrite = true

Definiert in Zeile 497 der Datei Smarty.class.php.

Wird benutzt von setConfigOverwrite().

$config_read_hidden = false

Definiert in Zeile 511 der Datei Smarty.class.php.

Wird benutzt von setConfigReadHidden().

$debug_tpl = null

Definiert in Zeile 472 der Datei Smarty.class.php.

Wird benutzt von getDebugTemplate().

$debugging = false

Definiert in Zeile 445 der Datei Smarty.class.php.

Wird benutzt von setDebugging().

$debugging_ctrl = 'NONE'

Definiert in Zeile 456 der Datei Smarty.class.php.

$default_config_handler_func = null

Definiert in Zeile 295 der Datei Smarty.class.php.

$default_config_type = 'file'

Definiert in Zeile 570 der Datei Smarty.class.php.

$default_modifiers = array()

Definiert in Zeile 682 der Datei Smarty.class.php.

Wird benutzt von getDefaultModifiers().

$default_plugin_handler_func = null

Definiert in Zeile 302 der Datei Smarty.class.php.

$default_resource_type = 'file'

Definiert in Zeile 548 der Datei Smarty.class.php.

$default_template_handler_func = null

Definiert in Zeile 288 der Datei Smarty.class.php.

$direct_access_security = true

Should compiled-templates be prevented from being called directly? {

Definiert in Zeile 436 der Datei Smarty.class.php.

$error_reporting = null

Definiert in Zeile 479 der Datei Smarty.class.php.

Wird benutzt von setErrorReporting().

$error_unassigned = false

Definiert in Zeile 253 der Datei Smarty.class.php.

$escape_html = false

Definiert in Zeile 689 der Datei Smarty.class.php.

Wird benutzt von setEscapeHtml().

$force_cache = false

Definiert in Zeile 379 der Datei Smarty.class.php.

$force_compile = false

Definiert in Zeile 337 der Datei Smarty.class.php.

Wird benutzt von compileAllConfig(), compileAllTemplates() und setForceCompile().

$get_used_tags = false

Definiert in Zeile 486 der Datei Smarty.class.php.

$inheritance_merge_compiled_includes = true

Definiert in Zeile 372 der Datei Smarty.class.php.

$joined_config_dir = './configs/'

Definiert in Zeile 281 der Datei Smarty.class.php.

$joined_template_dir = './templates/'

Definiert in Zeile 274 der Datei Smarty.class.php.

$left_delimiter = "{"

Definiert in Zeile 386 der Datei Smarty.class.php.

Wird benutzt von setLeftDelimiter().

$locking_timeout = 10

Definiert in Zeile 538 der Datei Smarty.class.php.

$merge_compiled_includes = false

Definiert in Zeile 365 der Datei Smarty.class.php.

Wird benutzt von setMergeCompiledIncludes().

$php_handling = self::PHP_PASSTHRU

Definiert in Zeile 419 der Datei Smarty.class.php.

$plugin_search_order = array('function', 'block', 'compiler', 'class')

Definiert in Zeile 619 der Datei Smarty.class.php.

$plugins_dir = null
private

Definiert in Zeile 316 der Datei Smarty.class.php.

Wird benutzt von addPluginsDir(), getPluginsDir() und setPluginsDir().

$properties = array()

Definiert in Zeile 563 der Datei Smarty.class.php.

$registered_cache_resources = array()

Definiert in Zeile 661 der Datei Smarty.class.php.

$registered_classes = array()

Definiert in Zeile 633 der Datei Smarty.class.php.

$registered_filters = array()

Definiert in Zeile 640 der Datei Smarty.class.php.

$registered_objects = array()

Definiert in Zeile 626 der Datei Smarty.class.php.

$registered_plugins = array()

Definiert in Zeile 612 der Datei Smarty.class.php.

$registered_resources = array()

Definiert in Zeile 647 der Datei Smarty.class.php.

$resource_caching = false

Definiert in Zeile 591 der Datei Smarty.class.php.

$right_delimiter = "}"

Definiert in Zeile 393 der Datei Smarty.class.php.

Wird benutzt von setRightDelimiter().

$security_class = 'Smarty_Security'

Definiert in Zeile 405 der Datei Smarty.class.php.

Wird benutzt von enableSecurity().

$security_policy = null

Definiert in Zeile 412 der Datei Smarty.class.php.

$smarty_debug_id = 'SMARTY_DEBUG'

Definiert in Zeile 465 der Datei Smarty.class.php.

$source_objects = array()

Definiert in Zeile 577 der Datei Smarty.class.php.

$start_time = 0

Definiert in Zeile 703 der Datei Smarty.class.php.

$template_dir = array('./templates/')
private

Definiert in Zeile 267 der Datei Smarty.class.php.

Wird benutzt von addTemplateDir(), getTemplateDir() und setTemplateDir().

$template_objects = array()

Definiert in Zeile 584 der Datei Smarty.class.php.

Wird benutzt von templateExists().

$template_resource_caching = true

Definiert in Zeile 598 der Datei Smarty.class.php.

$use_include_path = false

Definiert in Zeile 260 der Datei Smarty.class.php.

$use_sub_dirs = false

Definiert in Zeile 351 der Datei Smarty.class.php.

Wird benutzt von setUseSubDirs().

const CACHING_OFF = 0

define caching modes

Definiert in Zeile 130 der Datei Smarty.class.php.

Wird benutzt von Smarty_Internal_Extension_Config\configLoad().

const CLEAR_EXPIRED = - 1

define constant for clearing cache files be saved expiration datees

Definiert in Zeile 139 der Datei Smarty.class.php.

const COMPILECHECK_CACHEMISS = 2

Definiert in Zeile 148 der Datei Smarty.class.php.

const COMPILECHECK_OFF = 0

define compile check modes

Definiert in Zeile 144 der Datei Smarty.class.php.

const COMPILECHECK_ON = 1

Definiert in Zeile 146 der Datei Smarty.class.php.

Wird benutzt von Smarty_Internal_Template\decodeProperties().

const DEBUG_INDIVIDUAL = 2

Definiert in Zeile 157 der Datei Smarty.class.php.

const DEBUG_OFF = 0

define debug modes

Definiert in Zeile 153 der Datei Smarty.class.php.

const DEBUG_ON = 1

Definiert in Zeile 155 der Datei Smarty.class.php.

const FILTER_OUTPUT = 'output'

Definiert in Zeile 177 der Datei Smarty.class.php.

const FILTER_POST = 'post'

filter types

Definiert in Zeile 173 der Datei Smarty.class.php.

const FILTER_PRE = 'pre'

Definiert in Zeile 175 der Datei Smarty.class.php.

const PHP_ALLOW = 3

Definiert in Zeile 168 der Datei Smarty.class.php.

Wird benutzt von Smarty_Internal_Compile_Private_Php\compile().

const PHP_PASSTHRU = 0

modes for handling of "<?php ... ?>" tags in templates.

Definiert in Zeile 162 der Datei Smarty.class.php.

Wird benutzt von Smarty_Internal_Compile_Private_Php\compile() und Smarty_Internal_Compile_Private_Php\parsePhp().

const PHP_QUOTE = 1
const PHP_REMOVE = 2

Definiert in Zeile 166 der Datei Smarty.class.php.

Wird benutzt von Smarty_Internal_Compile_Private_Php\compile().

const PLUGIN_BLOCK = 'block'
const PLUGIN_COMPILER = 'compiler'

Definiert in Zeile 188 der Datei Smarty.class.php.

Wird benutzt von Smarty_Internal_TemplateCompilerBase\compileTag2().

const PLUGIN_FUNCTION = 'function'
const PLUGIN_MODIFIER = 'modifier'

Definiert in Zeile 190 der Datei Smarty.class.php.

Wird benutzt von Smarty_Internal_Compile_Private_Modifier\compile().

const PLUGIN_MODIFIERCOMPILER = 'modifiercompiler'

Definiert in Zeile 192 der Datei Smarty.class.php.

const SCOPE_LOCAL = 0

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.