protected function _detect($setupArray = [], $type = null)
{
$userAgent = strtolower($this->_request->getServer('HTTP_USER_AGENT'));
/* process setup */
foreach ($setupArray as $key => $value) {
if (stristr($userAgent, $value)) {
/* general */
$this->_output = $value;
/* version */
if ($type === 'version') {
$this->_output = floor(substr($userAgent, strpos($userAgent, $value) + strlen($value) + 1, 3));
}
}
}
}