Class JBrowser
Browser class, provides capability information about the current web client.
Browser identification is performed by examining the HTTP_USER_AGENT environment variable provided by the web server.
This class has many influences from the lib/Browser.php code in version 3 of Horde by Chuck Hagenbuch and Jon Parise.
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 11.1
Located at joomla/environment/browser.php
Methods summary
public
|
#
__construct( string $userAgent = null, string $accept = null )
Create a browser instance (constructor). |
public static
|
#
getInstance( string $userAgent = null, string $accept = null )
Returns the global Browser object, only creating it if it doesn't already exist. |
public
|
|
protected
|
|
public
string
|
|
protected
|
#
identifyBrowserVersion( )
Set browser version, not by engine version Fallback to use when no other method identify the engine version |
public
|
|
public
string
|
|
public
integer
|
|
public
integer
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
Magic methods summary
Properties summary
protected
integer
|
$majorVersion |
#
Major version number |
protected
integer
|
$minorVersion |
#
Minor version number |
protected
string
|
$browser |
#
Browser name. |
protected
string
|
$agent |
#
Full user agent string. |
protected
string
|
$lowerAgent |
#
Lower-case user agent string |
protected
string
|
$accept |
#
HTTP_ACCEPT string. |
protected
array
|
$acceptParsed |
#
Parsed HTTP_ACCEPT string |
protected
string
|
$platform |
#
Platform the browser is running on |
protected
array
|
$robots |
#
Known robots. |
protected
boolean
|
$mobile |
#
Is this a mobile browser? |
protected
array
|
$images |
#
List of viewable image MIME subtypes. This list of viewable images works for IE and Netscape/Mozilla. |
protected static
array
|
$instances |
#
JBrowser instances container. |