public function setUserAgent($agent_string) { $this->reset(); $this->_agent = $agent_string; $this->determine(); }