This is the main Smarty class

package Smarty
subpackage Template

 Methods

Handle unknown class methods

__call(string $name, array $args) 
Inherited
inherited_from \Smarty_Internal_TemplateBase::__call()

Parameters

$name

string

unknown method-name

$args

array

argument array

<<magic>> set selfpointer on cloned object

__clone() 

Initialize new Smarty object

__construct() 

Class destructor

__destruct() 

<<magic>> Generic getter.

__get(string $name) : mixed

Calls the appropriate getter function. Issues an E_USER_NOTICE if no valid getter is found.

Parameters

$name

string

property name

Returns

mixed

<<magic>> Generic setter.

__set(string $name, mixed $value) 

Calls the appropriate setter function. Issues an E_USER_NOTICE if no valid setter is found.

Parameters

$name

string

property name

$value

mixed

parameter passed to setter

Return internal filter name

_get_filter_name(callback $function_name) : string
Inherited
inherited_from \Smarty_Internal_TemplateBase::_get_filter_name()

Parameters

$function_name

callback

Returns

stringinternal filter name

Add autoload filters

addAutoloadFilters(array $filters, string $type) : \Smarty

Parameters

$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

Returns

\Smartycurrent Smarty instance for chaining

Add config directory(s)

addConfigDir(string | array $config_dir, string $key) : \Smarty

Parameters

$config_dir

stringarray

directory(s) of config sources

$key

string

key of the array element to assign the config dir to

Returns

\Smartycurrent Smarty instance for chaining

Add default modifiers

addDefaultModifiers(array | string $modifiers) : \Smarty

Parameters

$modifiers

arraystring

modifier or list of modifiers to add

Returns

\Smartycurrent Smarty instance for chaining

Adds directory of plugin files

addPluginsDir($plugins_dir) : \Smarty

Parameters

$plugins_dir

Returns

\Smartycurrent Smarty instance for chaining

Add template directory(s)

addTemplateDir(string | array $template_dir, string $key) : \Smarty

Parameters

$template_dir

stringarray

directory(s) of template sources

$key

string

of the array element to assign the template dir to

Exceptions

\SmartyException when the given template directory is not valid

Returns

\Smartycurrent Smarty instance for chaining

appends values to template variables

append(array | string $tpl_var, mixed $value, boolean $merge, boolean $nocache) : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::append()
inherited_from \Smarty_Internal_TemplateBase::append()

Parameters

$tpl_var

arraystring

the template variable name(s)

$value

mixed

the value to append

$merge

boolean

flag if array elements shall be merged

$nocache

boolean

if true any output of this variable will be not cached

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

appends values to template variables by reference

appendByRef(string $tpl_var, mixed $value, boolean $merge) : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::appendByRef()
inherited_from \Smarty_Internal_TemplateBase::appendByRef()

Parameters

$tpl_var

string

the template variable name

$value

mixed

&$value the referenced value to append

$merge

boolean

flag if array elements shall be merged

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

assigns a Smarty variable

assign(array | string $tpl_var, mixed $value, boolean $nocache) : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::assign()
inherited_from \Smarty_Internal_TemplateBase::assign()

Parameters

$tpl_var

arraystring

the template variable name(s)

$value

mixed

the value to assign

$nocache

boolean

if true any output of this variable will be not cached

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

assigns values to template variables by reference

assignByRef(string $tpl_var, $value, boolean $nocache) : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::assignByRef()
inherited_from \Smarty_Internal_TemplateBase::assignByRef()

Parameters

$tpl_var

string

the template variable name

$value

$nocache

boolean

if true any output of this variable will be not cached

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

assigns a global Smarty variable

assignGlobal(string $varname, mixed $value, boolean $nocache) : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::assignGlobal()
inherited_from \Smarty_Internal_TemplateBase::assignGlobal()

Parameters

$varname

string

the global variable name

$value

mixed

the value to assign

$nocache

boolean

if true any output of this variable will be not cached

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

