Difference between revisions of "JBrowser"
From Joomla! Documentation
m (→User contributed notes: moving preparation) |
m (moving preparation) |
||
Line 8: | Line 8: | ||
===Note=== | ===Note=== | ||
− | JBrowser is deprecated. [[JApplicationWebClient/12.1]] should be use instead. | + | JBrowser is deprecated. [[API17:JApplicationWebClient/12.1]] should be use instead. |
===Methods=== | ===Methods=== | ||
Line 18: | Line 18: | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::__construct | + | |[[API17:JBrowser::__construct|__construct]] |
|Create a browser instance (constructor). | |Create a browser instance (constructor). | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getAgentString | + | |[[API17:JBrowser::getAgentString|getAgentString]] |
|Return the full browser agent string. | |Return the full browser agent string. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getBrowser | + | |[[API17:JBrowser::getBrowser|getBrowser]] |
|Retrieve the current browser. | |Retrieve the current browser. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getFeature | + | |[[API17:JBrowser::getFeature|getFeature]] |
|Retrieve the current browser capability. | |Retrieve the current browser capability. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getHTTPProtocol | + | |[[API17:JBrowser::getHTTPProtocol|getHTTPProtocol]] |
|Returns the server protocol in use on the current server. | |Returns the server protocol in use on the current server. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getMajor | + | |[[API17:JBrowser::getMajor|getMajor]] |
|Retrieve the current browser's major version. | |Retrieve the current browser's major version. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getMinor | + | |[[API17:JBrowser::getMinor|getMinor]] |
|Retrieve the current browser's minor version. | |Retrieve the current browser's minor version. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getPlatform | + | |[[API17:JBrowser::getPlatform|getPlatform]] |
|Return the currently matched platform. | |Return the currently matched platform. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getQuirk | + | |[[API17:JBrowser::getQuirk|getQuirk]] |
|Retrieve unique behavior for the current browser. | |Retrieve unique behavior for the current browser. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::getVersion | + | |[[API17:JBrowser::getVersion|getVersion]] |
|Retrieve the current browser's version. | |Retrieve the current browser's version. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::hasFeature | + | |[[API17:JBrowser::hasFeature|hasFeature]] |
|Check the current browser capabilities. | |Check the current browser capabilities. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::hasQuirk | + | |[[API17:JBrowser::hasQuirk|hasQuirk]] |
|Check unique behavior for the current browser. | |Check unique behavior for the current browser. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::isBrowser | + | |[[API17:JBrowser::isBrowser|isBrowser]] |
|Determine if the given browser is the same as the current. | |Determine if the given browser is the same as the current. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::isMobile | + | |[[API17:JBrowser::isMobile|isMobile]] |
|Determines if the browser is mobile version or not. | |Determines if the browser is mobile version or not. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::isRobot | + | |[[API17:JBrowser::isRobot|isRobot]] |
|Determines if the browser is a robot or not. | |Determines if the browser is a robot or not. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::isSSLConnection | + | |[[API17:JBrowser::isSSLConnection|isSSLConnection]] |
|Determine if we are using a secure (SSL) connection. | |Determine if we are using a secure (SSL) connection. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::isViewable | + | |[[API17:JBrowser::isViewable|isViewable]] |
|Determines if a browser can display a given MIME type. | |Determines if a browser can display a given MIME type. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::match | + | |[[API17:JBrowser::match|match]] |
|Parses the user agent string and inititializes the object with all the known features and quirks for the given browser. | |Parses the user agent string and inititializes the object with all the known features and quirks for the given browser. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::setBrowser | + | |[[API17:JBrowser::setBrowser|setBrowser]] |
|Sets the current browser. | |Sets the current browser. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::setFeature | + | |[[API17:JBrowser::setFeature|setFeature]] |
|Set capabilities for the current browser. | |Set capabilities for the current browser. | ||
|- | |- | ||
|public | |public | ||
− | |[[JBrowser::setQuirk | + | |[[API17:JBrowser::setQuirk|setQuirk]] |
|Set unique behavior for the current browser. | |Set unique behavior for the current browser. | ||
|- | |- | ||
|public static | |public static | ||
− | |[[JBrowser::_sortMime | + | |[[API17:JBrowser::_sortMime|_sortMime]] |
| | | | ||
|- | |- | ||
|public static | |public static | ||
− | |[[JBrowser::getInstance | + | |[[API17:JBrowser::getInstance|getInstance]] |
|Returns the global Browser object, only creating it if it doesn't already exist. | |Returns the global Browser object, only creating it if it doesn't already exist. | ||
|- | |- | ||
|protected | |protected | ||
− | |[[JBrowser::_setPlatform | + | |[[API17:JBrowser::_setPlatform|_setPlatform]] |
|Match the platform of the browser. | |Match the platform of the browser. | ||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/environment/browser.php | * '''Defined in''' libraries/joomla/environment/browser.php | ||
− | * '''Extends''' [[JObject | + | * '''Extends''' [[API17:JObject|JObject]] |
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.environment.browser' );</source> | <source lang="php">jimport( 'joomla.environment.browser' );</source> | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JBrowser source code''' on [[jplatform:environment/browser.php|BitBucket]] | * {{JVer|11.1}} '''JBrowser source code''' on [[jplatform:environment/browser.php|BitBucket]] | ||
− | * {{JVer|11.1}} Subpackage [[Subpackage Environment | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage Environment|Environment]] |
− | * [[JBrowser|Other versions of JBrowser]] | + | * [[API17:JBrowser|Other versions of JBrowser]] |
{{SeeAlso:JBrowser}} | {{SeeAlso:JBrowser}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> |
Revision as of 19:45, 11 May 2013
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JBrowser[edit]
Description[edit]
Template:Description:JBrowser [Edit Descripton]
Note[edit]
JBrowser is deprecated. API17:JApplicationWebClient/12.1 should be use instead.
Methods[edit]
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[edit]
jimport( 'joomla.environment.browser' );
See also[edit]
- JBrowser source code on BitBucket
- Subpackage Environment
- Other versions of JBrowser
Template:SeeAlso:JBrowser [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />