PHP Class UserAgentParser\Provider\Http\UserAgentStringCom

See also: http://www.useragentstring.com/pages/api.php
Author: Martin Keckeis ([email protected])
Inheritance: extends AbstractHttpProvider
Afficher le fichier Open project: ThaDafinser/UserAgentParser Class Usage Examples

Protected Properties

Свойство Type Description
$defaultValues
$detectionCapabilities
$homepage string Homepage of the provider
$name string Name of the provider

Méthodes publiques

Méthode Description
getVersion ( )
parse ( $userAgent, array $headers = [] )

Méthodes protégées

Méthode Description
getResult ( string $userAgent, array $headers ) : stdClass

Private Methods

Méthode 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 méthode

protected getResult ( string $userAgent, array $headers ) : stdClass
$userAgent string
$headers array
Résultat stdClass

getVersion() public méthode

public getVersion ( )

parse() public méthode

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
Résultat string

$name protected_oe property

Name of the provider
protected string $name
Résultat string