function Smarty::get_config_vars in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/smarty/Smarty.class.php \Smarty::get_config_vars()
Returns an array containing config variables
Parameters
string $name:
string $type:
Return value
array
File
- includes/
moodle/ lib/ smarty/ Smarty.class.php, line 1070
Class
- Smarty
- @package Smarty
Code
function &get_config_vars($name = null) {
if (!isset($name) && is_array($this->_config[0])) {
return $this->_config[0]['vars'];
}
else {
if (isset($this->_config[0]['vars'][$name])) {
return $this->_config[0]['vars'][$name];
}
}
}