Browser
class Browser (View source)
Class to model a Web Client.
This class is based on Joomla WebClient
Constants
DEVICE_WINDOWS |
|
DEVICE_WINDOWS_PHONE |
|
DEVICE_WINDOWS_CE |
|
DEVICE_IPHONE |
|
DEVICE_IPAD |
|
DEVICE_IPOD |
|
DEVICE_MAC |
|
DEVICE_BLACKBERRY |
|
DEVICE_ANDROID |
|
DEVICE_LINUX |
|
ENGINE_TRIDENT |
|
ENGINE_EDGE_HTML |
|
ENGINE_WEBKIT |
|
ENGINE_GECKO |
|
ENGINE_PRESTO |
|
ENGINE_KHTML |
|
AMAYA |
|
IE |
|
EDGE |
|
FIREFOX |
|
CHROME |
|
SAFARI |
|
OPERA |
|
VIVALDI |
|
ANDROID_TABLET |
|
Methods
__construct(string $userAgent = null, array $server = array())
Class constructor.
int
getDevice(bool $refresh = false)
getPlatform
boolean
isMobile(bool $refresh = false)
getMobile
int
getEngine(bool $refresh = false)
getEngine
int
getBrowser(bool $refresh = false)
getBrowser
string
getBrowserVersion(bool $refresh = false)
getBrowserVersion
array
getLanguages(bool $refresh = false)
getLanguages
array
getEncodings(bool $refresh = false)
getEncodings
string
getUserAgent()
getUserAgent
setUserAgent(string $userAgent)
setUserAgent
boolean
isRobot(bool $refresh = false)
getRobot
boolean
isSSLConnection()
Determine if we are using a secure (SSL) connection.
Details
at line line 160
__construct(string $userAgent = null, array $server = array())
Class constructor.
at line line 511
int
getDevice(bool $refresh = false)
getPlatform
at line line 528
boolean
isMobile(bool $refresh = false)
getMobile
at line line 545
int
getEngine(bool $refresh = false)
getEngine
at line line 562
int
getBrowser(bool $refresh = false)
getBrowser
at line line 579
string
getBrowserVersion(bool $refresh = false)
getBrowserVersion
at line line 596
array
getLanguages(bool $refresh = false)
getLanguages
at line line 613
array
getEncodings(bool $refresh = false)
getEncodings
at line line 628
string
getUserAgent()
getUserAgent
at line line 654
boolean
isRobot(bool $refresh = false)
getRobot
at line line 671
boolean
isSSLConnection()
Determine if we are using a secure (SSL) connection.