Méthode | Description | |
---|---|---|
addFilter ( string $filter ) | Add a filter to be called when parsing a user agent | |
cleanUserAgentString ( string $userAgentString ) : string | Make user agent string lowercase, and replace browser aliases | |
getFilters ( ) : array | Get the list of filters that get called when parsing a user agent | |
parse ( string $userAgentString = null ) : array | Parse a user agent string. |
Méthode | Description | |
---|---|---|
doParse ( string $userAgentString ) : array | Detect quickly informations from the user agent string | |
filterAndroid ( array &$userAgent ) | Android has a safari like signature | |
filterGoogleChrome ( array &$userAgent ) | Google chrome has a safari like signature | |
filterMsie ( array &$userAgent ) | MSIE does not always declare its engine | |
filterOperaVersion ( array &$userAgent ) | Opera 10.00 (and higher) version number is located at the end | |
filterSafariVersion ( array &$userAgent ) | Safari version is not encoded "normally" | |
filterYahoo ( array &$userAgent ) | Yahoo bot has a special user agent string | |
getKnownBrowserAliases ( ) : array | Get known browser aliases | |
getKnownBrowsers ( ) : array | Get known browsers | |
getKnownEngineAliases ( ) : array | Get known engines aliases | |
getKnownEngines ( ) : array | Get known engines | |
getKnownOperatingSystemAliases ( ) : array | Get known operating system aliases | |
getKnownOperatingSystems ( ) : array | Get known operating system |
public cleanUserAgentString ( string $userAgentString ) : string | ||
$userAgentString | string | the dirty user agent string |
Résultat | string | the clean user agent string |
protected filterAndroid ( array &$userAgent ) | ||
$userAgent | array |
protected filterGoogleChrome ( array &$userAgent ) | ||
$userAgent | array |
protected filterMsie ( array &$userAgent ) | ||
$userAgent | array |
protected filterOperaVersion ( array &$userAgent ) | ||
$userAgent | array |
protected filterSafariVersion ( array &$userAgent ) | ||
$userAgent | array |
protected filterYahoo ( array &$userAgent ) | ||
$userAgent | array |
public getFilters ( ) : array | ||
Résultat | array | list of valid callables |
protected getKnownBrowserAliases ( ) : array | ||
Résultat | array | the browser aliases |
protected getKnownBrowsers ( ) : array | ||
Résultat | array | the browsers |
protected getKnownEngineAliases ( ) : array | ||
Résultat | array | the engines aliases |
protected getKnownEngines ( ) : array | ||
Résultat | array | the engines |
protected getKnownOperatingSystemAliases ( ) : array | ||
Résultat | array | the operating system aliases |
protected getKnownOperatingSystems ( ) : array | ||
Résultat | array | the operating systems |