Detects the client browser and version in a user agent string.
void
detectBrowser
(string $userAgent)
-
string
$userAgent: The user-agent string to parse.
Method to detect the accepted response encoding by the client.
void
detectEncoding
(string $acceptEncoding)
-
string
$acceptEncoding: The client accept encoding string to parse.
Detects the client rendering engine in a user agent string.
void
detectEngine
(string $userAgent)
-
string
$userAgent: The user-agent string to parse.
Method to detect the accepted languages by the client.
void
detectLanguage
(mixed $acceptLanguage)
-
mixed
$acceptLanguage: The client accept language string to parse.
Detects the client platform in a user agent string.
void
detectPlatform
(string $userAgent)
-
string
$userAgent: The user-agent string to parse.
Class constructor.
JWebClient
__construct
([mixed $userAgent = null], [mixed $acceptEncoding = null], [mixed $acceptLanguage = null])
-
mixed
$userAgent: The optional user-agent string to parse.
-
mixed
$acceptEncoding: The optional client accept encoding string to parse.
-
mixed
$acceptLanguage: The optional client accept language string to parse.
Magic method to get an object property's value by name.
mixed
__get
(string $name)
-
string
$name: Name of the property for which to return a value.