프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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? |
메소드 | 설명 | |
---|---|---|
__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 |
리턴 | Smarty | current Smarty instance for chaining |
public addConfigDir ( string | array $config_dir, $key = null ) : Smarty | ||
$config_dir | string | array | directory(s) of config sources |
리턴 | Smarty | current Smarty instance for chaining |
public addDefaultModifiers ( array | string $modifiers ) : Smarty | ||
$modifiers | array | string | modifier or list of modifiers to add |
리턴 | Smarty | current Smarty instance for chaining |
public addPluginsDir ( $plugins_dir ) : Smarty | ||
리턴 | 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 |
리턴 | 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 | |
리턴 | 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 | |
리턴 | 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 |
리턴 | object | template object |
public disableSecurity ( ) : Smarty | ||
리턴 | 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 |
리턴 | 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 |
리턴 | array | array( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified |
public getCacheDir ( ) : string | ||
리턴 | string | path of cache directory |
public getCompileDir ( ) : string | ||
리턴 | string | path to compiled templates |
public getConfigDir ( $index = null ) : array | string | ||
리턴 | array | string | configuration directory |
public getDebugTemplate ( ) : string | ||
리턴 | string |
public getDefaultModifiers ( ) : array | ||
리턴 | array | list of default modifiers |
public getPluginsDir ( ) : array | ||
리턴 | array | list of plugin directories |
public getTemplateDir ( $index = null ) : array | string | ||
리턴 | array | string | list of template directories, or directory of $index |
public static muteExpectedErrors ( ) : void | ||
리턴 | void |
public static mutingErrorHandler ( integer $errno, $errstr, $errfile, $errline, $errcontext ) : boolean | ||
$errno | integer | Error level |
리턴 | 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 |
리턴 | Smarty | current Smarty instance for chaining |
public setCacheDir ( string $cache_dir ) : Smarty | ||
$cache_dir | string | directory to store cached templates in |
리턴 | Smarty | current Smarty instance for chaining |
public setCompileDir ( string $compile_dir ) : Smarty | ||
$compile_dir | string | directory to store compiled templates in |
리턴 | Smarty | current Smarty instance for chaining |
public setConfigDir ( $config_dir ) : Smarty | ||
리턴 | Smarty | current Smarty instance for chaining |
public setDebugTemplate ( string $tpl_name ) : Smarty | ||
$tpl_name | string | |
리턴 | Smarty | current Smarty instance for chaining |
public setDefaultModifiers ( array | string $modifiers ) : Smarty | ||
$modifiers | array | string | modifier or list of modifiers to set |
리턴 | Smarty | current Smarty instance for chaining |
public setPluginsDir ( string | array $plugins_dir ) : Smarty | ||
$plugins_dir | string | array | directory(s) of plugins |
리턴 | Smarty | current Smarty instance for chaining |
public setTemplateDir ( string | array $template_dir ) : Smarty | ||
$template_dir | string | array | directory(s) of template sources |
리턴 | Smarty | current Smarty instance for chaining |
public templateExists ( string $resource_name ) : boolean | ||
$resource_name | string | template name |
리턴 | boolean | status |
public testInstall ( array &$errors = null ) : boolean | ||
$errors | array | Array to write errors into, rather than outputting them |
리턴 | boolean | true if setup is fine, false if something is wrong |
public static unmuteExpectedErrors ( ) : void | ||
리턴 | void |
public static $_DATE_FORMAT |
public static $_IS_WINDOWS |
public static $_MBSTRING |
public static $_UTF8_MODIFIER |
public array $_cacheresource_handlers | ||
리턴 | array |
public static $_muted_directories |
public bool $_parserdebug | ||
리턴 | boolean |
public static $_previous_error_handler |
public static array $_smarty_vars | ||
리턴 | array |
public bool $allow_ambiguous_resources | ||
리턴 | boolean |
public bool $allow_php_templates | ||
리턴 | boolean |
public bool $auto_literal | ||
리턴 | boolean |
public string $cache_id | ||
리턴 | string |
public bool $cache_locking | ||
리턴 | boolean |
public bool $cache_modified_check | ||
리턴 | boolean |
public string $caching_type | ||
리턴 | string |
public string $compile_id | ||
리턴 | string |
public bool $config_booleanize | ||
리턴 | boolean |
public bool $config_overwrite | ||
리턴 | boolean |
public bool $debugging | ||
리턴 | boolean |
public string $debugging_ctrl | ||
리턴 | string |
public callable $default_config_handler_func | ||
리턴 | callable |
public callable $default_plugin_handler_func | ||
리턴 | callable |
public string $default_resource_type | ||
리턴 | string |
public callable $default_template_handler_func | ||
리턴 | callable |
public bool $direct_access_security | ||
리턴 | boolean |
public int $error_reporting | ||
리턴 | integer |
public bool $error_unassigned | ||
리턴 | boolean |
public bool $inheritance_merge_compiled_includes | ||
리턴 | boolean |
public string $joined_config_dir | ||
리턴 | string |
public string $joined_template_dir | ||
리턴 | string |
public float $locking_timeout | ||
리턴 | float |
public bool $merge_compiled_includes | ||
리턴 | boolean |
public array $merged_templates_func | ||
리턴 | array |
public array $registered_cache_resources | ||
리턴 | array |
public string $security_class | ||
리턴 | string |
public Smarty_Security $security_policy | ||
리턴 | Smarty_Security |
public type $smarty_debug_id | ||
리턴 | type |
public bool $use_include_path | ||
리턴 | boolean |
public bool $use_sub_dirs | ||
리턴 | boolean |