protected checkBrowserIceCat ( ) : boolean | ||
Résultat | boolean | True if the browser is Ice Cat otherwise false |
protected function checkBrowserIceCat()
{
if (stripos($this->_agent, 'Mozilla') !== false && preg_match('/IceCat\\/([^ ]*)/i', $this->_agent, $matches)) {
$this->setVersion($matches[1]);
$this->setBrowser(self::BROWSER_ICECAT, self::BROWSER_ICECAT_NAME);
return true;
}
return false;
}