Actions

API15

Difference between revisions of "JBrowser"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JBrowser}} ===Defined in=== lib...)
 
 
Line 77: Line 77:
 
|Determine if we are using a secure (SSL) connection.
 
|Determine if we are using a secure (SSL) connection.
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.environment.browser' );</source>
 
<source lang="php">jimport( 'joomla.environment.browser' );</source>

Latest revision as of 12:34, 25 March 2010

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] Description:JBrowser

Contents

Defined in

libraries/joomla/environment/browser.php

Methods

Method name Description
__construct Create a browser instance (Constructor).
getInstance Returns a reference to the global Browser object, only creating it if it doesn't already exist.
match Parses the user agent string and inititializes the object with all the known features and quirks for the given browser.
getPlatform Return the currently matched platform.
setBrowser Sets the current browser.
getBrowser Retrieve the current browser.
getMajor Retrieve the current browser's major version.
getMinor Retrieve the current browser's minor version. integer The current browser's minor version.
getVersion Retrieve the current browser's version. string The current browser's version.
getAgentString Return the full browser agent string.
getHTTPProtocol Returns the server protocol in use on the current server.
setQuirk Set unique behavior for the current browser.
hasQuirk Check unique behavior for the current browser.
getQuirk Retrieve unique behavior for the current browser.
setFeature Set capabilities for the current browser.
hasFeature Check the current browser capabilities.
getFeature Retrieve the current browser capability.
isViewable Determines if a browser can display a given MIME type.
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.

Importing

jimport( 'joomla.environment.browser' );

[Edit See Also] SeeAlso:JBrowser

Examples

<CodeExamplesForm />