clear all the assigned template variables.

clearAllAssign() : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::clearAllAssign()
inherited_from \Smarty_Internal_TemplateBase::clearAllAssign()

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

Empty cache folder

clearAllCache(integer $exp_time, string $type) : integer

Parameters

$exp_time

integer

expiration time

$type

string

resource type

Returns

integernumber of cache files deleted

clear the given assigned template variable.

clearAssign(string | array $tpl_var) : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::clearAssign()
inherited_from \Smarty_Internal_TemplateBase::clearAssign()

Parameters

$tpl_var

stringarray

the template variable(s) to clear

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

Empty cache for a specific template

clearCache(string $template_name, string $cache_id, string $compile_id, integer $exp_time, string $type) : integer

Parameters

$template_name

string

template name

$cache_id

string

cache id

$compile_id

string

compile id

$exp_time

integer

expiration time

$type

string

resource type

Returns

integernumber of cache files deleted

Delete compiled template file

clearCompiledTemplate(string $resource_name, string $compile_id, integer $exp_time) : integer

Parameters

$resource_name

string

template name

$compile_id

string

compile id

$exp_time

integer

expiration time

Returns

integernumber of template files deleted

Deassigns a single or all config variables

clearConfig(string $varname) : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::clearConfig()
inherited_from \Smarty_Internal_TemplateBase::clearConfig()

Parameters

$varname

string

variable name or null

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

Compile all config files

compileAllConfig($extention, bool $force_compile, int $time_limit, int $max_errors) : integer

Parameters

$extention

$force_compile

bool

force all to recompile

$time_limit

int

$max_errors

int

Returns

integernumber of template files recompiled

Compile all template files

compileAllTemplates($extention, bool $force_compile, int $time_limit, int $max_errors) : integer

Parameters

$extention

$force_compile

bool

force all to recompile

$time_limit

int

$max_errors

int

Returns

integernumber of template files recompiled

load a config file, optionally load just selected sections

configLoad(string $config_file, mixed $sections) : \Smarty_Internal_Data
Inherited
inherited_from \Smarty_Internal_Data::configLoad()
inherited_from \Smarty_Internal_TemplateBase::configLoad()

Parameters

$config_file

string

filename

$sections

mixed

array of section names, single section or null

Returns

\Smarty_Internal_Datacurrent Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining

creates a data object

createData(object $parent) 
Inherited
returns Smarty_Data data object
inherited_from \Smarty_Internal_TemplateBase::createData()

Parameters

$parent

object

next higher level of Smarty variables

creates a template object

createTemplate(string $template, mixed $cache_id, mixed $compile_id, object $parent, boolean $do_clone) : object

Parameters

$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

Returns

objecttemplate object

Disable security

disableSecurity() : \Smarty

Returns

\Smartycurrent Smarty instance for chaining

displays a Smarty template

display(string $template, mixed $cache_id, mixed $compile_id, object $parent) 
Inherited
inherited_from \Smarty_Internal_TemplateBase::display()

Parameters

$template

string

the resource handle of the template file or template object

$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

Loads security class and enables security

enableSecurity(string | \Smarty_Security $security_class) : \Smarty

Parameters

$security_class

string\Smarty_Security

if a string is used, it must be class-name

Exceptions

\SmartyException when an invalid class name is provided

Returns

\Smartycurrent Smarty instance for chaining

fetches a rendered Smarty template

fetch(string $template, mixed $cache_id, mixed $compile_id, object $parent, bool $display, bool $merge_tpl_vars, bool $no_output_filter) : string
Inherited
inherited_from \Smarty_Internal_TemplateBase::fetch()

Parameters

$template

string

the resource handle of the template file or template object

$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

$display

bool

true: display, false: fetch

$merge_tpl_vars

bool

if true parent template variables merged in to local scope

$no_output_filter

bool

if true do not run output filter

Returns

stringrendered template output

Get autoload filters

getAutoloadFilters(string $type) : array

Parameters

$type

string

type of filter to get autoloads for. Defaults to all autoload filters

Returns

arrayarray( 'type1' => array( 'filter1', 'filter2', … ) ) or array( 'filter1', 'filter2', …) if $type was specified

Get cache directory

getCacheDir() : string

Returns

stringpath of cache directory

Get compiled directory

getCompileDir() : string

Returns

stringpath to compiled templates

Get config directory

getConfigDir(mixed $index) : array | string

Parameters

$index

mixed

index of directory to get, null to get all

Returns

arraystringconfiguration directory

gets a config variable

getConfigVariable(string $variable, $error_enable) : mixed
Inherited
inherited_from \Smarty_Internal_Data::getConfigVariable()
inherited_from \Smarty_Internal_TemplateBase::getConfigVariable()

Parameters

$variable

string

the name of the config variable

$error_enable

Returns

mixedthe value of the config variable

Returns a single or all config variables

getConfigVars(string $varname, $search_parents) : string
Inherited
inherited_from \Smarty_Internal_Data::getConfigVars()
inherited_from \Smarty_Internal_TemplateBase::getConfigVars()

Parameters

$varname

string

variable name or null

$search_parents

Returns

stringvariable value or or array of variables

return name of debugging template

getDebugTemplate() : string

Returns

string

Get default modifiers

getDefaultModifiers() : array

Returns

arraylist of default modifiers

Returns a single or all global variables

getGlobal(string $varname) : string

Parameters

$varname

string

variable name or null

Returns

stringvariable value or or array of variables

Get plugin directories

getPluginsDir() : array

Returns

arraylist of plugin directories

return a reference to a registered object

getRegisteredObject(string $name) : object
Inherited
inherited_from \Smarty_Internal_TemplateBase::getRegisteredObject()

Parameters

$name

string

object name

Exceptions

\SmartyException if no such object is found

Returns

object

gets a stream variable

getStreamVariable(string $variable) : mixed
Inherited
inherited_from \Smarty_Internal_Data::getStreamVariable()
inherited_from \Smarty_Internal_TemplateBase::getStreamVariable()

Parameters

$variable

string

the stream of the variable

Returns

mixedthe value of the stream variable

Return array of tag/attributes of all tags used by an template

getTags(\Smarty_Internal_Template $template) : array

Parameters

$template

Returns

arrayof tag/attributes

Get template directories

getTemplateDir(mixed $index) : array | string

Parameters

$index

mixed

index of directory to get, null to get all

Returns

arraystringlist of template directories, or directory of $index

Returns a single or all template variables

getTemplateVars(string $varname, string $_ptr, boolean $search_parents) : string
Inherited
inherited_from \Smarty_Internal_Data::getTemplateVars()
inherited_from \Smarty_Internal_TemplateBase::getTemplateVars()

Parameters

$varname

string

variable name or null

$_ptr

string

optional pointer to data object

$search_parents

boolean

include parent templates?

Returns

stringvariable value or or array of variables

gets the object of a Smarty variable

getVariable(string $variable, object $_ptr, boolean $search_parents, $error_enable) : object
Inherited
inherited_from \Smarty_Internal_Data::getVariable()
inherited_from \Smarty_Internal_TemplateBase::getVariable()

Parameters

$variable

string

the name of the Smarty variable

$_ptr

object

optional pointer to data object

$search_parents

boolean

search also in parent data

$error_enable

Returns

objectthe object of the variable

test if cache is valid

isCached(string | object $template, mixed $cache_id, mixed $compile_id, object $parent) : boolean
Inherited
inherited_from \Smarty_Internal_TemplateBase::isCached()

Parameters

$template

stringobject

the resource handle of the template file or template object

$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

Returns

booleancache status

load a filter of specified type and name

loadFilter(string $type, string $name) 
Inherited
inherited_from \Smarty_Internal_TemplateBase::loadFilter()

Parameters

$type

string

filter type

$name

string

filter name

Exceptions

