JBrowser/1.5
From Joomla! Documentation
< JBrowser(Difference between revisions)
(Bulk upload by Doxiki2) |
m (→See also: fixing link to API) |
||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} JBrowser== | ||
| + | ===Description=== | ||
| + | {{Description:JBrowser}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JBrowser|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JBrowser|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::__construct/1.5|__construct]] | |[[JBrowser::__construct/1.5|__construct]] | ||
|Create a browser instance (Constructor). | |Create a browser instance (Constructor). | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::_setPlatform/1.5|_setPlatform]] | |[[JBrowser::_setPlatform/1.5|_setPlatform]] | ||
|Match the platform of the browser. | |Match the platform of the browser. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getAgentString/1.5|getAgentString]] | |[[JBrowser::getAgentString/1.5|getAgentString]] | ||
|Return the full browser agent string. | |Return the full browser agent string. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getBrowser/1.5|getBrowser]] | |[[JBrowser::getBrowser/1.5|getBrowser]] | ||
|Retrieve the current browser. | |Retrieve the current browser. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getFeature/1.5|getFeature]] | |[[JBrowser::getFeature/1.5|getFeature]] | ||
|Retrieve the current browser capability. | |Retrieve the current browser capability. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getHTTPProtocol/1.5|getHTTPProtocol]] | |[[JBrowser::getHTTPProtocol/1.5|getHTTPProtocol]] | ||
|Returns the server protocol in use on the current server. | |Returns the server protocol in use on the current server. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getInstance/1.5|getInstance]] | |[[JBrowser::getInstance/1.5|getInstance]] | ||
|Returns a reference to the global Browser object, only creating it if it doesn't already exist. | |Returns a reference to the global Browser object, only creating it if it doesn't already exist. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getMajor/1.5|getMajor]] | |[[JBrowser::getMajor/1.5|getMajor]] | ||
|Retrieve the current browser's major version. | |Retrieve the current browser's major version. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getMinor/1.5|getMinor]] | |[[JBrowser::getMinor/1.5|getMinor]] | ||
|Retrieve the current browser's minor version. | |Retrieve the current browser's minor version. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getPlatform/1.5|getPlatform]] | |[[JBrowser::getPlatform/1.5|getPlatform]] | ||
|Return the currently matched platform. | |Return the currently matched platform. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getQuirk/1.5|getQuirk]] | |[[JBrowser::getQuirk/1.5|getQuirk]] | ||
|Retrieve unique behavior for the current browser. | |Retrieve unique behavior for the current browser. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::getVersion/1.5|getVersion]] | |[[JBrowser::getVersion/1.5|getVersion]] | ||
|Retrieve the current browser's version. | |Retrieve the current browser's version. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::hasFeature/1.5|hasFeature]] | |[[JBrowser::hasFeature/1.5|hasFeature]] | ||
|Check the current browser capabilities. | |Check the current browser capabilities. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::hasQuirk/1.5|hasQuirk]] | |[[JBrowser::hasQuirk/1.5|hasQuirk]] | ||
|Check unique behavior for the current browser. | |Check unique behavior for the current browser. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::isBrowser/1.5|isBrowser]] | |[[JBrowser::isBrowser/1.5|isBrowser]] | ||
|Determine if the given browser is the same as the current. | |Determine if the given browser is the same as the current. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::isRobot/1.5|isRobot]] | |[[JBrowser::isRobot/1.5|isRobot]] | ||
|Determines if the browser is a robot or not. | |Determines if the browser is a robot or not. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::isSSLConnection/1.5|isSSLConnection]] | |[[JBrowser::isSSLConnection/1.5|isSSLConnection]] | ||
|Determine if we are using a secure (SSL) connection. | |Determine if we are using a secure (SSL) connection. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::isViewable/1.5|isViewable]] | |[[JBrowser::isViewable/1.5|isViewable]] | ||
|Determines if a browser can display a given MIME type. | |Determines if a browser can display a given MIME type. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::match/1.5|match]] | |[[JBrowser::match/1.5|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 | ||
|[[JBrowser::setBrowser/1.5|setBrowser]] | |[[JBrowser::setBrowser/1.5|setBrowser]] | ||
|Sets the current browser. | |Sets the current browser. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::setFeature/1.5|setFeature]] | |[[JBrowser::setFeature/1.5|setFeature]] | ||
|Set capabilities for the current browser. | |Set capabilities for the current browser. | ||
|- | |- | ||
| + | |public | ||
|[[JBrowser::setQuirk/1.5|setQuirk]] | |[[JBrowser::setQuirk/1.5|setQuirk]] | ||
|Set unique behavior for the current browser. | |Set unique behavior for the current browser. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/environment/browser.php | ||
| + | * '''Extends''' [[JObject/1.5|JObject]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.environment.browser' );</source> | <source lang="php">jimport( 'joomla.environment.browser' );</source> | ||
===See also=== | ===See also=== | ||
| + | * {{JVer|1.5}} '''JBrowser''' on [http://api.joomla.org/1.5/Joomla-Framework/Environment/JBrowser.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JBrowser source code''' on [[jframework15:environment/browser.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Environment/1.5|Environment]] | ||
| + | * [[JBrowser|Other versions of JBrowser]] | ||
| + | {{SeeAlso:JBrowser}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JBrowser|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JBrowser|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 101: | Line 123: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JBrowser]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JBrowser]]</noinclude> | ||
Latest revision as of 13:04, 13 February 2013
[edit]
JBrowser
[edit] Description
Description:JBrowser [Edit Descripton]
[edit] Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Create a browser instance (Constructor). |
| public | _setPlatform | Match the platform of the browser. |
| 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 | getInstance | Returns a reference to the global Browser object, only creating it if it doesn't already exist. |
| 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 | 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. |
- Defined in libraries/joomla/environment/browser.php
- Extends JObject
[edit] Importing
jimport( 'joomla.environment.browser' );
[edit] See also
-
JBrowser on api.joomla.org
-
JBrowser source code on JoomlaCode
-
Subpackage Environment
- Other versions of JBrowser
SeeAlso:JBrowser [Edit See Also]
[edit] User contributed notes
<CodeExamplesForm />