protected function checkBrowserYandexMetrikaBot()
    {
        if (stripos($this->_agent, 'YandexMetrika') !== false) {
            $aresult = explode('/', stristr($this->_agent, 'YandexMetrika'));
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                $this->setVersion(str_replace(';', '', $aversion[0]));
                $this->_browser_name = self::BROWSER_YANDEXMETRIKA_BOT;
                $this->setRobot(true);
                return true;
            }
        }
        return false;
    }
protected function checkBrowserYandexMetrikaBot()
    {
        if (stripos($this->_agent, 'YandexMetrika') !== false) {
            $aresult = explode('/', stristr($this->_agent, 'YandexMetrika'));
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                $this->setVersion(str_replace(';', '', $aversion[0]));
                $this->_browser_name = self::BROWSER_YANDEXMETRIKA_BOT;
                $this->setRobot(true);
                return true;
            }
        }
        return false;
    }
protected function checkBrowserYandexMetrikaBot ( ) { if ( stripos ( $ this -> _agent , 'YandexMetrika' ) !== false ) { $ aresult = explode ( '/' , stristr ( $ this -> _agent , 'YandexMetrika' ) ) ; if ( isset ( $ aresult [ 1 ] ) ) { $ aversion = explode ( ' ' , $ aresult [ 1 ] ) ; $ this -> setVersion ( str_replace ( ';' , '' , $ aversion [ 0 ] ) ) ; $ this -> _browser_name = self :: BROWSER_YANDEXMETRIKA_BOT ; $ this -> setRobot ( true ) ; return true ; } } return false ; }
Determine if the browser is the YandexMetrika or not
@return boolean True if the browser is the YandexMetrika otherwise false
Determine if the browser is the YandexMetrika or not