Property | Type | Description | |
---|---|---|---|
$browserName | |||
$browserVersion | |||
$engine | |||
$operatingSystem | |||
$userAgentString |
Method | Description | |
---|---|---|
__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 | ||
return | string | the browser name |
public getBrowserVersion ( ) : string | ||
return | string | the browser version |
public getFullName ( ) : string | ||
return | string | combined browser name and version |
public getOperatingSystem ( ) : string | ||
return | string | the operating system name |
public getUserAgentString ( ) : string | ||
return | 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 |