Support Joomla!

references:joomla.framework:environment:jbrowser

JBrowser [Review]

API Package Subpackage Class Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Environment Class JBrowser Reference JBrowser Never Work in Progress

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 module has many influences from the lib/Browser.php code in version 3 of Horde.

Methods

Method Description
__construct Create a browser instance (Constructor).
getAgentString Return the full browser agent string.
getBrowser Retrieve the current browser.
getFeature Retrieve the current browser capability.
getHTTPProtocol Returns the server protocol in use on the current server.
getInstance Returns a reference to the global Browser object, only creating it if it doesn’t already exist.<p>This method must be invoked as: <pre> $browser = &JBrowser::getInstance([$userAgent[, $accept]]);</pre></p>
getMajor Retrieve the current browser’s major version.
getMinor Retrieve the current browser’s minor version.
getPlatform Return the currently matched platform.
getQuirk Retrieve unique behavior for the current browser.
getVersion Retrieve the current browser’s version.
hasFeature Check the current browser capabilities.
hasQuirk Check unique behavior for the current browser.
isBrowser Determine if the given browser is the same as the current.
isRobot Determines if the browser is a robot or not.
isSSLConnection Determine if we are using a secure (SSL) connection.
isViewable Determines if a browser can display a given MIME type.
match Parses the user agent string and inititializes the object with all the known features and quirks for the given browser.
setBrowser Sets the current browser.
setFeature Set capabilities for the current browser.
setQuirk Set unique behavior for the current browser.


Discussion

Full name:
E-Mail:
 
references/joomla.framework/environment/jbrowser.txt (1280 views) · Last modified: 2007/09/22 02:48