_getMobileDetect()->isMobile() || $this->_getMobileDetect()->isTablet()); } /** * @return string */ public function getPointingMethod() { if (($this->_getMobileDetect()->isMobile() || $this->_getMobileDetect()->isTablet())) { return self::POINTING_METHOD_TOUCHSCREEN; } return self::POINTING_METHOD_MOUSE; } /** * @param string $userAgent * @return $this */ public function setUserAgent($userAgent) { $this->_getMobileDetect()->setUserAgent($userAgent); return $this; } /** * @return null|string */ public function getUserAgent() { return $this->_getMobileDetect()->getUserAgent(); } /** * @return Mobile_Detect */ protected function _getMobileDetect() { if (null === $this->_mobileDetect) { $this->_mobileDetect = new Mobile_Detect(); } return $this->_mobileDetect; } }