function Config_File::clear in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/lib/smarty/Config_File.class.php \Config_File::clear()
Clear loaded config data for a certain file or all files.
Parameters
string $file_name file to clear config data for:
File
- includes/
moodle/ lib/ smarty/ Config_File.class.php, line 212
Class
- Config_File
- Config file reading class @package Smarty
Code
function clear($file_name = NULL) {
if ($file_name === NULL) {
$this->_config_data = array();
}
else {
if (isset($this->_config_data[$file_name])) {
$this->_config_data[$file_name] = array();
}
}
}