PHP Class UserAgentParser\Provider\AbstractBrowscap

See also: https://github.com/browscap/browscap-php
Author: Martin Keckeis ([email protected])
Inheritance: extends AbstractProvider
Datei anzeigen Open project: ThaDafinser/UserAgentParser Class Usage Examples

Protected Properties

Property Type Description
$defaultValues
$homepage string Homepage of the provider
$packageName string Composer package name

Public Methods

Method Description
__construct ( Browscap $parser, $expectedType = '' )
getParser ( ) : Browscap
getUpdateDate ( )
getVersion ( )
parse ( $userAgent, array $headers = [] )

Private Methods

Method Description
hasResult ( stdClass $resultRaw ) : boolean
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 ( Browscap $parser, $expectedType = '' )
$parser BrowscapPHP\Browscap

getParser() public method

public getParser ( ) : Browscap
return BrowscapPHP\Browscap

getUpdateDate() public method

public getUpdateDate ( )

getVersion() public method

public getVersion ( )

parse() public method

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

Property Details

$defaultValues protected_oe property

protected $defaultValues

$homepage protected_oe property

Homepage of the provider
protected string $homepage
return string

$packageName protected_oe property

Composer package name
protected string $packageName
return string