NukeViet\Client\Browser::checkBrowserNokia PHP Метод

checkBrowserNokia() защищенный Метод

Determine if the browser is Nokia or not (last updated 1.7)
protected checkBrowserNokia ( ) : boolean
Результат boolean True if the browser is Nokia otherwise false
    protected function checkBrowserNokia()
    {
        if (preg_match("/Nokia([^\\/]+)\\/([^ SP]+)/i", $this->_agent, $matches)) {
            $this->setVersion($matches[2]);
            if (stripos($this->_agent, 'Series60') !== false || strpos($this->_agent, 'S60') !== false) {
                $this->setBrowser(self::BROWSER_NOKIA_S60, self::BROWSER_NOKIA_S60_NAME);
            } else {
                $this->setBrowser(self::BROWSER_NOKIA, self::BROWSER_NOKIA_NAME);
            }
            $this->setMobile(true);
            return true;
        }
        return false;
    }