_cached_values[$key])) { if (!class_exists('SugarArray', true)) { require 'include/utils/array_utils.php'; } $this->_cached_values[$key] = isset($GLOBALS['sugar_config']) ? SugarArray::staticGet($GLOBALS['sugar_config'], $key, $default) : $default; } return $this->_cached_values[$key]; } function clearCache($key = null) { if (is_null($key)) { $this->_cached_values = array(); } else { unset($this->_cached_values[$key]); } } }