\Smarty_Internal_Method_ConfigLoad

Smarty Method ConfigLoad

Smarty::configLoad() method

Summary

Methods
Properties
Constants
configLoad()
_loadConfigFile()
_loadConfigVars()
_assignConfigVars()
_updateVarStack()
_getConfigVariable()
$objMap
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$objMap

$objMap : integer

Valid for all objects

Type

integer

Methods

configLoad()

configLoad(\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty  $data, string  $config_file, mixed  $sections = null) : \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template

load a config file, optionally load just selected sections

Parameters

\Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data
string $config_file

filename

mixed $sections

array of section names, single section or null

Throws

\SmartyException

Returns

\Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template

_loadConfigFile()

_loadConfigFile(\Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template  $data, string  $config_file, mixed  $sections = null, integer  $scope) : \Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template

load a config file, optionally load just selected sections

Parameters

\Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data
string $config_file

filename

mixed $sections

array of section names, single section or null

integer $scope

scope into which config variables shall be loaded

Throws

\SmartyException

Returns

\Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template

_loadConfigVars()

_loadConfigVars(\Smarty_Internal_Template  $tpl, array  $new_config_vars) 

load config variables into template object

Parameters

\Smarty_Internal_Template $tpl
array $new_config_vars

_assignConfigVars()

_assignConfigVars(array  $config_vars, \Smarty_Internal_Template  $tpl, array  $new_config_vars) 

Assign all config variables in given scope

Parameters

array $config_vars

config variables in scope

\Smarty_Internal_Template $tpl
array $new_config_vars

loaded config variables

_updateVarStack()

_updateVarStack(\Smarty_Internal_Template  $tpl, array  $config_vars) 

Update config variables in template local variable stack

Parameters

\Smarty_Internal_Template $tpl
array $config_vars

_getConfigVariable()

_getConfigVariable(\Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template  $data, string  $varName, boolean  $errorEnable = true) : null|string

gets a config variable value

Parameters

\Smarty|\Smarty_Internal_Data|\Smarty_Internal_Template $data
string $varName

the name of the config variable

boolean $errorEnable

Returns

null|string —

the value of the config variable