Свойство | Type | Description | |
---|---|---|---|
$_CHARSET | The character set to adhere to (e.g. "UTF-8") | ||
$_DATE_FORMAT | The date format to be used internally (accepts date() and strftime()) | ||
$_IS_WINDOWS | Flag denoting if operating system is windows | ||
$_MBSTRING | Flag denoting if Multibyte String functions are available | ||
$_UTF8_MODIFIER | Flag denoting if PCRE should run in UTF-8 mode | ||
$_cacheresource_handlers | array | cache resource handler cache | |
$_current_file | string | required by the compiler for BC | |
$_dir_perms | integer | default dir permissions | |
$_file_perms | integer | default file permissions | |
$_muted_directories | contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors() | ||
$_parserdebug | boolean | internal flag to enable parser debugging | |
$_previous_error_handler | error handler returned by set_error_hanlder() in Smarty::muteExpectedErrors() | ||
$_resource_handlers | array | resource handler cache | |
$_smarty_vars | array | global internal smarty vars | |
$_tag_stack | array | block tag hierarchy | |
$allow_ambiguous_resources | boolean | allow ambiguous resources (that are made unique by the resource handler) | |
$allow_php_templates | boolean | controls if the php template file resource is allowed | |
$auto_literal | boolean | auto literal on delimiters with whitspace | |
$autoload_filters | array | autoload filter | |
$cache_id | string | Set this if you want different sets of cache files for the same templates. | |
$cache_lifetime | integer | cache lifetime in seconds | |
$cache_locking | boolean | Controls whether cache resources should emply locking mechanism | |
$cache_modified_check | boolean | check If-Modified-Since headers | |
$caching | boolean | caching enabled | |
$caching_type | string | Must be an element of $cache_resource_types. | |
$compile_check | boolean | check template for modifications? | |
$compile_id | string | Set this if you want different sets of compiled files for the same templates. | |
$compile_locking | boolean | locking concurrent compiles | |
$config_booleanize | boolean | Controls whether config values of on/true/yes and off/false/no get converted to boolean. | |
$config_overwrite | boolean | Controls whether variables with the same name overwrite each other. | |
$config_read_hidden | boolean | Controls whether hidden config sections/vars are read from the file. | |
$debug_tpl | string | Path of debug template. | |
$debugging | boolean | Setting this to true enables the debug-console. | |
$debugging_ctrl | string |
|
|
$default_config_handler_func | callable | default config handler | |
$default_config_type | string | config type | |
$default_modifiers | array | default modifier | |
$default_plugin_handler_func | callable | default plugin handler | |
$default_resource_type | string | Must be an valid key of $registered_resources. | |
$default_template_handler_func | callable | default template handler | |
$direct_access_security | boolean | {@internal Currently used by Smarty_Internal_Template only.}} | |
$error_reporting | integer | When set, smarty uses this value as error_reporting-level. | |
$error_unassigned | boolean | display error on not assigned variables | |
$escape_html | boolean | autoescape variable output | |
$force_cache | boolean | force cache file creation | |
$force_compile | boolean | force template compiling? | |
$get_used_tags | boolean | Internal flag for getTags() | |
$global_tpl_vars | assigned global tpl vars | ||
$inheritance_merge_compiled_includes | boolean | template inheritance merge compiled includes | |
$joined_config_dir | string | joined config directory string used in cache keys | |
$joined_template_dir | string | joined template directory string used in cache keys | |
$left_delimiter | string | template left-delimiter | |
$locking_timeout | float | seconds to wait for acquiring a lock before ignoring the write lock | |
$merge_compiled_includes | boolean | merge compiled includes | |
$merged_templates_func | array | Saved parameter of merged templates during compilation | |
$php_handling | integer | controls handling of PHP-blocks | |
$plugin_search_order | array | plugin search order | |
$properties | array | internal config properties | |
$registered_cache_resources | array | registered cache resources | |
$registered_classes | array | registered classes | |
$registered_filters | array | registered filters | |
$registered_objects | array | registered objects | |
$registered_plugins | array | registered plugins | |
$registered_resources | array | registered resources | |
$right_delimiter | string | template right-delimiter | |
$security_class | string | This should be instance of Smarty_Security. | |
$security_policy | Smarty_Security | implementation of security class | |
$smarty | Smarty | self pointer to Smarty object | |
$smarty_debug_id | type | Only used when $debugging_ctrl is set to 'URL'. The name of the URL-parameter that activates debugging. | |
$start_time | integer | start time for execution time calculation | |
$template_functions | array | global template functions | |
$template_objects | array | cached template objects | |
$use_include_path | boolean | look up relative filepaths in include_path | |
$use_sub_dirs | boolean | use sub dirs for compiled/cached files? |
Méthode | Description | |
---|---|---|
__clone ( ) |
< |
|
__construct ( ) | Initialize new Smarty object | |
__destruct ( ) | Class destructor | |
__get ( string $name ) : mixed |
< |
|
__set ( string $name, mixed $value ) |
< |
|
addAutoloadFilters ( array $filters, string $type = null ) : Smarty | Add autoload filters | |
addConfigDir ( string | array $config_dir, $key = null ) : Smarty | Add config directory(s) | |
addDefaultModifiers ( array | string $modifiers ) : Smarty | Add default modifiers | |
addPluginsDir ( $plugins_dir ) : Smarty | Adds directory of plugin files | |
addTemplateDir ( string | array $template_dir, string $key = null ) : Smarty | Add template directory(s) | |
clearAllCache ( integer $exp_time = null, string $type = null ) : integer | Empty cache folder | |
clearCache ( string $template_name, string $cache_id = null, string $compile_id = null, integer $exp_time = null, string $type = null ) : integer | Empty cache for a specific template | |
clearCompiledTemplate ( string $resource_name = null, string $compile_id = null, integer $exp_time = null ) : integer | Delete compiled template file | |
compileAllConfig ( string $extension = '.conf', boolean $force_compile = false, integer $time_limit, integer $max_errors = null ) : integer | Compile all config files | |
compileAllTemplates ( string $extension = '.tpl', boolean $force_compile = false, integer $time_limit, integer $max_errors = null ) : integer | Compile all template files | |
createTemplate ( string $template, mixed $cache_id = null, mixed $compile_id = null, object $parent = null, boolean $do_clone = true ) : object | creates a template object | |
disableSecurity ( ) : Smarty | Disable security | |
enableSecurity ( string | Smarty_Security $security_class = null ) : Smarty | Loads security class and enables security | |
getAutoloadFilters ( string $type = null ) : array | Get autoload filters | |
getCacheDir ( ) : string | Get cache directory | |
getCompileDir ( ) : string | Get compiled directory | |
getConfigDir ( $index = null ) : array | string | Get config directory | |
getDebugTemplate ( ) : string | return name of debugging template | |
getDefaultModifiers ( ) : array | Get default modifiers | |
getGlobal ( string $varname = null ) : string | Returns a single or all global variables | |
getPluginsDir ( ) : array | Get plugin directories | |
getTags ( Smarty_Internal_Template $template ) : array | Return array of tag/attributes of all tags used by an template | |
getTemplateDir ( $index = null ) : array | string | Get template directories | |
loadPlugin ( string $plugin_name, boolean $check = true ) : string | boolean | Takes unknown classes and loads plugin files for them class name format: Smarty_PluginType_PluginName plugin filename format: plugintype.pluginname.php | |
muteExpectedErrors ( ) : void | Enable error handler to mute expected messages | |
mutingErrorHandler ( integer $errno, $errstr, $errfile, $errline, $errcontext ) : boolean | Error Handler to mute expected messages | |
setAutoloadFilters ( array $filters, string $type = null ) : Smarty | Set autoload filters | |
setCacheDir ( string $cache_dir ) : Smarty | Set cache directory | |
setCompileDir ( string $compile_dir ) : Smarty | Set compile directory | |
setConfigDir ( $config_dir ) : Smarty | Set config directory | |
setDebugTemplate ( string $tpl_name ) : Smarty | set the debug template | |
setDefaultModifiers ( array | string $modifiers ) : Smarty | Set default modifiers | |
setPluginsDir ( string | array $plugins_dir ) : Smarty | Set plugins directory | |
setTemplateDir ( string | array $template_dir ) : Smarty | Set template directory | |
templateExists ( string $resource_name ) : boolean | Check if a template resource exists | |
testInstall ( array &$errors = null ) : boolean | Run installation test | |
unmuteExpectedErrors ( ) : void | Disable error handler muting expected messages |
public addAutoloadFilters ( array $filters, string $type = null ) : Smarty | ||
$filters | array | filters to load automatically |
$type | string | "pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types |
Résultat | Smarty | current Smarty instance for chaining |
public addConfigDir ( string | array $config_dir, $key = null ) : Smarty | ||
$config_dir | string | array | directory(s) of config sources |
Résultat | Smarty | current Smarty instance for chaining |
public addDefaultModifiers ( array | string $modifiers ) : Smarty | ||
$modifiers | array | string | modifier or list of modifiers to add |
Résultat | Smarty | current Smarty instance for chaining |
public addPluginsDir ( $plugins_dir ) : Smarty | ||
Résultat | Smarty | current Smarty instance for chaining |
public clearCache ( string $template_name, string $cache_id = null, string $compile_id = null, integer $exp_time = null, string $type = null ) : integer | ||
$template_name | string | template name |
$cache_id | string | cache id |
$compile_id | string | compile id |
$exp_time | integer | expiration time |
$type | string | resource type |
Résultat | integer | number of cache files deleted |
public compileAllConfig ( string $extension = '.conf', boolean $force_compile = false, integer $time_limit, integer $max_errors = null ) : integer | ||
$extension | string | file extension |
$force_compile | boolean | force all to recompile |
$time_limit | integer | |
$max_errors | integer | |
Résultat | integer | number of template files recompiled |
public compileAllTemplates ( string $extension = '.tpl', boolean $force_compile = false, integer $time_limit, integer $max_errors = null ) : integer | ||
$extension | string | file extension |
$force_compile | boolean | force all to recompile |
$time_limit | integer | |
$max_errors | integer | |
Résultat | integer | number of template files recompiled |
public createTemplate ( string $template, mixed $cache_id = null, mixed $compile_id = null, object $parent = null, boolean $do_clone = true ) : object | ||
$template | string | the resource handle of the template file |
$cache_id | mixed | cache id to be used with this template |
$compile_id | mixed | compile id to be used with this template |
$parent | object | next higher level of Smarty variables |
$do_clone | boolean | flag is Smarty object shall be cloned |
Résultat | object | template object |
public disableSecurity ( ) : Smarty | ||
Résultat | Smarty | current Smarty instance for chaining |
public enableSecurity ( string | Smarty_Security $security_class = null ) : Smarty | ||
$security_class | string | Smarty_Security | if a string is used, it must be class-name |
Résultat | Smarty | current Smarty instance for chaining |
public getAutoloadFilters ( string $type = null ) : array | ||
$type | string | type of filter to get autoloads for. Defaults to all autoload filters |
Résultat | array | array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified |
public getCacheDir ( ) : string | ||
Résultat | string | path of cache directory |
public getCompileDir ( ) : string | ||
Résultat | string | path to compiled templates |
public getConfigDir ( $index = null ) : array | string | ||
Résultat | array | string | configuration directory |
public getDebugTemplate ( ) : string | ||
Résultat | string |
public getDefaultModifiers ( ) : array | ||
Résultat | array | list of default modifiers |
public getPluginsDir ( ) : array | ||
Résultat | array | list of plugin directories |
public getTemplateDir ( $index = null ) : array | string | ||
Résultat | array | string | list of template directories, or directory of $index |
public static muteExpectedErrors ( ) : void | ||
Résultat | void |
public static mutingErrorHandler ( integer $errno, $errstr, $errfile, $errline, $errcontext ) : boolean | ||
$errno | integer | Error level |
Résultat | boolean |
public setAutoloadFilters ( array $filters, string $type = null ) : Smarty | ||
$filters | array | filters to load automatically |
$type | string | "pre", "output", … specify the filter type to set. Defaults to none treating $filters' keys as the appropriate types |
Résultat | Smarty | current Smarty instance for chaining |
public setCacheDir ( string $cache_dir ) : Smarty | ||
$cache_dir | string | directory to store cached templates in |
Résultat | Smarty | current Smarty instance for chaining |
public setCompileDir ( string $compile_dir ) : Smarty | ||
$compile_dir | string | directory to store compiled templates in |
Résultat | Smarty | current Smarty instance for chaining |
public setConfigDir ( $config_dir ) : Smarty | ||
Résultat | Smarty | current Smarty instance for chaining |
public setDebugTemplate ( string $tpl_name ) : Smarty | ||
$tpl_name | string | |
Résultat | Smarty | current Smarty instance for chaining |
public setDefaultModifiers ( array | string $modifiers ) : Smarty | ||
$modifiers | array | string | modifier or list of modifiers to set |
Résultat | Smarty | current Smarty instance for chaining |
public setPluginsDir ( string | array $plugins_dir ) : Smarty | ||
$plugins_dir | string | array | directory(s) of plugins |
Résultat | Smarty | current Smarty instance for chaining |
public setTemplateDir ( string | array $template_dir ) : Smarty | ||
$template_dir | string | array | directory(s) of template sources |
Résultat | Smarty | current Smarty instance for chaining |
public templateExists ( string $resource_name ) : boolean | ||
$resource_name | string | template name |
Résultat | boolean | status |
public testInstall ( array &$errors = null ) : boolean | ||
$errors | array | Array to write errors into, rather than outputting them |
Résultat | boolean | true if setup is fine, false if something is wrong |
public static unmuteExpectedErrors ( ) : void | ||
Résultat | void |
public static $_CHARSET |
public static $_DATE_FORMAT |
public static $_IS_WINDOWS |
public static $_MBSTRING |
public static $_UTF8_MODIFIER |
public array $_cacheresource_handlers | ||
Résultat | array |
public string $_current_file | ||
Résultat | string |
public static $_muted_directories |
public bool $_parserdebug | ||
Résultat | boolean |
public static $_previous_error_handler |
public array $_resource_handlers | ||
Résultat | array |
public static array $_smarty_vars | ||
Résultat | array |
public bool $allow_ambiguous_resources | ||
Résultat | boolean |
public bool $allow_php_templates | ||
Résultat | boolean |
public bool $auto_literal | ||
Résultat | boolean |
public string $cache_id | ||
Résultat | string |
public int $cache_lifetime | ||
Résultat | integer |
public bool $cache_locking | ||
Résultat | boolean |
public bool $cache_modified_check | ||
Résultat | boolean |
public string $caching_type | ||
Résultat | string |
public bool $compile_check | ||
Résultat | boolean |
public string $compile_id | ||
Résultat | string |
public bool $compile_locking | ||
Résultat | boolean |
public bool $config_booleanize | ||
Résultat | boolean |
public bool $config_overwrite | ||
Résultat | boolean |
public bool $debugging | ||
Résultat | boolean |
public string $debugging_ctrl | ||
Résultat | string |
public callable $default_config_handler_func | ||
Résultat | callable |
public string $default_config_type | ||
Résultat | string |
public array $default_modifiers | ||
Résultat | array |
public callable $default_plugin_handler_func | ||
Résultat | callable |
public string $default_resource_type | ||
Résultat | string |
public callable $default_template_handler_func | ||
Résultat | callable |
public bool $direct_access_security | ||
Résultat | boolean |
public int $error_reporting | ||
Résultat | integer |
public bool $error_unassigned | ||
Résultat | boolean |
public bool $escape_html | ||
Résultat | boolean |
public bool $force_compile | ||
Résultat | boolean |
public bool $get_used_tags | ||
Résultat | boolean |
public static $global_tpl_vars |
public bool $inheritance_merge_compiled_includes | ||
Résultat | boolean |
public string $joined_config_dir | ||
Résultat | string |
public string $joined_template_dir | ||
Résultat | string |
public string $left_delimiter | ||
Résultat | string |
public float $locking_timeout | ||
Résultat | float |
public bool $merge_compiled_includes | ||
Résultat | boolean |
public array $merged_templates_func | ||
Résultat | array |
public int $php_handling | ||
Résultat | integer |
public array $plugin_search_order | ||
Résultat | array |
public array $registered_cache_resources | ||
Résultat | array |
public array $registered_classes | ||
Résultat | array |
public array $registered_filters | ||
Résultat | array |
public array $registered_objects | ||
Résultat | array |
public array $registered_plugins | ||
Résultat | array |
public array $registered_resources | ||
Résultat | array |
public string $right_delimiter | ||
Résultat | string |
public string $security_class | ||
Résultat | string |
public Smarty_Security $security_policy | ||
Résultat | Smarty_Security |
public type $smarty_debug_id | ||
Résultat | type |
public int $start_time | ||
Résultat | integer |
public array $template_functions | ||
Résultat | array |
public array $template_objects | ||
Résultat | array |
public bool $use_include_path | ||
Résultat | boolean |
public bool $use_sub_dirs | ||
Résultat | boolean |