setUserAgent($userAgent); } return $this->getUserAgent(); } /** * Set UserAgent instance * * @param Zend_Http_UserAgent $userAgent * @return Zend_View_Helper_UserAgent */ public function setUserAgent(Zend_Http_UserAgent $userAgent) { $this->_userAgent = $userAgent; return $this; } /** * Retrieve UserAgent instance * * If none set, instantiates one using no configuration * * @return Zend_Http_UserAgent */ public function getUserAgent() { if (null === $this->_userAgent) { #require_once 'Zend/Http/UserAgent.php'; $this->setUserAgent(new Zend_Http_UserAgent()); } return $this->_userAgent; } }