You are here

function Smarty::clear_config in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/lib/smarty/Smarty.class.php \Smarty::clear_config()

clear configuration values

Parameters

string $var:

File

includes/moodle/lib/smarty/Smarty.class.php, line 1340

Class

Smarty
@package Smarty

Code

function clear_config($var = null) {
  if (!isset($var)) {

    // clear all values
    $this->_config = array(
      array(
        'vars' => array(),
        'files' => array(),
      ),
    );
  }
  else {
    unset($this->_config[0]['vars'][$var]);
  }
}