PHP Class DeviceDetector\Parser\Client\Browser

Client parser for browser detection
Inheritance: extends DeviceDetector\Parser\Client\ClientParserAbstract
Afficher le fichier Open project: piwik/device-detector Class Usage Examples

Protected Properties

Свойство Type Description
$availableBrowsers array Known browsers mapped to their internal short codes
$browserFamilies array Browser families mapped to the short codes of the associated browsers
$fixtureFile
$mobileOnlyBrowsers array Browsers that are available for mobile devices only
$parserName

Méthodes publiques

Méthode Description
getAvailableBrowserFamilies ( ) : array Returns list of all available browser families
getAvailableBrowsers ( ) : array Returns list of all available browsers
getBrowserFamily ( string $browserLabel ) : boolean | string
isMobileOnlyBrowser ( string $browser ) : boolean Returns if the given browser is mobile only
parse ( )

Méthodes protégées

Méthode Description
buildEngine ( $engineData, $browserVersion )
buildEngineVersion ( $engine )

Method Details

buildEngine() protected méthode

protected buildEngine ( $engineData, $browserVersion )

buildEngineVersion() protected méthode

protected buildEngineVersion ( $engine )

getAvailableBrowserFamilies() public static méthode

Returns list of all available browser families
public static getAvailableBrowserFamilies ( ) : array
Résultat array

getAvailableBrowsers() public static méthode

Returns list of all available browsers
public static getAvailableBrowsers ( ) : array
Résultat array

getBrowserFamily() public static méthode

public static getBrowserFamily ( string $browserLabel ) : boolean | string
$browserLabel string
Résultat boolean | string If false, "Unknown"

isMobileOnlyBrowser() public static méthode

Returns if the given browser is mobile only
public static isMobileOnlyBrowser ( string $browser ) : boolean
$browser string Label or name of browser
Résultat boolean

parse() public méthode

public parse ( )

Property Details

$availableBrowsers protected_oe static_oe property

Known browsers mapped to their internal short codes
protected static array $availableBrowsers
Résultat array

$browserFamilies protected_oe static_oe property

Browser families mapped to the short codes of the associated browsers
protected static array $browserFamilies
Résultat array

$fixtureFile protected_oe property

protected $fixtureFile

$mobileOnlyBrowsers protected_oe static_oe property

Browsers that are available for mobile devices only
protected static array $mobileOnlyBrowsers
Résultat array

$parserName protected_oe property

protected $parserName