PHP 클래스 Pop\Web\Browser

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
detect ( ) : void Method to detect properties.

메소드 상세

__construct() 공개 메소드

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

detect() 보호된 메소드

Method to detect properties.
protected detect ( ) : void
리턴 void

getIp() 공개 메소드

Method to get IP
public getIp ( ) : string
리턴 string

getName() 공개 메소드

Method to get browser name
public getName ( ) : string
리턴 string

getOs() 공개 메소드

Method to get OS
public getOs ( ) : string
리턴 string

getPlatform() 공개 메소드

Method to get platform
public getPlatform ( ) : string
리턴 string

getSubnet() 공개 메소드

Method to get subnet
public getSubnet ( ) : string
리턴 string

getUa() 공개 메소드

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

getVersion() 공개 메소드

Method to get version
public getVersion ( ) : string
리턴 string

isChrome() 공개 메소드

Method to get Chrome flag
public isChrome ( ) : boolean
리턴 boolean

isMozilla() 공개 메소드

Method to get Mozilla flag
public isMozilla ( ) : boolean
리턴 boolean

isMsie() 공개 메소드

Method to get MSIE flag
public isMsie ( ) : boolean
리턴 boolean

isOpera() 공개 메소드

Method to get Opera flag
public isOpera ( ) : boolean
리턴 boolean

isWebkit() 공개 메소드

Method to get WebKit flag
public isWebkit ( ) : boolean
리턴 boolean

프로퍼티 상세

$chrome 보호되어 있는 프로퍼티

Chrome flag
protected bool $chrome
리턴 boolean

$ip 보호되어 있는 프로퍼티

User IP address
protected string $ip
리턴 string

$mozilla 보호되어 있는 프로퍼티

Mozilla flag
protected bool $mozilla
리턴 boolean

$msie 보호되어 있는 프로퍼티

MSIE flag
protected bool $msie
리턴 boolean

$name 보호되어 있는 프로퍼티

Browser name
protected string $name
리턴 string

$opera 보호되어 있는 프로퍼티

Opera flag
protected bool $opera
리턴 boolean

$os 보호되어 있는 프로퍼티

Operating system
protected string $os
리턴 string

$platform 보호되어 있는 프로퍼티

Platform
protected string $platform
리턴 string

$subnet 보호되어 있는 프로퍼티

User Subnet
protected string $subnet
리턴 string

$ua 보호되어 있는 프로퍼티

User agent property
protected string $ua
리턴 string

$version 보호되어 있는 프로퍼티

Browser version
protected string $version
리턴 string

$webkit 보호되어 있는 프로퍼티

WebKit flag
protected bool $webkit
리턴 boolean