Located in /legacy/smarty/Smarty.class.php (line 64)
Class | Description |
---|---|
view | Contains methods to handle emails appropriate. |
Smarty_Compiler | Template compiling class |
This indicates which filters are automatically loaded into Smarty.
Smarty Configuration Section
The name of the directory for cache files.
Smarty Configuration Section
The function used for cache file handling. If not set, built-in caching is used.
Smarty Configuration Section
This is the number of seconds cached content will persist.
Smarty Configuration Section
Only used when $caching is enabled. If true, then If-Modified-Since headers are respected with cached content, and appropriate HTTP headers are sent.
Smarty Configuration Section This way repeated hits to a cached page do not send the entire page to the client every time.
This enables template caching.
Smarty Configuration Section
The class used for compiling templates.
The file that contains the compiler class. This can a full pathname, or relative to the php_include path.
This tells Smarty whether to check for recompiling or not. Recompiling does not need to happen unless a template or config file is changed.
Smarty Configuration Section Typically you enable this during development, and disable for production.
The directory where compiled templates are located.
Smarty Configuration Section
Set this if you want different sets of compiled files for the same templates. This is useful for things like different languages.
Smarty Configuration Section Instead of creating separate sets of templates per language, you set different compile_ids like 'en' and 'de'.
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.
The class used to load config vars.
The directory where config files are located.
Smarty Configuration Section
This tells whether or not automatically fix newlines in config files.
It basically converts \r (mac) or \r\n (dos) to \n
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.
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.
If debugging is enabled, a debug console window will display when the page loads (make sure your browser allows unrequested popup windows)
Smarty Configuration Section
This determines if debugging is enable-able from the browser.
Smarty Configuration Section
This is the path to the debug console template. If not set, the default one will be used.
Smarty Configuration Section
This is a list of the modifiers to apply to all template variables.
Smarty Configuration Section Put each modifier in a separate array element in the order you want them applied. example:
This is the resource type to be used when not specified
Smarty Configuration Section 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 *}
If a template cannot be found, this PHP function will be executed.
Useful for creating templates on-the-fly or other special action.
When set, smarty does uses this value as error_reporting-level.
Smarty Configuration Section
This forces templates to compile every time. Useful for development or debugging.
Smarty Configuration Section
The left delimiter used for the template tags.
Smarty Configuration Section
This determines how Smarty handles "<?php ... ?>" tags in templates.
Smarty Configuration Section possible values:
An array of directories searched for plugins.
Smarty Configuration Section
Indicates wether $HTTP_*_VARS[] (request_use_auto_globals=false)
Smarty Configuration Section 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"
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
Smarty Configuration Section
The right delimiter used for the template tags.
Smarty Configuration Section
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.
Smarty Configuration Section
This enables template security. When enabled, many things are restricted
Smarty Configuration Section 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)
These are the security settings for Smarty. They are used only when $security is enabled.
Smarty Configuration Section
The name of the directory where templates are located.
Smarty Configuration Section
This is an array of directories where trusted php scripts reside.
Smarty Configuration Section $security is disabled during their inclusion/execution.
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.
Smarty Configuration Section
The class constructor.
appends values to template variables
appends values to template variables by reference
assigns values to template variables
assigns values to template variables by reference
clear all the assigned template variables.
clear the entire contents of cache (all templates)
clear the given assigned template variable.
clear cached content for the given template and cache id
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 configuration values
load configuration values
executes & displays the template results
executes & returns or displays the template results
Returns an array containing config variables
return a reference to a registered object
Returns an array containing template variables
test to see if valid cache exists for this template
load a filter of specified type and name
Registers block function to be used in templates
Registers compiler function
Registers custom function to be used in templates
Registers modifier to be used in templates
Registers object to be used in templates
Registers an output filter function to apply to a template output
Registers a postfilter function to apply to a compiled template after compilation
Registers a prefilter function to apply to a template before compiling
Registers a resource to fetch a template
Checks whether requested template exists.
trigger Smarty error
Unregisters block function
Unregisters compiler function
Unregisters custom function
Unregisters modifier
Unregisters object
Unregisters an outputfilter function
Unregisters a postfilter function
Unregisters a prefilter function
Unregisters a resource
compile the template
compile the given source
Remove starting and ending quotes from the string
wrapper for eval() retaining $this
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 a concrete filename for automagically created content
returns an auto_id for auto-file-functions
Get the compile path for this resource
Extracts the filter name from the given callback
get filepath of requested plugin
wrapper for include() retaining $this
test if resource needs compiling
parse out the type and name from the resource
callback function for preg_replace, to call a non-cacheable block
read in a file
Handle modifiers
get or set an array of cached attributes for function that is
not cacheable
called for included templates
trigger Smarty plugin error
unlink a file, possibly using expiration time
Documentation generated on Tue, 09 Aug 2011 09:05:34 +0200 by phpDocumentor 1.4.3