PHP Class UserAgentParser\Provider\HandsetDetection

See also: https://github.com/HandsetDetection/php-apikit
Author: Martin Keckeis ([email protected])
Inheritance: extends AbstractProvider
ファイルを表示 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 ( HandsetDetection\HD4 $parser )
getParser ( ) : HandsetDetection\HD4
parse ( $userAgent, array $headers = [] )

Private Methods

Method Description
hasResult ( array $resultRaw ) : boolean
hydrateBrowser ( Browser $browser, array $resultRaw )
hydrateDevice ( Device $device, array $resultRaw )
hydrateOperatingSystem ( OperatingSystem $os, array $resultRaw )

Method Details

__construct() public method

public __construct ( HandsetDetection\HD4 $parser )
$parser HandsetDetection\HD4

getParser() public method

public getParser ( ) : HandsetDetection\HD4
return HandsetDetection\HD4

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