NukeViet\Client\Browser::checkBrowserSafari PHP 메소드

checkBrowserSafari() 보호된 메소드

Determine if the browser is Safari or not (last updated 1.7)
protected checkBrowserSafari ( ) : boolean
리턴 boolean True if the browser is Safari otherwise false
    protected function checkBrowserSafari()
    {
        if (stripos($this->_agent, 'Safari') !== false && stripos($this->_agent, 'iPhone') === false && stripos($this->_agent, 'iPod') === false) {
            $aresult = explode('/', stristr($this->_agent, 'Version'));
            if (isset($aresult[1])) {
                $aversion = explode(' ', $aresult[1]);
                $this->setVersion($aversion[0]);
            } else {
                $this->setVersion(self::VERSION_UNKNOWN);
            }
            $this->setBrowser(self::BROWSER_SAFARI, self::BROWSER_SAFARI_NAME);
            return true;
        }
        return false;
    }