Méthode | Description | |
---|---|---|
__construct ( $userAgent = "" ) | Class constructor | |
__toString ( ) : string | Returns a formatted string with a summary of the details of the browser. | |
getAolVersion ( ) : string | The version of AOL. | |
getBrowser ( ) : string | The name of the browser. All return types are from the class contants | |
getPlatform ( ) : string | The name of the platform. All return types are from the class contants | |
getUserAgent ( ) : string | Get the user agent value in use to determine the browser | |
getVersion ( ) : string | The version of the browser. | |
isAol ( ) : boolean | Is the browser from AOL? | |
isBrowser ( string $browserName ) : boolean | Check to see if the specific browser is valid | |
isChromeFrame ( ) : boolean | Used to determine if the browser is actually "chromeframe" | |
isFacebook ( ) : boolean | Is the browser from facebook? | |
isMobile ( ) : boolean | Is the browser from a mobile device? | |
isRobot ( ) : boolean | Is the browser from a robot (ex Slurp,GoogleBot)? | |
isTablet ( ) : boolean | Is the browser from a tablet device? | |
reset ( ) | Reset all properties | |
setAol ( $isAol ) | Set the browser to be from AOL | |
setAolVersion ( string $version ) | Set the version of AOL | |
setBrowser ( $browser ) | Set the name of the browser | |
setPlatform ( string $platform ) | Set the name of the platform | |
setUserAgent ( string $agent_string ) | Set the user agent value (the construction will use the HTTP header value - this will overwrite it) | |
setVersion ( string $version ) | Set the version of the browser |
Méthode | Description | |
---|---|---|
checkBrowserAmaya ( ) : boolean | Determine if the browser is Amaya or not (last updated 1.7) | |
checkBrowserAndroid ( ) : boolean | Determine if the browser is Android or not (last updated 1.7) | |
checkBrowserBingBot ( ) : boolean | Determine if the browser is the BingBot or not (last updated 1.9) | |
checkBrowserBlackBerry ( ) : boolean | Determine if the user is using a BlackBerry (last updated 1.7) | |
checkBrowserChrome ( ) : boolean | Determine if the browser is Chrome or not (last updated 1.7) | |
checkBrowserEdge ( ) : boolean | Determine if the browser is Edge or not | |
checkBrowserFirebird ( ) : boolean | Determine if the browser is Firebird or not (last updated 1.7) | |
checkBrowserFirefox ( ) : boolean | Determine if the browser is Firefox or not (last updated 1.7) | |
checkBrowserGaleon ( ) : boolean | Determine if the browser is Galeon or not (last updated 1.7) | |
checkBrowserGoogleBot ( ) : boolean | Determine if the browser is the GoogleBot or not (last updated 1.7) | |
checkBrowserIcab ( ) : boolean | Determine if the browser is iCab or not (last updated 1.7) | |
checkBrowserIceCat ( ) : boolean | Determine if the browser is Ice Cat or not (http://en.wikipedia.org/wiki/GNU_IceCat) (last updated 1.7) | |
checkBrowserIceweasel ( ) : boolean | Determine if the browser is Firefox or not (last updated 1.7) | |
checkBrowserInternetExplorer ( ) : boolean | Determine if the browser is Internet Explorer or not (last updated 1.7) | |
checkBrowserKonqueror ( ) : boolean | Determine if the browser is Konqueror or not (last updated 1.7) | |
checkBrowserLynx ( ) : boolean | Determine if the browser is Lynx or not (last updated 1.7) | |
checkBrowserMSNBot ( ) : boolean | Determine if the browser is the MSNBot or not (last updated 1.9) | |
checkBrowserMozilla ( ) : boolean | Determine if the browser is Mozilla or not (last updated 1.7) | |
checkBrowserNetPositive ( ) : boolean | Determine if the browser is NetPositive or not (last updated 1.7) | |
checkBrowserNetscapeNavigator9Plus ( ) : boolean | Determine if the browser is Netscape Navigator 9+ or not (last updated 1.7) NOTE: (http://browser.netscape.com/ - Official support ended on March 1st, 2008) | |
checkBrowserNokia ( ) : boolean | Determine if the browser is Nokia or not (last updated 1.7) | |
checkBrowserOmniWeb ( ) : boolean | Determine if the browser is OmniWeb or not (last updated 1.7) | |
checkBrowserOpera ( ) : boolean | Determine if the browser is Opera or not (last updated 1.7) | |
checkBrowserPhoenix ( ) : boolean | Determine if the browser is Phoenix or not (last updated 1.7) | |
checkBrowserPlayStation ( ) : boolean | Determine if the browser is a PlayStation | |
checkBrowserSafari ( ) : boolean | Determine if the browser is Safari or not (last updated 1.7) | |
checkBrowserShiretoko ( ) : boolean | Determine if the browser is Shiretoko or not (https://wiki.mozilla.org/Projects/shiretoko) (last updated 1.7) | |
checkBrowserSlurp ( ) : boolean | Determine if the browser is the Yahoo! Slurp Robot or not (last updated 1.7) | |
checkBrowserVivaldi ( ) : boolean | Determine if the browser is Vivaldi | |
checkBrowserW3CValidator ( ) : boolean | Determine if the browser is the W3C Validator or not (last updated 1.7) | |
checkBrowserWebTv ( ) : boolean | Determine if the browser is WebTv or not (last updated 1.7) | |
checkBrowseriPad ( ) : boolean | Determine if the browser is iPad or not (last updated 1.7) | |
checkBrowseriPhone ( ) : boolean | Determine if the browser is iPhone or not (last updated 1.7) | |
checkBrowseriPod ( ) : boolean | Determine if the browser is iPod or not (last updated 1.7) | |
checkBrowsers ( ) : boolean | Protected routine to determine the browser type | |
checkFacebookExternalHit ( ) : boolean | Detect if URL is loaded from FacebookExternalHit | |
checkForAol ( ) : boolean | Determine if the user is using an AOL User Agent (last updated 1.7) | |
checkForFacebookIos ( ) : boolean | Detect if URL is being loaded from internal Facebook browser | |
checkPlatform ( ) | Determine the user's platform (last updated 2.0) | |
determine ( ) | Protected routine to calculate and determine what the browser is in use (including platform) | |
getChromeVersionOnIos ( ) : boolean | Detect Version for the Chrome browser on iOS devices | |
getSafariVersionOnIos ( ) : boolean | Detect Version for the Safari browser on iOS devices | |
setFacebook ( boolean $value = true ) | Set the Browser to be a Facebook request | |
setMobile ( boolean $value = true ) | Set the Browser to be mobile | |
setRobot ( boolean $value = true ) | Set the Browser to be a robot | |
setTablet ( boolean $value = true ) | Set the Browser to be tablet |
public __toString ( ) : string | ||
Résultat | string | formatted string with a summary of the browser |
protected checkBrowserAmaya ( ) : boolean | ||
Résultat | boolean | True if the browser is Amaya otherwise false |
protected checkBrowserAndroid ( ) : boolean | ||
Résultat | boolean | True if the browser is Android otherwise false |
protected checkBrowserBingBot ( ) : boolean | ||
Résultat | boolean | True if the browser is the BingBot otherwise false |
protected checkBrowserBlackBerry ( ) : boolean | ||
Résultat | boolean | True if the browser is the BlackBerry browser otherwise false |
protected checkBrowserChrome ( ) : boolean | ||
Résultat | boolean | True if the browser is Chrome otherwise false |
protected checkBrowserEdge ( ) : boolean | ||
Résultat | boolean | True if the browser is Edge otherwise false |
protected checkBrowserFirebird ( ) : boolean | ||
Résultat | boolean | True if the browser is Firebird otherwise false |
protected checkBrowserFirefox ( ) : boolean | ||
Résultat | boolean | True if the browser is Firefox otherwise false |
protected checkBrowserGaleon ( ) : boolean | ||
Résultat | boolean | True if the browser is Galeon otherwise false |
protected checkBrowserGoogleBot ( ) : boolean | ||
Résultat | boolean | True if the browser is the GoogletBot otherwise false |
protected checkBrowserIcab ( ) : boolean | ||
Résultat | boolean | True if the browser is iCab otherwise false |
protected checkBrowserIceCat ( ) : boolean | ||
Résultat | boolean | True if the browser is Ice Cat otherwise false |
protected checkBrowserIceweasel ( ) : boolean | ||
Résultat | boolean | True if the browser is Firefox otherwise false |
protected checkBrowserInternetExplorer ( ) : boolean | ||
Résultat | boolean | True if the browser is Internet Explorer otherwise false |
protected checkBrowserKonqueror ( ) : boolean | ||
Résultat | boolean | True if the browser is Konqueror otherwise false |
protected checkBrowserLynx ( ) : boolean | ||
Résultat | boolean | True if the browser is Lynx otherwise false |
protected checkBrowserMSNBot ( ) : boolean | ||
Résultat | boolean | True if the browser is the MSNBot otherwise false |
protected checkBrowserMozilla ( ) : boolean | ||
Résultat | boolean | True if the browser is Mozilla otherwise false |
protected checkBrowserNetPositive ( ) : boolean | ||
Résultat | boolean | True if the browser is NetPositive otherwise false |
protected checkBrowserNokia ( ) : boolean | ||
Résultat | boolean | True if the browser is Nokia otherwise false |
protected checkBrowserOmniWeb ( ) : boolean | ||
Résultat | boolean | True if the browser is OmniWeb otherwise false |
protected checkBrowserOpera ( ) : boolean | ||
Résultat | boolean | True if the browser is Opera otherwise false |
protected checkBrowserPhoenix ( ) : boolean | ||
Résultat | boolean | True if the browser is Phoenix otherwise false |
protected checkBrowserPlayStation ( ) : boolean | ||
Résultat | boolean | True if the browser is PlayStation otherwise false |
protected checkBrowserSafari ( ) : boolean | ||
Résultat | boolean | True if the browser is Safari otherwise false |
protected checkBrowserShiretoko ( ) : boolean | ||
Résultat | boolean | True if the browser is Shiretoko otherwise false |
protected checkBrowserSlurp ( ) : boolean | ||
Résultat | boolean | True if the browser is the Yahoo! Slurp Robot otherwise false |
protected checkBrowserVivaldi ( ) : boolean | ||
Résultat | boolean | True if the browser is Vivaldi otherwise false |
protected checkBrowserW3CValidator ( ) : boolean | ||
Résultat | boolean | True if the browser is the W3C Validator otherwise false |
protected checkBrowserWebTv ( ) : boolean | ||
Résultat | boolean | True if the browser is WebTv otherwise false |
protected checkBrowseriPad ( ) : boolean | ||
Résultat | boolean | True if the browser is iPad otherwise false |
protected checkBrowseriPhone ( ) : boolean | ||
Résultat | boolean | True if the browser is iPhone otherwise false |
protected checkBrowseriPod ( ) : boolean | ||
Résultat | boolean | True if the browser is iPod otherwise false |
protected checkBrowsers ( ) : boolean | ||
Résultat | boolean | True if the browser was detected otherwise false |
protected checkFacebookExternalHit ( ) : boolean | ||
Résultat | boolean | True if it detects FacebookExternalHit otherwise false |
protected checkForAol ( ) : boolean | ||
Résultat | boolean | True if the browser is from AOL otherwise false |
protected checkForFacebookIos ( ) : boolean | ||
Résultat | boolean | True if it detects internal Facebook browser otherwise false |
protected checkPlatform ( ) |
protected determine ( ) |
public getAolVersion ( ) : string | ||
Résultat | string | Version of AOL (will only contain alpha-numeric characters and a period) |
public getBrowser ( ) : string | ||
Résultat | string | Name of the browser |
protected getChromeVersionOnIos ( ) : boolean | ||
Résultat | boolean | True if it detects the version correctly otherwise false |
public getPlatform ( ) : string | ||
Résultat | string | Name of the browser |
protected getSafariVersionOnIos ( ) : boolean | ||
Résultat | boolean | True if it detects the version correctly otherwise false |
public getUserAgent ( ) : string | ||
Résultat | string | The user agent from the HTTP header |
public getVersion ( ) : string | ||
Résultat | string | Version of the browser (will only contain alpha-numeric characters and a period) |
public isChromeFrame ( ) : boolean | ||
Résultat | boolean | True if the browser is using chromeframe |
public isFacebook ( ) : boolean | ||
Résultat | boolean | True if the browser is from facebook otherwise false |
public setAolVersion ( string $version ) | ||
$version | string | The version of AOL |
public setBrowser ( $browser ) | ||
$browser | string The name of the Browser |
protected setFacebook ( boolean $value = true ) | ||
$value | boolean | is the browser a robot or not |
public setPlatform ( string $platform ) | ||
$platform | string | The name of the Platform |
public setUserAgent ( string $agent_string ) | ||
$agent_string | string | The value for the User Agent |
public setVersion ( string $version ) | ||
$version | string | The version of the Browser |