PHP Class UserAgentParser\Provider\SinergiBrowserDetector

See also: https://github.com/sinergi/php-browser-detector
Author: Martin Keckeis ([email protected])
Inheritance: extends AbstractProvider
Mostrar archivo Open project: ThaDafinser/UserAgentParser Class Usage Examples

Protected Properties

Property Type Description
$defaultValues
$detectionCapabilities
$homepage string Homepage of the provider
$name string Name of the provider
$packageName string Composer package name

Public Methods

Method Description
__construct ( )
getBrowserParser ( string $userAgent ) : Sinergi\BrowserDetector\Browser
getDeviceParser ( string $userAgent ) : Sinergi\BrowserDetector\Device
getOperatingSystemParser ( string $userAgent ) : Sinergi\BrowserDetector\Os
parse ( $userAgent, array $headers = [] )

Private Methods

Method Description
hasResult ( Sinergi\BrowserDetector\Browser $browserRaw, Sinergi\BrowserDetector\Os $osRaw, Sinergi\BrowserDetector\Device $deviceRaw ) : boolean
hydrateBrowser ( Browser $browser, Sinergi\BrowserDetector\Browser $browserRaw )
hydrateDevice ( Device $device, Sinergi\BrowserDetector\Os $osRaw, Sinergi\BrowserDetector\Device $deviceRaw )
hydrateOperatingSystem ( OperatingSystem $os, Sinergi\BrowserDetector\Os $osRaw )

Method Details

__construct() public method

public __construct ( )

getBrowserParser() public method

public getBrowserParser ( string $userAgent ) : Sinergi\BrowserDetector\Browser
$userAgent string
return Sinergi\BrowserDetector\Browser

getDeviceParser() public method

public getDeviceParser ( string $userAgent ) : Sinergi\BrowserDetector\Device
$userAgent string
return Sinergi\BrowserDetector\Device

getOperatingSystemParser() public method

public getOperatingSystemParser ( string $userAgent ) : Sinergi\BrowserDetector\Os
$userAgent string
return Sinergi\BrowserDetector\Os

parse() public method

public parse ( $userAgent, array $headers = [] )
$headers array

Property Details

$defaultValues protected_oe property

protected $defaultValues

$detectionCapabilities protected_oe property

protected $detectionCapabilities

$homepage protected_oe property

Homepage of the provider
protected string $homepage
return string

$name protected_oe property

Name of the provider
protected string $name
return string

$packageName protected_oe property

Composer package name
protected string $packageName
return string