Class WebClient
Class to model a Web Client.
Since: 1.0
Located at vendor/joomla/application/src/Web/WebClient.php
Methods summary
public
|
#
__construct( string $userAgent = null, string $acceptEncoding = null, string $acceptLanguage = null )
Class constructor. |
public
mixed
|
|
protected
|
|
protected
|
#
detectEncoding( string $acceptEncoding )
Method to detect the accepted response encoding by the client. |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
Magic methods summary
Constants summary
integer |
WINDOWS
|
1 |
|
integer |
WINDOWS_PHONE
|
2 |
|
integer |
WINDOWS_CE
|
3 |
|
integer |
IPHONE
|
4 |
|
integer |
IPAD
|
5 |
|
integer |
IPOD
|
6 |
|
integer |
MAC
|
7 |
|
integer |
BLACKBERRY
|
8 |
|
integer |
ANDROID
|
9 |
|
integer |
LINUX
|
10 |
|
integer |
TRIDENT
|
11 |
|
integer |
WEBKIT
|
12 |
|
integer |
GECKO
|
13 |
|
integer |
PRESTO
|
14 |
|
integer |
KHTML
|
15 |
|
integer |
AMAYA
|
16 |
|
integer |
IE
|
17 |
|
integer |
FIREFOX
|
18 |
|
integer |
CHROME
|
19 |
|
integer |
SAFARI
|
20 |
|
integer |
OPERA
|
21 |
|
integer |
ANDROIDTABLET
|
22 |
|
integer |
EDGE
|
23 |
|
integer |
BLINK
|
24 |
Properties summary
protected
integer
|
$platform |
#
The detected platform on which the web client runs. |
protected
boolean
|
$mobile |
#
True if the web client is a mobile device. |
protected
integer
|
$engine |
#
The detected rendering engine used by the web client. |
protected
integer
|
$browser |
#
The detected browser used by the web client. |
protected
string
|
$browserVersion |
#
The detected browser version used by the web client. |
protected
array
|
$languages |
#
The priority order detected accepted languages for the client. |
protected
array
|
$encodings |
#
The priority order detected accepted encodings for the client. |
protected
string
|
$userAgent |
#
The web client's user agent string. |
protected
string
|
$acceptEncoding |
#
The web client's accepted encoding string. |
protected
string
|
$acceptLanguage |
#
The web client's accepted languages string. |
protected
boolean
|
$robot |
#
True if the web client is a robot. |
protected
array
|
$detection |
#
An array of flags determining whether or not a detection routine has been run. |
protected
array
|
$headers |
#
An array of headers sent by client |
Magic properties
public read-only
integer
|
$platform |
|
#
The detected platform on which the web client runs. |
public read-only
boolean
|
$mobile |
|
#
True if the web client is a mobile device. |
public read-only
integer
|
$engine |
|
#
The detected rendering engine used by the web client. |
public read-only
integer
|
$browser |
|
#
The detected browser used by the web client. |
public read-only
string
|
$browserVersion |
|
#
The detected browser version used by the web client. |
public read-only
array
|
$languages |
|
#
The priority order detected accepted languages for the client. |
public read-only
array
|
$encodings |
|
#
The priority order detected accepted encodings for the client. |
public read-only
string
|
$userAgent |
|
#
The web client's user agent string. |
public read-only
string
|
$acceptEncoding |
|
#
The web client's accepted encoding string. |
public read-only
string
|
$acceptLanguage |
|
#
The web client's accepted languages string. |
public read-only
array
|
$detection |
|
#
An array of flags determining whether or not a detection routine has been run. |
public read-only
boolean
|
$robot |
|
#
True if the web client is a robot |
public read-only
array
|
$headers |
|
#
An array of all headers sent by client |