API17:JBrowser
From Joomla! Documentation
(Difference between revisions)
m (→User contributed notes: bad link repair) |
|||
| (One intermediate revision by one user not shown) | |||
| Line 8: | Line 8: | ||
===Note=== | ===Note=== | ||
| − | JBrowser is deprecated | + | JBrowser is deprecated. [[JApplicationWebClient/12.1]] should be use instead. |
===Methods=== | ===Methods=== | ||
| Line 137: | Line 137: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
| − | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JBrowser]]</noinclude> | + | <noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JBrowser]]</noinclude> |
Revision as of 13:28, 29 August 2012
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.
JBrowser
Description
Description:JBrowser [Edit Descripton]
Note
JBrowser is deprecated. JApplicationWebClient/12.1 should be use instead.
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Create a browser instance (constructor). |
| public | getAgentString | Return the full browser agent string. |
| public | getBrowser | Retrieve the current browser. |
| public | getFeature | Retrieve the current browser capability. |
| public | getHTTPProtocol | Returns the server protocol in use on the current server. |
| public | getMajor | Retrieve the current browser's major version. |
| public | getMinor | Retrieve the current browser's minor version. |
| public | getPlatform | Return the currently matched platform. |
| public | getQuirk | Retrieve unique behavior for the current browser. |
| public | getVersion | Retrieve the current browser's version. |
| public | hasFeature | Check the current browser capabilities. |
| public | hasQuirk | Check unique behavior for the current browser. |
| public | isBrowser | Determine if the given browser is the same as the current. |
| public | isMobile | Determines if the browser is mobile version or not. |
| public | isRobot | Determines if the browser is a robot or not. |
| public | isSSLConnection | Determine if we are using a secure (SSL) connection. |
| public | isViewable | Determines if a browser can display a given MIME type. |
| public | match | Parses the user agent string and inititializes the object with all the known features and quirks for the given browser. |
| public | setBrowser | Sets the current browser. |
| public | setFeature | Set capabilities for the current browser. |
| public | setQuirk | Set unique behavior for the current browser. |
| public static | _sortMime | |
| public static | getInstance | Returns the global Browser object, only creating it if it doesn't already exist. |
| protected | _setPlatform | Match the platform of the browser. |
- Defined in libraries/joomla/environment/browser.php
- Extends JObject
Importing
jimport( 'joomla.environment.browser' );
See also
-
JBrowser source code on BitBucket
-
Subpackage Environment
- Other versions of JBrowser
SeeAlso:JBrowser [Edit See Also]
User contributed notes
<CodeExamplesForm />
