\JApplicationWebClient
Class to model a Web Client.
Synopsis
class JApplicationWebClient
{
- // constants
- const WINDOWS = 1;
- const WINDOWS_PHONE = 2;
- const WINDOWS_CE = 3;
- const IPHONE = 4;
- const IPAD = 5;
- const IPOD = 6;
- const MAC = 7;
- const BLACKBERRY = 8;
- const ANDROID = 9;
- const LINUX = 10;
- const TRIDENT = 11;
- const WEBKIT = 12;
- const GECKO = 13;
- const PRESTO = 14;
- const KHTML = 15;
- const AMAYA = 16;
- const IE = 17;
- const FIREFOX = 18;
- const CHROME = 19;
- const SAFARI = 20;
- const OPERA = 21;
- const ANDROIDTABLET = 22;
- // members
- protected $platform;
- protected $mobile;
- protected $engine;
- protected $browser;
- protected $browserVersion;
- protected $languages;
- protected $encodings;
- protected $userAgent;
- protected $acceptEncoding;
- protected $acceptLanguage;
- protected $robot;
- protected $detection;
- // methods
- public void __construct()
- public mixed __get()
- protected void detectBrowser()
- protected void detectEncoding()
- protected void detectEngine()
- protected void detectLanguage()
- protected void detectPlatform()
- protected void detectRobot()
Hierarchy
Extended by
Constants
Name | Value |
---|---|
WINDOWS | 1 |
WINDOWS_PHONE | 2 |
WINDOWS_CE | 3 |
IPHONE | 4 |
IPAD | 5 |
IPOD | 6 |
MAC | 7 |
BLACKBERRY | 8 |
ANDROID | 9 |
LINUX | 10 |
TRIDENT | 11 |
WEBKIT | 12 |
GECKO | 13 |
PRESTO | 14 |
KHTML | 15 |
AMAYA | 16 |
IE | 17 |
FIREFOX | 18 |
CHROME | 19 |
SAFARI | 20 |
OPERA | 21 |
ANDROIDTABLET | 22 |
Members
protected
- $acceptEncoding — string
- $acceptLanguage — string
- $browser — integer
- $browserVersion — string
- $detection — array
- $encodings — array
- $engine — integer
- $languages — array
- $mobile — boolean
- $platform — integer
- $robot — boolean
- $userAgent — string
Methods
protected
- detectBrowser() — Detects the client browser and version in a user agent string.
- detectEncoding() — Method to detect the accepted response encoding by the client.
- detectEngine() — Detects the client rendering engine in a user agent string.
- detectLanguage() — Method to detect the accepted languages by the client.
- detectPlatform() — Detects the client platform in a user agent string.
- detectRobot() — Determines if the browser is a robot or not.
public
- __construct() — Class constructor.
- __get() — Magic method to get an object property's value by name.