\SmartyException if filter could not be loaded

Takes unknown classes and loads plugin files for them class name format: Smarty_PluginType_PluginName plugin filename format: plugintype.pluginname.php

loadPlugin(string $plugin_name, bool $check) : string

Parameters

$plugin_name

string

class plugin name to load

$check

bool

check if already loaded

Returns

string|boolean filepath of loaded file or false

Enable error handler to mute expected messages

muteExpectedErrors() : void
Static

Error Handler to mute expected messages

mutingErrorHandler(integer $errno, $errstr, $errfile, $errline, $errcontext) : boolean
Static
link http://php.net/set_error_handler

Parameters

$errno

integer

Error level

$errstr

$errfile

$errline

$errcontext

Returns

boolean

Registers a cache resource to cache a template's output

registerCacheResource(string $type, \Smarty_CacheResource $callback) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerCacheResource()

Parameters

$type

string

name of cache resource type

$callback

\Smarty_CacheResource

instance of Smarty_CacheResource to handle output caching

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Registers static classes to be used in templates

registerClass($class_name, string $class_impl) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerClass()

Parameters

$class_name

$class_impl

string

the referenced PHP class to register

Exceptions

\SmartyException if $class_impl does not refer to an existing class

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Registers a default template handler

registerDefaultConfigHandler(callable $callback) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerDefaultConfigHandler()

Parameters

$callback

callable

class/method name

Exceptions

\SmartyException if $callback is not callable

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Registers a default plugin handler

registerDefaultPluginHandler(callable $callback) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerDefaultPluginHandler()

Parameters

$callback

callable

class/method name

Exceptions

\SmartyException if $callback is not callable

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Registers a default template handler

registerDefaultTemplateHandler(callable $callback) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerDefaultTemplateHandler()

Parameters

$callback

callable

class/method name

Exceptions

\SmartyException if $callback is not callable

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Registers a filter function

registerFilter(string $type, callback $callback) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerFilter()

Parameters

$type

string

filter type

$callback

callback

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Registers object to be used in templates

registerObject($object_name, object $object_impl, array $allowed, boolean $smarty_args, array $block_methods) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerObject()

Parameters

$object_name

$object_impl

object

the referenced PHP object to register

$allowed

array

list of allowed methods (empty = all)

$smarty_args

boolean

smarty argument format, else traditional

$block_methods

array

list of block-methods

Exceptions

\SmartyException if any of the methods in $allowed or $block_methods are invalid

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Registers plugin to be used in templates

registerPlugin(string $type, string $tag, callback $callback, boolean $cacheable, array $cache_attr) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerPlugin()

Parameters

$type

string

plugin type

$tag

string

name of template tag

$callback

callback

PHP callback to register

$cacheable

boolean

if true (default) this fuction is cachable

$cache_attr

array

caching attributes if any

Exceptions

\SmartyException when the plugin tag is invalid

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Registers a resource to fetch a template

registerResource(string $type, \Smarty_Resource | array $callback) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::registerResource()

Parameters

$type

string

name of resource type

$callback

\Smarty_Resourcearray

or instance of Smarty_Resource, or array of callbacks to handle resource (deprecated)

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Set autoload filters

setAutoloadFilters(array $filters, string $type) : \Smarty

Parameters

$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

Returns

\Smartycurrent Smarty instance for chaining

Set cache directory

setCacheDir(string $cache_dir) : \Smarty

Parameters

$cache_dir

string

directory to store cached templates in

Returns

\Smartycurrent Smarty instance for chaining

Set compile directory

setCompileDir(string $compile_dir) : \Smarty

Parameters

$compile_dir

string

directory to store compiled templates in

Returns

\Smartycurrent Smarty instance for chaining

Set config directory

setConfigDir($config_dir) : \Smarty

Parameters

$config_dir

Returns

\Smartycurrent Smarty instance for chaining

set the debug template

setDebugTemplate(string $tpl_name) : \Smarty

