\Pop\WebBrowser

Browser class

Summary

Methods
Properties
Constants
__construct()
getIp()
getSubnet()
getUa()
getPlatform()
getOs()
getName()
getVersion()
isMozilla()
isChrome()
isWebkit()
isMsie()
isOpera()
No public properties found
No constants found
detect()
$ip
$subnet
$ua
$platform
$os
$name
$version
$mozilla
$chrome
$webkit
$msie
$opera
N/A
No private methods found
No private properties found
N/A

Properties

$ip

$ip : string

User IP address

Type

string

$subnet

$subnet : string

User Subnet

Type

string

$ua

$ua : string

User agent property

Type

string

$platform

$platform : string

Platform

Type

string

$os

$os : string

Operating system

Type

string

$name

$name : string

Browser name

Type

string

$version

$version : string

Browser version

Type

string

$mozilla

$mozilla : boolean

Mozilla flag

Type

boolean

$chrome

$chrome : boolean

Chrome flag

Type

boolean

$webkit

$webkit : boolean

WebKit flag

Type

boolean

$msie

$msie : boolean

MSIE flag

Type

boolean

$opera

$opera : boolean

Opera flag

Type

boolean

Methods

__construct()

__construct() : \Pop\Web\Browser

Constructor

Instantiate the browser object

Returns

\Pop\Web\Browser

getIp()

getIp() : string

Get IP

Returns

string

getSubnet()

getSubnet() : string

Get subnet

Returns

string

getUa()

getUa() : string

Get user-agent

Returns

string

getPlatform()

getPlatform() : string

Get platform

Returns

string

getOs()

getOs() : string

Get OS

Returns

string

getName()

getName() : string

Get browser name

Returns

string

getVersion()

getVersion() : string

Get version

Returns

string

isMozilla()

isMozilla() : boolean

Get Mozilla flag

Returns

boolean

isChrome()

isChrome() : boolean

Get Chrome flag

Returns

boolean

isWebkit()

isWebkit() : boolean

Get WebKit flag

Returns

boolean

isMsie()

isMsie() : boolean

Get MSIE flag

Returns

boolean

isOpera()

isOpera() : boolean

Get Opera flag

Returns

boolean

detect()

detect() : void

Detect properties.