PHP Class Pop\Web\Browser

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
detect ( ) : void Method to detect properties.

Method Details

__construct() public méthode

Instantiate the browser session object.
public __construct ( ) : Browser
Résultat Browser

detect() protected méthode

Method to detect properties.
protected detect ( ) : void
Résultat void

getIp() public méthode

Method to get IP
public getIp ( ) : string
Résultat string

getName() public méthode

Method to get browser name
public getName ( ) : string
Résultat string

getOs() public méthode

Method to get OS
public getOs ( ) : string
Résultat string

getPlatform() public méthode

Method to get platform
public getPlatform ( ) : string
Résultat string

getSubnet() public méthode

Method to get subnet
public getSubnet ( ) : string
Résultat string

getUa() public méthode

Method to get user-agent
public getUa ( ) : string
Résultat string

getVersion() public méthode

Method to get version
public getVersion ( ) : string
Résultat string

isChrome() public méthode

Method to get Chrome flag
public isChrome ( ) : boolean
Résultat boolean

isMozilla() public méthode

Method to get Mozilla flag
public isMozilla ( ) : boolean
Résultat boolean

isMsie() public méthode

Method to get MSIE flag
public isMsie ( ) : boolean
Résultat boolean

isOpera() public méthode

Method to get Opera flag
public isOpera ( ) : boolean
Résultat boolean

isWebkit() public méthode

Method to get WebKit flag
public isWebkit ( ) : boolean
Résultat boolean

Property Details

$chrome protected_oe property

Chrome flag
protected bool $chrome
Résultat boolean

$ip protected_oe property

User IP address
protected string $ip
Résultat string

$mozilla protected_oe property

Mozilla flag
protected bool $mozilla
Résultat boolean

$msie protected_oe property

MSIE flag
protected bool $msie
Résultat boolean

$name protected_oe property

Browser name
protected string $name
Résultat string

$opera protected_oe property

Opera flag
protected bool $opera
Résultat boolean

$os protected_oe property

Operating system
protected string $os
Résultat string

$platform protected_oe property

Platform
protected string $platform
Résultat string

$subnet protected_oe property

User Subnet
protected string $subnet
Résultat string

$ua protected_oe property

User agent property
protected string $ua
Résultat string

$version protected_oe property

Browser version
protected string $version
Résultat string

$webkit protected_oe property

WebKit flag
protected bool $webkit
Résultat boolean