프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$browserName | |||
$browserVersion | |||
$engine | |||
$operatingSystem | |||
$userAgentString |
메소드 | 설명 | |
---|---|---|
__construct ( $userAgentString = null, phpUserAgentStringParser $userAgentStringParser = null ) | ||
__toString ( ) | ||
configureFromUserAgentString ( string $userAgentString, phpUserAgentStringParser $userAgentStringParser = null ) | Configure the user agent from a user agent string | |
fromArray ( array $data ) | Configure the user agent from a data array | |
getBrowserName ( ) : string | Get the browser name | |
getBrowserVersion ( ) : string | Get the browser version | |
getEngine ( ) : string | Get the engine name | |
getFullName ( ) : string | ||
getOperatingSystem ( ) : string | Get the operating system name | |
getUserAgentString ( ) : string | Get the user agent string | |
isUnknown ( ) : boolean | Tell whether this user agent is unknown or not | |
setBrowserName ( string $name ) | Set the browser name | |
setBrowserVersion ( string $version ) | Set the browser version | |
setEngine ( $engine ) | Set the engine name | |
setOperatingSystem ( string $operatingSystem ) | Set the operating system name | |
setUserAgentString ( string $userAgentString ) | Set the user agent string | |
toArray ( ) : array | Convert the user agent to a data array |
public __construct ( $userAgentString = null, phpUserAgentStringParser $userAgentStringParser = null ) | ||
$userAgentStringParser | phpUserAgentStringParser |
public configureFromUserAgentString ( string $userAgentString, phpUserAgentStringParser $userAgentStringParser = null ) | ||
$userAgentString | string | the user agent string |
$userAgentStringParser | phpUserAgentStringParser | the parser used to parse the string |
public getBrowserName ( ) : string | ||
리턴 | string | the browser name |
public getBrowserVersion ( ) : string | ||
리턴 | string | the browser version |
public getOperatingSystem ( ) : string | ||
리턴 | string | the operating system name |
public getUserAgentString ( ) : string | ||
리턴 | string | the user agent string |
public setBrowserName ( string $name ) | ||
$name | string | the browser name |
public setBrowserVersion ( string $version ) | ||
$version | string | the browser version |
public setOperatingSystem ( string $operatingSystem ) | ||
$operatingSystem | string | the operating system name |
public setUserAgentString ( string $userAgentString ) | ||
$userAgentString | string | the user agent string |