Class Smarty
This is the main Smarty class
Copyright: 2008 New Digital Group, Inc.
Author: Monte Ohrt <monte at ohrt dot com>
Author: Uwe Tews
Author: Rodney Rehm
Located at wa-system/vendors/smarty3/Smarty.class.php
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
boolean
|
|
public
string
|
|
public
integer
|
|
public
integer
|
#
clearCache( string $template_name, string $cache_id = null, string $compile_id = null, integer $exp_time = null, string $type = null )
Empty cache for a specific template |
public
|
#
enableSecurity( string|
Loads security class and enables security |
public
|
|
public
|
|
public
|
|
public
array|string
|
|
public
|
|
public
|
|
public
array|string
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
array
|
|
public
string
|
|
public
|
|
public
object
|
#
createTemplate( string $template, mixed $cache_id = null, mixed $compile_id = null, object $parent = null, boolean $do_clone = true )
creates a template object |
public
string
|
#
loadPlugin( string $plugin_name, boolean $check = true )
Takes unknown classes and loads plugin files for them class name format: Smarty_PluginType_PluginName plugin filename format: plugintype.pluginname.php |
public
integer
|
#
compileAllTemplates( string $extension = '.tpl', boolean $force_compile = false, integer $time_limit = 0, integer $max_errors = null )
Compile all template files |
public
integer
|
#
compileAllConfig( string $extension = '.conf', boolean $force_compile = false, integer $time_limit = 0, integer $max_errors = null )
Compile all config files |
public
integer
|
#
clearCompiledTemplate( string $resource_name = null, string $compile_id = null, integer $exp_time = null )
Delete compiled template file |
public
array
|
#
getTags(
Return array of tag/attributes of all tags used by an template |
public
boolean
|
|
public static
boolean
|
#
mutingErrorHandler( integer $errno, mixed $errstr, mixed $errfile, mixed $errline, mixed $errcontext )
Error Handler to mute expected messages |
public static
|
|
public static
|
string |
SMARTY_VERSION
|
'Smarty-3.1.14' |
#
smarty version |
integer |
SCOPE_LOCAL
|
0 |
#
define variable scopes |
integer |
SCOPE_PARENT
|
1 |
|
integer |
SCOPE_ROOT
|
2 |
|
integer |
SCOPE_GLOBAL
|
3 |
|
integer |
CACHING_OFF
|
0 |
#
define caching modes |
integer |
CACHING_LIFETIME_CURRENT
|
1 |
|
integer |
CACHING_LIFETIME_SAVED
|
2 |
|
integer |
CLEAR_EXPIRED
|
-1 |
#
define constant for clearing cache files be saved expiration datees |
integer |
COMPILECHECK_OFF
|
0 |
#
define compile check modes |
integer |
COMPILECHECK_ON
|
1 |
|
integer |
COMPILECHECK_CACHEMISS
|
2 |
|
integer |
PHP_PASSTHRU
|
0 |
#
modes for handling of "<?php ... ?>" tags in templates. |
integer |
PHP_QUOTE
|
1 |
|
integer |
PHP_REMOVE
|
2 |
|
integer |
PHP_ALLOW
|
3 |
|
string |
FILTER_POST
|
'post' |
#
filter types |
string |
FILTER_PRE
|
'pre' |
|
string |
FILTER_OUTPUT
|
'output' |
|
string |
FILTER_VARIABLE
|
'variable' |
|
string |
PLUGIN_FUNCTION
|
'function' |
#
plugin types |
string |
PLUGIN_BLOCK
|
'block' |
|
string |
PLUGIN_COMPILER
|
'compiler' |
|
string |
PLUGIN_MODIFIER
|
'modifier' |
|
string |
PLUGIN_MODIFIERCOMPILER
|
'modifiercompiler' |
public static
array
|
$global_tpl_vars | array() |
#
assigned global tpl vars |
public static
mixed
|
$_previous_error_handler | null |
#
error handler returned by set_error_hanlder() in Smarty::muteExpectedErrors() |
public static
array
|
$_muted_directories | array() |
#
contains directories outside of SMARTY_DIR that are to be muted by muteExpectedErrors() |
public static
mixed
|
$_MBSTRING | SMARTY_MBSTRING |
#
Flag denoting if Multibyte String functions are available |
public static
mixed
|
$_CHARSET | SMARTY_RESOURCE_CHAR_SET |
#
The character set to adhere to (e.g. "UTF-8") |
public static
mixed
|
$_DATE_FORMAT | SMARTY_RESOURCE_DATE_FORMAT |
#
The date format to be used internally (accepts date() and strftime()) |
public static
string
|
$_UTF8_MODIFIER | 'u' |
#
Flag denoting if PCRE should run in UTF-8 mode |
public static
boolean
|
$_IS_WINDOWS | false |
#
Flag denoting if operating system is windows |
public
boolean
|
$auto_literal | true |
#
auto literal on delimiters with whitspace |
public
boolean
|
$error_unassigned | false |
#
display error on not assigned variables |
public
boolean
|
$use_include_path | false |
#
look up relative filepaths in include_path |
private
array
|
$template_dir | array() |
#
template directory |
public
string
|
$joined_template_dir | null |
#
joined template directory string used in cache keys |
public
string
|
$joined_config_dir | null |
#
joined config directory string used in cache keys |
public
callable
|
$default_template_handler_func | null |
#
default template handler |
public
callable
|
$default_config_handler_func | null |
#
default config handler |
public
callable
|
$default_plugin_handler_func | null |
#
default plugin handler |
private
string
|
$compile_dir | null |
#
compile directory |
private
array
|
$plugins_dir | array() |
#
plugins directory |
private
string
|
$cache_dir | null |
#
cache directory |
private
array
|
$config_dir | array() |
#
config directory |
public
boolean
|
$force_compile | false |
#
force template compiling? |
public
boolean
|
$compile_check | true |
#
check template for modifications? |
public
boolean
|
$use_sub_dirs | false |
#
use sub dirs for compiled/cached files? |
public
boolean
|
$allow_ambiguous_resources | false |
#
allow ambiguous resources (that are made unique by the resource handler) |
public
boolean
|
$caching | false |
#
caching enabled |
public
boolean
|
$merge_compiled_includes | false |
#
merge compiled includes |
public
integer
|
$cache_lifetime | 3600 |
#
cache lifetime in seconds |
public
boolean
|
$force_cache | false |
#
force cache file creation |
public
string
|
$cache_id | null |
#
Set this if you want different sets of cache files for the same templates. |
public
string
|
$compile_id | null |
#
Set this if you want different sets of compiled files for the same templates. |
public
string
|
$left_delimiter | "{" |
#
template left-delimiter |
public
string
|
$right_delimiter | "}" |
#
template right-delimiter |
protected
string
|
$security_class | 'Smarty_Security' |
#
class name |
protected
|
$_security_policy | null |
#
implementation of security class |
public
integer
|
$php_handling |
|
#
controls handling of PHP-blocks |
public
boolean
|
$allow_php_templates | false |
#
controls if the php template file resource is allowed |
public
boolean
|
$direct_access_security | true |
#
Should compiled-templates be prevented from being called directly? |
public
boolean
|
$debugging | false |
#
debug mode |
public
string
|
$debugging_ctrl | 'NONE' |
#
This determines if debugging is enable-able from the browser.
|
public
type
|
$smarty_debug_id | 'SMARTY_DEBUG' |
#
Name of debugging URL-param. |
public
string
|
$debug_tpl | null |
#
Path of debug template. |
public
integer
|
$error_reporting | null |
#
When set, smarty uses this value as error_reporting-level. |
public
boolean
|
$get_used_tags | false |
#
Internal flag for getTags() |
public
boolean
|
$config_overwrite | true |
#
Controls whether variables with the same name overwrite each other. |
public
boolean
|
$config_booleanize | true |
#
Controls whether config values of on/true/yes and off/false/no get converted to boolean. |
public
boolean
|
$compile_locking | true |
#
locking concurrent compiles |
public
boolean
|
$cache_locking | false |
#
Controls whether cache resources should emply locking mechanism |
public
float
|
$locking_timeout | 10 |
#
seconds to wait for acquiring a lock before ignoring the write lock |
public
array
|
$template_functions | array() |
#
global template functions |
public
string
|
$default_resource_type | 'file' |
#
resource type used if none given |
public
string
|
$caching_type | 'file' |
#
caching type |
public
array
|
$properties | array() |
#
internal config properties |
public
string
|
$default_config_type | 'file' |
#
config type |
public
array
|
$template_objects | array() |
#
cached template objects |
public
boolean
|
$cache_modified_check | false |
#
check If-Modified-Since headers |
public
array
|
$registered_plugins | array() |
#
registered plugins |
public
array
|
$plugin_search_order | array('function', 'block', 'compiler', 'class') |
#
plugin search order |
public
array
|
$registered_objects | array() |
#
registered objects |
public
array
|
$registered_classes | array() |
#
registered classes |
public
array
|
$registered_filters | array() |
#
registered filters |
public
array
|
$registered_resources | array() |
#
registered resources |
public
array
|
$_resource_handlers | array() |
#
resource handler cache |
public
array
|
$registered_cache_resources | array() |
#
registered cache resources |
public
array
|
$_cacheresource_handlers | array() |
#
cache resource handler cache |
public
array
|
$autoload_filters | array() |
#
autoload filter |
public
array
|
$default_modifiers | array() |
#
default modifier |
public
boolean
|
$escape_html | false |
#
autoescape variable output |
public static
array
|
$_smarty_vars | array() |
#
global internal smarty vars |
public
integer
|
$start_time | 0 |
#
start time for execution time calculation |
public
integer
|
$_file_perms | 0644 |
#
default file permissions |
public
integer
|
$_dir_perms | 0771 |
#
default dir permissions |
public
array
|
$_tag_stack | array() |
#
block tag hierarchy |
public
|
$smarty |
|
#
self pointer to Smarty object |
public
string
|
$_current_file | null |
#
required by the compiler for BC |
public
boolean
|
$_parserdebug | false |
#
internal flag to enable parser debugging |
public
array
|
$merged_templates_func | array() |
#
Saved parameter of merged templates during compilation |
$config_vars,
$parent,
$template_class,
$tpl_vars
|