PHP Class UserAgentParser\Provider\AbstractProvider

Afficher le fichier Open project: ThaDafinser/UserAgentParser

Protected Properties

Свойство Type Description
$allDetectionCapabilities array Per default the provider cannot detect anything Activate them in $detectionCapabilities
$defaultValues
$detectionCapabilities array Set this in each Provider implementation
$homepage string Homepage of the provider
$name string Name of the provider
$packageName string Composer package name

Méthodes publiques

Méthode Description
getDetectionCapabilities ( ) : array What kind of capabilities this provider can detect
getHomepage ( ) : string Get the homepage
getName ( ) : string Return the name of the provider
getPackageName ( ) : string Get the package name
getUpdateDate ( ) : DateTim\DateTime Get the last change date of the provider
getVersion ( ) : string Return the version of the provider
parse ( string $userAgent, array $headers = [] ) : UserAgent Parse the given user agent and return a result if possible

Méthodes protégées

Méthode Description
checkIfInstalled ( )
getRealResult ( $value, $group = null, $part = null )
isRealResult ( mixed $value, string $group = null, string $part = null ) : boolean

Method Details

checkIfInstalled() protected méthode

protected checkIfInstalled ( )

getDetectionCapabilities() public méthode

What kind of capabilities this provider can detect
public getDetectionCapabilities ( ) : array
Résultat array

getHomepage() public méthode

Get the homepage
public getHomepage ( ) : string
Résultat string

getName() public méthode

Return the name of the provider
public getName ( ) : string
Résultat string

getPackageName() public méthode

Get the package name
public getPackageName ( ) : string
Résultat string null

getRealResult() protected méthode

protected getRealResult ( $value, $group = null, $part = null )

getUpdateDate() public méthode

Get the last change date of the provider
public getUpdateDate ( ) : DateTim\DateTime
Résultat DateTim\DateTime null

getVersion() public méthode

Return the version of the provider
public getVersion ( ) : string
Résultat string null

isRealResult() protected méthode

protected isRealResult ( mixed $value, string $group = null, string $part = null ) : boolean
$value mixed
$group string
$part string
Résultat boolean

parse() abstract public méthode

Parse the given user agent and return a result if possible
abstract public parse ( string $userAgent, array $headers = [] ) : UserAgent
$userAgent string
$headers array
Résultat UserAgentParser\Model\UserAgent

Property Details

$allDetectionCapabilities protected_oe property

Per default the provider cannot detect anything Activate them in $detectionCapabilities
protected array $allDetectionCapabilities
Résultat array

$defaultValues protected_oe property

protected $defaultValues

$detectionCapabilities protected_oe property

Set this in each Provider implementation
protected array $detectionCapabilities
Résultat array

$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