PHP Class UserAgentParser\Provider\Http\UdgerCom

See also: https://udger.com/support/documentation/?doc=38
Author: Martin Keckeis ([email protected])
Inheritance: extends AbstractHttpProvider
ファイルを表示 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
__construct ( Client $client, $apiKey )
getVersion ( )
parse ( $userAgent, array $headers = [] )

Protected Methods

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

Private Methods

Method Description
hydrateBot ( Bot $bot, stdClass $resultRaw )
hydrateBrowser ( Browser $browser, stdClass $resultRaw )
hydrateDevice ( Device $device, stdClass $resultRaw )
hydrateOperatingSystem ( OperatingSystem $os, stdClass $resultRaw )
hydrateRenderingEngine ( RenderingEngine $engine, stdClass $resultRaw )
isBot ( stdClass $resultRaw ) : boolean

Method Details

__construct() public method

public __construct ( Client $client, $apiKey )
$client GuzzleHttp\Client

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