PHP Class UserAgentParser\Provider\Http\UserAgentStringCom

See also: http://www.useragentstring.com/pages/api.php
Author: Martin Keckeis ([email protected])
Inheritance: extends AbstractHttpProvider
Mostra file 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

Public Methods

Method Description
getVersion ( )
parse ( $userAgent, array $headers = [] )

Protected Methods

Method Description
getResult ( string $userAgent, array $headers ) : stdClass

Private Methods

Method Description
hasResult ( stdClass $resultRaw ) : boolean
hydrateBot ( Bot $bot, stdClass $resultRaw )
hydrateBrowser ( Browser $browser, stdClass $resultRaw )
hydrateOperatingSystem ( OperatingSystem $os, stdClass $resultRaw )
isBot ( stdClass $resultRaw ) : boolean

Method Details

getResult() protected method

protected getResult ( string $userAgent, array $headers ) : stdClass
$userAgent string
$headers array
return stdClass

getVersion() public method

public getVersion ( )

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