Documentation

MobileDetect Constructor

 public
\Bitrix\Conversion\Internals\MobileDetect::__construct(
 array $headers = null,
 string $userAgent = null
);

Non-static method creates an instance class.

Parameters

ParameterDescriptionVersion
$headersSpecifies header. Header names must have styles of keys for a global PHP variable$_SERVER, i. e. in capital letters and with underscores instead of hyphens. When left empty, uses global variables SERVER['HTTP*'].
$userAgentInserts a User-Agent header. When left empty, uses code>HTTP_USER_AGENT from the array $headers.


© «Bitrix24», 2001-2024
Up