public function getGlobalState($key, $defaultValue = null) { return isset($this->_globals[$key]) ? $this->_globals[$key] : $defaultValue; }