Parameters

$tpl_name

string

Exceptions

\SmartyException if file is not readable

Returns

\Smartycurrent Smarty instance for chaining

Set default modifiers

setDefaultModifiers(array | string $modifiers) : \Smarty

Parameters

$modifiers

arraystring

modifier or list of modifiers to set

Returns

\Smartycurrent Smarty instance for chaining

Set plugins directory

setPluginsDir(string | array $plugins_dir) : \Smarty

Parameters

$plugins_dir

stringarray

directory(s) of plugins

Returns

\Smartycurrent Smarty instance for chaining

Set template directory

setTemplateDir(string | array $template_dir) : \Smarty

Parameters

$template_dir

stringarray

directory(s) of template sources

Returns

\Smartycurrent Smarty instance for chaining

Check if a template resource exists

templateExists(string $resource_name) : boolean

Parameters

$resource_name

string

template name

Returns

booleanstatus

Run installation test

testInstall(array $errors) : boolean

Parameters

$errors

array

Array to write errors into, rather than outputting them

Returns

booleantrue if setup is fine, false if something is wrong

unload a filter of specified type and name

unloadFilter(string $type, string $name) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::unloadFilter()

Parameters

$type

string

filter type

$name

string

filter name

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Disable error handler muting expected messages

unmuteExpectedErrors() : void
Static

Unregisters a cache resource

unregisterCacheResource(string $type) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::unregisterCacheResource()

Parameters

$type

string

name of cache resource type

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Unregisters a filter function

unregisterFilter(string $type, callback $callback) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::unregisterFilter()

Parameters

$type

string

filter type

$callback

callback

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

unregister an object

unregisterObject(string $name) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::unregisterObject()

Parameters

$name

string

object name

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Unregister Plugin

unregisterPlugin(string $type, string $tag) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::unregisterPlugin()

Parameters

$type

string

of plugin

$tag

string

name of plugin

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

Unregisters a resource

unregisterResource(string $type) : \Smarty_Internal_Templatebase
Inherited
inherited_from \Smarty_Internal_TemplateBase::unregisterResource()

Parameters

$type

string

name of resource type

Returns

\Smarty_Internal_Templatebasecurrent Smarty_Internal_Templatebase (or Smarty or Smarty_Internal_Template) instance for chaining

preg_replace callback to convert camelcase getter/setter to underscore property names

replaceCamelcase(string $match) : string
Inherited
inherited_from \Smarty_Internal_TemplateBase::replaceCamelcase()

Parameters

$match

string

match string

Returns

stringreplacemant

 Properties

 

$_CHARSET 

"UTF-8")

 

$_DATE_FORMAT 
 

$_IS_WINDOWS 
 

$_MBSTRING 
 

$_UTF8_MODIFIER 
 

$_cacheresource_handlers : array
 

$_current_file : string
 

$_dir_perms : int
 

$_file_perms : int
 

$_muted_directories 
 

$_parserdebug : bool
 

$_previous_error_handler 
 

$_resource_handlers : array
 

$_smarty_vars : array
 

$_tag_stack : array
 

$allow_ambiguous_resources : boolean
 

$allow_php_templates : bool
 

$auto_literal : boolean
 

$autoload_filters : array
 

$cache_id : string
 

$cache_lifetime : integer
 

$cache_locking : boolean
 

$cache_modified_check : boolean
 

$caching : boolean
 

$caching_type : string

Must be an element of $cache_resource_types.

 

$compile_check : boolean
 

$compile_id : string
 

$compile_locking : boolean
 

$config_booleanize : boolean
 

$config_overwrite : boolean
 

$config_read_hidden : boolean
 

$config_vars : array
Inherited
inherited_from \Smarty_Internal_Data::$$config_vars
inherited_from \Smarty_Internal_TemplateBase::$$config_vars
 

$debug_tpl : string
 

$debugging : boolean

Setting this to true enables the debug-console.

 

$debugging_ctrl : string
  • NONE => no debugging control allowed
  • URL => enable debugging when SMARTY_DEBUG is found in the URL.
 

$default_config_handler_func : callable
 

$default_config_type : string
 

$default_modifiers : array
 

$default_plugin_handler_func : callable
 

$default_resource_type : string

Must be an valid key of $registered_resources.

 

$default_template_handler_func : callable
 

$direct_access_security : boolean

{@internal Currently used by Smarty_Internal_Template only. }}

 

$error_reporting : int
 

$error_unassigned : boolean
 

$escape_html : boolean
 

$force_cache : boolean
 

$force_compile : boolean
 

$get_used_tags : boolean
 

$global_tpl_vars 
 

$joined_config_dir : string
 

$joined_template_dir : string
 

$left_delimiter : string
 

$locking_timeout : float
 

$merge_compiled_includes : boolean
 

$merged_templates_func : array
 

$parent : \Smarty_Internal_Template
Inherited
inherited_from \Smarty_Internal_Data::$$parent
inherited_from \Smarty_Internal_TemplateBase::$$parent
 

$php_handling : integer
 

$plugin_search_order : array
 

$properties : array
 

$registered_cache_resources : array
 

$registered_classes : array
 

$registered_filters : array
 

$registered_objects : array
 

$registered_plugins : array
 

$registered_resources : array
 

$right_delimiter : string
 

$security_class : string

This should be instance of Smarty_Security.

see \Smarty_Security
 

$security_policy : \Smarty_Security
 

$smarty : \Smarty
 

$smarty_debug_id : \type

Only used when $debugging_ctrl is set to 'URL'. The name of the URL-parameter that activates debugging.

 

$start_time : int
 

$template_class : string
Inherited
inherited_from \Smarty_Internal_Data::$$template_class
inherited_from \Smarty_Internal_TemplateBase::$$template_class
 

$template_functions : array
 

$template_objects : array
 

$tpl_vars : array
Inherited
inherited_from \Smarty_Internal_Data::$$tpl_vars
inherited_from \Smarty_Internal_TemplateBase::$$tpl_vars
 

$use_include_path : boolean
 

$use_sub_dirs : boolean
 

$cache_dir : string
 

$compile_dir : string
 

$config_dir : array
 

$plugins_dir : array
 

$template_dir : array

 Constants

 

CACHING_LIFETIME_CURRENT

CACHING_LIFETIME_CURRENT 
 

CACHING_LIFETIME_SAVED

CACHING_LIFETIME_SAVED 
 

define caching modes

CACHING_OFF 
 

COMPILECHECK_CACHEMISS

COMPILECHECK_CACHEMISS 
 

define compile check modes

COMPILECHECK_OFF 
 

COMPILECHECK_ON

COMPILECHECK_ON 
 

FILTER_OUTPUT

FILTER_OUTPUT 
 

filter types

FILTER_POST 
 

FILTER_PRE

FILTER_PRE 
 

FILTER_VARIABLE

FILTER_VARIABLE 
 

PHP_ALLOW

PHP_ALLOW 
 

modes for handling of "<?php .

PHP_PASSTHRU 

.. ?>" tags in templates.

 

PHP_QUOTE

PHP_QUOTE 
 

PHP_REMOVE

PHP_REMOVE 
 

PLUGIN_BLOCK

PLUGIN_BLOCK 
 

PLUGIN_COMPILER

PLUGIN_COMPILER 
 

plugin types

PLUGIN_FUNCTION 
 

PLUGIN_MODIFIER

PLUGIN_MODIFIER 
 

PLUGIN_MODIFIERCOMPILER

PLUGIN_MODIFIERCOMPILER 
 

SCOPE_GLOBAL

SCOPE_GLOBAL 
 

define variable scopes

SCOPE_LOCAL 
 

SCOPE_PARENT

SCOPE_PARENT 
 

SCOPE_ROOT

SCOPE_ROOT 
 

smarty version

SMARTY_VERSION