Page MenuHomeCode

smarty_method_clear_config.php
No OneTemporary

smarty_method_clear_config.php

<?php
/**
* Smarty method Get_Config_Vars
*
* Returns a single or all global config variables
*
* @package Smarty
* @subpackage SmartyMethod
* @author Uwe Tews
*/
/**
* Deassigns a single or all global config variables
*
* @param object $smarty
* @param string $varname variable name or null
*/
function Smarty_Method_Clear_Config($smarty, $varname = null)
{
if (isset($varname)) {
unset($smarty->config_vars[$varname]);
return;
} else {
$smarty->config_vars = array();
return;
}
}
?>

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 22, 11:24 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25898
Default Alt Text
smarty_method_clear_config.php (540 B)

Event Timeline