• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Browser::checkBrowsers() – Protected routine to determine the browser type

You appear to be a bot. Output may be restricted

Description

Protected routine to determine the browser type

Usage

$boolean = Browser::checkBrowsers();

Parameters

Returns

boolean True if the browser was detected otherwise false

Source

File name: easy-digital-downloads/includes/libraries/browser.php
Lines:

1 to 54 of 54
  function checkBrowsers() {
    return (
      // Well-known, well-used
      // Special Notes:
      // (1) Opera must be checked before FireFox due to the odd
      //     user agents used in some older versions of Opera
      // (2) WebTV is strapped onto Internet Explorer so we must
      //     check for WebTV before IE
      // (3) (deprecated) Galeon is based on Firefox and needs to be
      //     tested before Firefox is tested
      // (4) OmniWeb is based on Safari so OmniWeb check must occur
      //     before Safari
      // (5) Netscape 9+ is based on Firefox so Netscape checks
      //     before FireFox are necessary
      $this->checkBrowserWebTv() ||
      $this->checkBrowserInternetExplorer() ||
      $this->checkBrowserOpera() ||
      $this->checkBrowserGaleon() ||
      $this->checkBrowserNetscapeNavigator9Plus() ||
      $this->checkBrowserFirefox() ||
      $this->checkBrowserChrome() ||
      $this->checkBrowserOmniWeb() ||

      // Common mobile
      $this->checkBrowserAndroid() ||
      $this->checkBrowseriPad() ||
      $this->checkBrowseriPod() ||
      $this->checkBrowseriPhone() ||
      $this->checkBrowserBlackBerry() ||
      $this->checkBrowserNokia() ||

      // Common bots
      $this->checkBrowserGoogleBot() ||
      $this->checkBrowserMSNBot() ||
      $this->checkBrowserSlurp() ||

      // WebKit base check (post mobile and others)
      $this->checkBrowserSafari() ||

      // Everyone else
      $this->checkBrowserNetPositive() ||
      $this->checkBrowserFirebird() ||
      $this->checkBrowserKonqueror() ||
      $this->checkBrowserIcab() ||
      $this->checkBrowserPhoenix() ||
      $this->checkBrowserAmaya() ||
      $this->checkBrowserLynx() ||

      $this->checkBrowserShiretoko() ||
      $this->checkBrowserIceCat() ||
      $this->checkBrowserW3CValidator() ||
      $this->checkBrowserMozilla() /* Mozilla is such an open standard that you must check it last */
    );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th November 2019

Primary Sidebar

Information

Function name: Browser::checkBrowsers
Class ref: Browser
Plugin ref: Easy Digital Downloads
Version: 2.10.1
Sourcefile: includes/libraries/browser.php
File ref: includes/libraries/browser.php
Deprecated?: No
API Letters: B,C

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.7.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites