PHP Class UserAgentParser\Provider\UAParser

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

Méthodes publiques

Méthode Description
__construct ( UAParser\Parser $parser = null )
getParser ( ) : UAParser\Parser
parse ( $userAgent, array $headers = [] )

Private Methods

Méthode Description
hasResult ( UAParser\Result\Client $resultRaw ) : boolean
hydrateBot ( Bot $bot, UAParser\Result\Client $resultRaw )
hydrateBrowser ( Browser $browser, UAParser\Result\UserAgent $uaRaw )
hydrateDevice ( Device $device, UAParser\Result\Device $deviceRaw )
hydrateOperatingSystem ( OperatingSystem $os, UAParser\Result\OperatingSystem $osRaw )
isBot ( UAParser\Result\Client $resultRaw ) : boolean

Method Details

__construct() public méthode

public __construct ( UAParser\Parser $parser = null )
$parser UAParser\Parser

getParser() public méthode

public getParser ( ) : UAParser\Parser
Résultat UAParser\Parser

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

$packageName protected_oe property

Composer package name
protected string $packageName
Résultat string