17 if(!$this->_detection) $this->_detection = new \Detection\MobileDetect();
22 return in_array($this->type,$this->mobileTypes);
26 if($this->_type === null){
27 $this->_type = $this->session->type;
28 if($this->_type === null){
30 if($this->detection->is(
'Bot') || $this->detection->is(
'MobileBot')) $type = self::BOT;
31 elseif($this->detection->isMobile()) $type = $this->detection->isTablet() ? self::TABLET : self::PHONE;
32 $this->session->type = $this->_type = $type;
39 return $this->detection->getUserAgent();