protected function checkBrowserYandex()
    {
        if (stripos($this->_agent, 'YaBrowser') !== false) {
            $aresult = explode('/', stristr($this->_agent, 'YaBrowser'));
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                $this->setVersion($aversion[0]);
                $this->setBrowser(self::BROWSER_YANDEX);

                if (stripos($this->_agent, 'iPad') !== false) {
                    $this->setTablet(true);
                } elseif (stripos($this->_agent, 'Mobile') !== false) {
                    $this->setMobile(true);
                } elseif (stripos($this->_agent, 'Android') !== false) {
                    $this->setTablet(true);
                }

                return true;
            }
        }

        return false;
    }
protected function checkBrowserYandex()
    {
        if (stripos($this->_agent, 'YaBrowser') !== false) {
            $aresult = explode('/', stristr($this->_agent, 'YaBrowser'));
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                $this->setVersion($aversion[0]);
                $this->setBrowser(self::BROWSER_YANDEX);

                if (stripos($this->_agent, 'iPad') !== false) {
                    $this->setTablet(true);
                } elseif (stripos($this->_agent, 'Mobile') !== false) {
                    $this->setMobile(true);
                } elseif (stripos($this->_agent, 'Android') !== false) {
                    $this->setTablet(true);
                }

                return true;
            }
        }

        return false;
    }
protected function checkBrowserYandex ( ) { if ( stripos ( $ this -> _agent , 'YaBrowser' ) !== false ) { $ aresult = explode ( '/' , stristr ( $ this -> _agent , 'YaBrowser' ) ) ; if ( isset ( $ aresult [ 1 ] ) ) { $ aversion = explode ( ' ' , $ aresult [ 1 ] ) ; $ this -> setVersion ( $ aversion [ 0 ] ) ; $ this -> setBrowser ( self :: BROWSER_YANDEX ) ; if ( stripos ( $ this -> _agent , 'iPad' ) !== false ) { $ this -> setTablet ( true ) ; } elseif ( stripos ( $ this -> _agent , 'Mobile' ) !== false ) { $ this -> setMobile ( true ) ; } elseif ( stripos ( $ this -> _agent , 'Android' ) !== false ) { $ this -> setTablet ( true ) ; } return true ; } } return false ; }
Determine if the browser is Yandex
@return boolean True if the browser is Yandex otherwise false
Determine if the browser is Yandex