NukeViet\Client\Browser::checkBrowserWebTv PHP Méthode

checkBrowserWebTv() protected méthode

Determine if the browser is WebTv or not (last updated 1.7)
protected checkBrowserWebTv ( ) : boolean
Résultat boolean True if the browser is WebTv otherwise false
    protected function checkBrowserWebTv()
    {
        if (stripos($this->_agent, 'webtv') !== false) {
            $aresult = explode('/', stristr($this->_agent, 'webtv'));
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                $this->setVersion($aversion[0]);
                $this->setBrowser(self::BROWSER_WEBTV, self::BROWSER_WEBTV_NAME);
                return true;
            }
        }
        return false;
    }