PHP Класс UserAgentParser\Provider\AbstractProvider

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
checkIfInstalled ( )
getRealResult ( $value, $group = null, $part = null )
isRealResult ( mixed $value, string $group = null, string $part = null ) : boolean

Описание методов

checkIfInstalled() защищенный Метод

protected checkIfInstalled ( )

getDetectionCapabilities() публичный Метод

What kind of capabilities this provider can detect
public getDetectionCapabilities ( ) : array
Результат array

getHomepage() публичный Метод

Get the homepage
public getHomepage ( ) : string
Результат string

getName() публичный Метод

Return the name of the provider
public getName ( ) : string
Результат string

getPackageName() публичный Метод

Get the package name
public getPackageName ( ) : string
Результат string null

getRealResult() защищенный Метод

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

getUpdateDate() публичный Метод

Get the last change date of the provider
public getUpdateDate ( ) : DateTim\DateTime
Результат DateTim\DateTime null

getVersion() публичный Метод

Return the version of the provider
public getVersion ( ) : string
Результат string null

isRealResult() защищенный Метод

protected isRealResult ( mixed $value, string $group = null, string $part = null ) : boolean
$value mixed
$group string
$part string
Результат boolean

parse() абстрактный публичный Метод

Parse the given user agent and return a result if possible
abstract public parse ( string $userAgent, array $headers = [] ) : UserAgent
$userAgent string
$headers array
Результат UserAgentParser\Model\UserAgent

Описание свойств

$allDetectionCapabilities защищенное свойство

Per default the provider cannot detect anything Activate them in $detectionCapabilities
protected array $allDetectionCapabilities
Результат array

$defaultValues защищенное свойство

protected $defaultValues

$detectionCapabilities защищенное свойство

Set this in each Provider implementation
protected array $detectionCapabilities
Результат array

$homepage защищенное свойство

Homepage of the provider
protected string $homepage
Результат string

$name защищенное свойство

Name of the provider
protected string $name
Результат string

$packageName защищенное свойство

Composer package name
protected string $packageName
Результат string