/** * Return the user agent string that is being worked on * * @access public * @return string user agent */ function getUserAgent() { if (!isset($this) || get_class($this) != 'net_useragent_detect') { $this =& Net_UserAgent_Detect::singleton(); } return $this->userAgent; }