◆ __construct()
| __construct |
( |
|
$userAgent = null, |
|
|
|
$acceptEncoding = null, |
|
|
|
$acceptLanguage = null |
|
) |
| |
◆ __get()
◆ detectBrowser()
| detectBrowser |
( |
|
$userAgent | ) |
|
|
protected |
◆ detectEncoding()
| detectEncoding |
( |
|
$acceptEncoding | ) |
|
|
protected |
Method to detect the accepted response encoding by the client.
- Paramètres
-
| string | $acceptEncoding | The client accept encoding string to parse. |
- Renvoie
- void
- Depuis
- 1.0
Références WebClient\$acceptEncoding.
Référencé par WebClient\__get().
◆ detectEngine()
| detectEngine |
( |
|
$userAgent | ) |
|
|
protected |
◆ detectHeaders()
◆ detectLanguage()
| detectLanguage |
( |
|
$acceptLanguage | ) |
|
|
protected |
Method to detect the accepted languages by the client.
- Paramètres
-
| mixed | $acceptLanguage | The client accept language string to parse. |
- Renvoie
- void
- Depuis
- 1.0
Références WebClient\$acceptLanguage.
Référencé par WebClient\__get().
◆ detectPlatform()
| detectPlatform |
( |
|
$userAgent | ) |
|
|
protected |
Detects the client platform in a user agent string.
- Paramètres
-
| string | $userAgent | The user-agent string to parse. |
- Renvoie
- void
- Depuis
- 1.0
Attempt to distinguish between Android phones and tablets There is no totally foolproof method but certain rules almost always hold Android 3.x is only used for tablets Some devices and browsers encourage users to change their UA string to include Tablet. Google encourages manufacturers to exclude the string Mobile from tablet device UA strings. In some modes Kindle Android devices include the string Mobile but they include the string Silk.
Références WebClient\$userAgent, et elseif.
Référencé par WebClient\__get().
◆ detectRobot()
| detectRobot |
( |
|
$userAgent | ) |
|
|
protected |
Determines if the browser is a robot or not.
- Paramètres
-
| string | $userAgent | The user-agent string to parse. |
- Renvoie
- void
- Depuis
- 1.0
Références WebClient\$userAgent.
Référencé par WebClient\__get().
◆ $acceptEncoding
◆ $acceptLanguage
◆ $browser
◆ $browserVersion
◆ $detection
◆ $encodings
◆ $engine
◆ $headers
◆ $languages
◆ $mobile
◆ $platform
◆ $robot
◆ $userAgent
◆ AMAYA
◆ ANDROID
◆ ANDROIDTABLET
◆ BLACKBERRY
◆ BLINK
◆ CHROME
◆ EDG
◆ EDGE
◆ FIREFOX
◆ GECKO
◆ IE
◆ IPAD
◆ IPHONE
◆ IPOD
◆ KHTML
◆ LINUX
◆ MAC
◆ OPERA
◆ PRESTO
◆ SAFARI
◆ TRIDENT
◆ WEBKIT
◆ WINDOWS
◆ WINDOWS_CE
◆ WINDOWS_PHONE
La documentation de cette classe a été générée à partir du fichier suivant :