/** * Get the value for a given configuration key * * @param string $key * @return mixed */ private function _get($key){ // If it's a standard config, pull the value from config. if(isset($this->_cacheFromDB[$key])){ // Is it already overridden? if(isset($this->_overrides[$key])){ return ConfigModel::TranslateValue($this->_cacheFromDB[$key]->get('type'), $this->_overrides[$key]); } else{ return $this->_cacheFromDB[$key]->getValue(); } } // Not there either? Allow the SESSION to contain config variables. This is critical for installation. elseif(\Core\Session::Get('configs/' . $key) !== null){ return \Core\Session::Get('configs/' . $key); } // Else, just return null. else{ return null; } }