4 * Smarty Method ClearConfig
6 * Smarty::clearConfig() method
9 * @subpackage PluginsInternal
12 class Smarty_Internal_Method_ClearConfig
15 * Valid for all objects
22 * clear a single or all config variables
24 * @api Smarty::clearConfig()
25 * @link http://www.smarty.net/docs/en/api.clear.config.tpl
27 * @param \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty $data
28 * @param string|null $name variable name or null
30 * @return \Smarty_Internal_Data|\Smarty_Internal_Template|\Smarty
32 public function clearConfig(Smarty_Internal_Data $data, $name = null)
35 unset($data->config_vars[ $name ]);
37 $data->config_vars = array();