SmartyLocated in /Smarty/libs/Smarty.class.php (line 64)
| Class | Description |
|---|---|
Smarty_Compiler
|
Template compiling class |
vtigerCRM_Smarty
|
boolean
clear_cache
([string $tpl_file = null], [string $cache_id = null], [string $compile_id = null], [string $exp_time = null])
boolean
clear_compiled_tpl
([string $tpl_file = null], [string $compile_id = null], [string $exp_time = null])
void
fetch
(string $resource_name, [string $cache_id = null], [string $compile_id = null], [boolean $display = false])
void
register_block
(string $block, string $block_impl, [ $cacheable = true], [ $cache_attrs = null])
void
register_function
(string $function, string $function_impl, [ $cacheable = true], [ $cache_attrs = null])
void
register_object
(string $object, object &$object_impl, [null|array $allowed = array()], [boolean $smarty_args = true], [ $block_methods = array()], null|array $block_functs)
boolean
_compile_source
(string $resource_name, &$source_content, &$compiled_content, [ $cache_include_path = null], string $source_content, string $compiled_content)
boolean
_fetch_resource_info
( &$params, string $resource_name, string $source_content, integer $resource_timestamp, boolean $get_source, boolean $quiet)
string
_get_auto_filename
(string $auto_base, [string $auto_source = null], [string $auto_id = null])
boolean
_parse_resource_name
( &$params, string $resource_base_path, string $resource_name, string $resource_type)
void
_trigger_fatal_error
(string $error_msg, [string $tpl_file = null], [integer $tpl_line = null], [string $file = null], [integer $line = null], [integer $error_type = E_USER_ERROR])
array
$autoload_filters
= array() (line 338)
This indicates which filters are automatically loaded into Smarty.
This indicates which filters are automatically loaded into Smarty.
string
$cache_dir
= 'cache' (line 167)
The name of the directory for cache files.
The name of the directory for cache files.
null|string
$cache_handler_func
= null (line 331)
The function used for cache file handling.
The function used for cache file handling. If not set, built-in caching is used.
integer
$cache_lifetime
= 3600 (line 178)
This is the number of seconds cached content will persist.
This is the number of seconds cached content will persist.
boolean
$cache_modified_check
= false (line 188)
Only used when $caching is enabled. are respected with cached content, and appropriate HTTP headers are sent.
Only used when $caching is enabled. If true, then If-Modified-Since headers are respected with cached content, and appropriate HTTP headers are sent. This way repeated hits to a cached page do not send the entire page to the client every time.
integer
$caching
= 0 (line 160)
This enables template caching.
This enables template caching.
string
$compiler_class
= 'Smarty_Compiler' (line 392)
The class used for compiling templates.
The class used for compiling templates.
string
$compiler_file
= 'Smarty_Compiler.class.php' (line 385)
The file that contains the compiler class. pathname, or relative to the php_include path.
The file that contains the compiler class. This can a full pathname, or relative to the php_include path.
boolean
$compile_check
= true (line 141)
This tells Smarty whether to check for recompiling or not. does not need to happen unless a template or config file is changed.
This tells Smarty whether to check for recompiling or not. Recompiling does not need to happen unless a template or config file is changed. Typically you enable this during development, and disable for production.
string
$compile_dir
= 'templates_c' (line 82)
The directory where compiled templates are located.
The directory where compiled templates are located.
string
$compile_id
= null (line 291)
Set this if you want different sets of compiled files for the same templates.
Set this if you want different sets of compiled files for the same templates. This is useful for things like different languages. Instead of creating separate sets of templates per language, you set different compile_ids like 'en' and 'de'.
mixed
$config_booleanize
= true (line 354)
This tells whether or not to automatically booleanize config file variables.
This tells whether or not to automatically booleanize config file variables. If enabled, then the strings "on", "true", and "yes" are treated as boolean true, and "off", "false" and "no" are treated as boolean false.
string
$config_class
= 'Config_File' (line 399)
The class used to load config vars.
The class used to load config vars.
string
$config_dir
= 'configs' (line 89)
The directory where config files are located.
The directory where config files are located.
mixed
$config_fix_newlines
= true (line 368)
This tells whether or not automatically fix newlines in config files.
This tells whether or not automatically fix newlines in config files. It basically converts \r (mac) or \r\n (dos) to \n
mixed
$config_overwrite
= true (line 347)
This tells if config file vars of the same name overwrite each other or not.
This tells if config file vars of the same name overwrite each other or not. if disabled, same name variables are accumulated in an array.
mixed
$config_read_hidden
= false (line 362)
This tells whether hidden sections [. tempalates or not. the point behind hidden sections: the application can access them, but the templates cannot.
This tells whether hidden sections [.foobar] are readable from the tempalates or not. Normally you would never allow this since that is the point behind hidden sections: the application can access them, but the templates cannot.
boolean
$debugging
= false (line 105)
If debugging is enabled, a debug console window will display
If debugging is enabled, a debug console window will display when the page loads (make sure your browser allows unrequested popup windows)
string
$debugging_ctrl
= 'NONE' (line 131)
This determines if debugging is enable-able from the browser.
This determines if debugging is enable-able from the browser.
string
$debug_tpl
= '' (line 120)
This is the path to the debug console template. the default one will be used.
This is the path to the debug console template. If not set, the default one will be used.
array
$default_modifiers
= array() (line 310)
This is a list of the modifiers to apply to all template variables.
This is a list of the modifiers to apply to all template variables. Put each modifier in a separate array element in the order you want them applied. example:
array
$default_resource_type
= 'file' (line 324)
This is the resource type to be used when not specified
This is the resource type to be used when not specified at the beginning of the resource path. examples: $smarty->display('file:index.tpl'); $smarty->display('db:index.tpl'); $smarty->display('index.tpl'); // will use default resource type {include file="file:index.tpl"} {include file="db:index.tpl"} {include file="index.tpl"} {* will use default resource type *}
string
$default_template_handler_func
= '' (line 377)
If a template cannot be found, this PHP function will be executed.
If a template cannot be found, this PHP function will be executed. Useful for creating templates on-the-fly or other special action.
boolean
$error_reporting
= null (line 112)
When set, smarty does uses this value as error_reporting-level.
When set, smarty does uses this value as error_reporting-level.
boolean
$force_compile
= false (line 149)
This forces templates to compile every time. or debugging.
This forces templates to compile every time. Useful for development or debugging.
string
$left_delimiter
= '{' (line 255)
The left delimiter used for the template tags.
The left delimiter used for the template tags.
integer
$php_handling
= SMARTY_PHP_PASSTHRU (line 202)
This determines how Smarty handles "<?php .
This determines how Smarty handles "<?php ... ?>" tags in templates. possible values:
array
$plugins_dir
= array('plugins') (line 96)
An array of directories searched for plugins.
An array of directories searched for plugins.
boolean
$request_use_auto_globals
= true (line 281)
Indicates wether $HTTP_*_VARS[] (request_use_auto_globals=false)
Indicates wether $HTTP_*_VARS[] (request_use_auto_globals=false) are uses as request-vars or $_*[]-vars. note: if request_use_auto_globals is true, then $request_vars_order has no effect, but the php-ini-value "gpc_order"
string
$request_vars_order
= 'EGPCS' (line 271)
The order in which request variables are registered, similar to
The order in which request variables are registered, similar to variables_order in php.ini E = Environment, G = GET, P = POST, C = Cookies, S = Server
string
$right_delimiter
= '}' (line 262)
The right delimiter used for the template tags.
The right delimiter used for the template tags.
array
$secure_dir
= array() (line 221)
This is the list of template directories that are considered secure. is used only if $security is enabled. element.
This is the list of template directories that are considered secure. This is used only if $security is enabled. One directory per array element. $template_dir is in this list implicitly.
boolean
$security
= false (line 212)
This enables template security.
This enables template security. When enabled, many things are restricted in the templates that normally would go unchecked. This is useful when untrusted parties are editing templates and you want a reasonable level of security. (no direct execution of PHP in templates for example)
array
$security_settings
= array(These are the security settings for Smarty. $security is enabled.
These are the security settings for Smarty. They are used only when $security is enabled.
string
$template_dir
= 'templates' (line 75)
The name of the directory where templates are located.
The name of the directory where templates are located.
array
$trusted_dir
= array() (line 248)
This is an array of directories where trusted php scripts reside.
This is an array of directories where trusted php scripts reside. $security is disabled during their inclusion/execution.
boolean
$use_sub_dirs
= false (line 301)
This tells Smarty whether or not to use sub dirs in the cache/ and templates_c/ directories. may not work well with PHP safe mode enabled.
This tells Smarty whether or not to use sub dirs in the cache/ and templates_c/ directories. sub directories better organized, but may not work well with PHP safe mode enabled.
Constructor Smarty (line 568)
The class constructor.
The class constructor.
append (line 612)
appends values to template variables
appends values to template variables
append_by_ref (line 652)
appends values to template variables by reference
appends values to template variables by reference
assign (line 580)
assigns values to template variables
assigns values to template variables
assign_by_ref (line 600)
assigns values to template variables by reference
assigns values to template variables by reference
clear_all_assign (line 1006)
clear all the assigned template variables.
clear all the assigned template variables.
clear_all_cache (line 970)
clear the entire contents of cache (all templates)
clear the entire contents of cache (all templates)
clear_assign (line 674)
clear the given assigned template variable.
clear the given assigned template variable.
clear_cache (line 938)
clear cached content for the given template and cache id
clear cached content for the given template and cache id
clear_compiled_tpl (line 1021)
clears compiled version of specified template resource, or all compiled template files if one is not specified.
clears compiled version of specified template resource, or all compiled template files if one is not specified. This function is for advanced use only, not normally needed.
clear_config (line 1348)
clear configuration values
clear configuration values
config_load (line 1321)
load configuration values
load configuration values
display (line 1106)
executes & displays the template results
executes & displays the template results
fetch (line 1119)
executes & returns or displays the template results
executes & returns or displays the template results
get_config_vars (line 1074)
Returns an array containing config variables
Returns an array containing config variables
get_registered_object (line 1333)
return a reference to a registered object
return a reference to a registered object
get_template_vars (line 1054)
Returns an array containing template variables
Returns an array containing template variables
is_cached (line 984)
test to see if valid cache exists for this template
test to see if valid cache exists for this template
load_filter (line 912)
load a filter of specified type and name
load a filter of specified type and name
register_block (line 741)
Registers block function to be used in templates
Registers block function to be used in templates
register_compiler_function (line 763)
Registers compiler function
Registers compiler function
register_function (line 690)
Registers custom function to be used in templates
Registers custom function to be used in templates
register_modifier (line 785)
Registers modifier to be used in templates
Registers modifier to be used in templates
register_object (line 716)
Registers object to be used in templates
Registers object to be used in templates
register_outputfilter (line 889)
Registers an output filter function to apply
Registers an output filter function to apply to a template output
register_postfilter (line 866)
Registers a postfilter function to apply
Registers a postfilter function to apply to a compiled template after compilation
register_prefilter (line 843)
Registers a prefilter function to apply
Registers a prefilter function to apply to a template before compiling
register_resource (line 807)
Registers a resource to fetch a template
Registers a resource to fetch a template
template_exists (line 1041)
Checks whether requested template exists.
Checks whether requested template exists.
trigger_error (line 1093)
trigger Smarty error
trigger Smarty error
unregister_block (line 752)
Unregisters block function
Unregisters block function
unregister_compiler_function (line 774)
Unregisters compiler function
Unregisters compiler function
unregister_function (line 702)
Unregisters custom function
Unregisters custom function
unregister_modifier (line 796)
Unregisters modifier
Unregisters modifier
unregister_object (line 729)
Unregisters object
Unregisters object
unregister_outputfilter (line 901)
Unregisters an outputfilter function
Unregisters an outputfilter function
unregister_postfilter (line 878)
Unregisters a postfilter function
Unregisters a postfilter function
unregister_prefilter (line 855)
Unregisters a prefilter function
Unregisters a prefilter function
unregister_resource (line 832)
Unregisters a resource
Unregisters a resource
_compile_resource (line 1413)
compile the template
compile the template
_compile_source (line 1450)
compile the given source
compile the given source
_dequote (line 1699)
Remove starting and ending quotes from the string
Remove starting and ending quotes from the string
_eval (line 1934)
wrapper for eval() retaining $this
wrapper for eval() retaining $this
_fetch_resource_info (line 1533)
fetch the template info.
fetch the template info. Gets timestamp, and source if get_source is true sets $source_content to the source of the template, and $resource_timestamp to its time stamp
_get_auto_filename (line 1739)
get a concrete filename for automagically created content
get a concrete filename for automagically created content
_get_auto_id (line 1789)
returns an auto_id for auto-file-functions
returns an auto_id for auto-file-functions
_get_compile_path (line 1513)
Get the compile path for this resource
Get the compile path for this resource
_get_plugin_filepath (line 1366)
get filepath of requested plugin
get filepath of requested plugin
_include (line 1920)
wrapper for include() retaining $this
wrapper for include() retaining $this
_is_compiled (line 1380)
test if resource needs compiling
test if resource needs compiling
_parse_resource_name (line 1617)
parse out the type and name from the resource
parse out the type and name from the resource
_process_compiled_include_callback (line 1828)
callback function for preg_replace, to call a non-cacheable block
callback function for preg_replace, to call a non-cacheable block
_read_file (line 1715)
read in a file
read in a file
_run_mod_handler (line 1678)
Handle modifiers
Handle modifiers
_smarty_cache_attrs (line 1897)
get or set an array of cached attributes for function that is
get or set an array of cached attributes for function that is not cacheable
_smarty_include (line 1847)
called for included templates
called for included templates
_trigger_fatal_error (line 1808)
trigger Smarty plugin error
trigger Smarty plugin error
_unlink (line 1771)
unlink a file, possibly using expiration time
unlink a file, possibly using expiration time
Documentation generated on Wed, 05 Aug 2009 08:45:12 +0000 by phpDocumentor 1.4.1