PHP Class UserAgentParser\Provider\PiwikDeviceDetector

Inheritance: extends AbstractProvider
Show 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
$packageName string Composer package name

Public Methods

Method Description
__construct ( DeviceDetector $parser = null )
getParser ( ) : DeviceDetector
parse ( $userAgent, array $headers = [] )

Private Methods

Method Description
getResultRaw ( DeviceDetector $dd ) : array
hasResult ( DeviceDetector $dd ) : boolean
hydrateBot ( Bot $bot, array | boolean $botRaw )
hydrateBrowser ( Browser $browser, array | string $clientRaw )
hydrateDevice ( Device $device, DeviceDetector $dd )
hydrateOperatingSystem ( OperatingSystem $os, array | string $osRaw )
hydrateRenderingEngine ( RenderingEngine $engine, array | string $clientRaw )

Method Details

__construct() public method

public __construct ( DeviceDetector $parser = null )
$parser DeviceDetector\DeviceDetector

getParser() public method

public getParser ( ) : DeviceDetector
return DeviceDetector\DeviceDetector

parse() public method

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

Property Details

$defaultValues protected property

protected $defaultValues

$detectionCapabilities protected property

protected $detectionCapabilities

$homepage protected property

Homepage of the provider
protected string $homepage
return string

$name protected property

Name of the provider
protected string $name
return string

$packageName protected property

Composer package name
protected string $packageName
return string