function is_legacy() { return BrowserType::isLegacyBrowser(); }
/** * Determine request browser * * @return \phpOMS\Message\Http\BrowserType * * @since 1.0.0 * @author Dennis Eichhorn <*****@*****.**> */ public function getBrowser() { if ($this->browser == null) { $arr = BrowserType::getConstants(); $http_request_type = strtolower($_SERVER['HTTP_USER_AGENT']); foreach ($arr as $key => $val) { if (stripos($http_request_type, $val)) { $this->browser = $val; break; } } } return $this->browser; }