PHP Class Pop\Web\Browser

Author: Nick Sagona, III ([email protected])
ファイルを表示 Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Property Type Description
$chrome boolean Chrome flag
$ip string User IP address
$mozilla boolean Mozilla flag
$msie boolean MSIE flag
$name string Browser name
$opera boolean Opera flag
$os string Operating system
$platform string Platform
$subnet string User Subnet
$ua string User agent property
$version string Browser version
$webkit boolean WebKit flag

Public Methods

Method Description
__construct ( ) : Browser Constructor
getIp ( ) : string Method to get IP
getName ( ) : string Method to get browser name
getOs ( ) : string Method to get OS
getPlatform ( ) : string Method to get platform
getSubnet ( ) : string Method to get subnet
getUa ( ) : string Method to get user-agent
getVersion ( ) : string Method to get version
isChrome ( ) : boolean Method to get Chrome flag
isMozilla ( ) : boolean Method to get Mozilla flag
isMsie ( ) : boolean Method to get MSIE flag
isOpera ( ) : boolean Method to get Opera flag
isWebkit ( ) : boolean Method to get WebKit flag

Protected Methods

Method Description
detect ( ) : void Method to detect properties.

Method Details

__construct() public method

Instantiate the browser session object.
public __construct ( ) : Browser
return Browser

detect() protected method

Method to detect properties.
protected detect ( ) : void
return void

getIp() public method

Method to get IP
public getIp ( ) : string
return string

getName() public method

Method to get browser name
public getName ( ) : string
return string

getOs() public method

Method to get OS
public getOs ( ) : string
return string

getPlatform() public method

Method to get platform
public getPlatform ( ) : string
return string

getSubnet() public method

Method to get subnet
public getSubnet ( ) : string
return string

getUa() public method

Method to get user-agent
public getUa ( ) : string
return string

getVersion() public method

Method to get version
public getVersion ( ) : string
return string

isChrome() public method

Method to get Chrome flag
public isChrome ( ) : boolean
return boolean

isMozilla() public method

Method to get Mozilla flag
public isMozilla ( ) : boolean
return boolean

isMsie() public method

Method to get MSIE flag
public isMsie ( ) : boolean
return boolean

isOpera() public method

Method to get Opera flag
public isOpera ( ) : boolean
return boolean

isWebkit() public method

Method to get WebKit flag
public isWebkit ( ) : boolean
return boolean

Property Details

$chrome protected_oe property

Chrome flag
protected bool $chrome
return boolean

$ip protected_oe property

User IP address
protected string $ip
return string

$mozilla protected_oe property

Mozilla flag
protected bool $mozilla
return boolean

$msie protected_oe property

MSIE flag
protected bool $msie
return boolean

$name protected_oe property

Browser name
protected string $name
return string

$opera protected_oe property

Opera flag
protected bool $opera
return boolean

$os protected_oe property

Operating system
protected string $os
return string

$platform protected_oe property

Platform
protected string $platform
return string

$subnet protected_oe property

User Subnet
protected string $subnet
return string

$ua protected_oe property

User agent property
protected string $ua
return string

$version protected_oe property

Browser version
protected string $version
return string

$webkit protected_oe property

WebKit flag
protected bool $webkit
return boolean