API17

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/11.1|__construct]]
+
|[[API17:JBrowser::__construct|__construct]]
 
|Create a browser instance (constructor).  
 
|Create a browser instance (constructor).  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::getAgentString/11.1|getAgentString]]
+
|[[API17:JBrowser::getAgentString|getAgentString]]
 
|Return the full browser agent string.  
 
|Return the full browser agent string.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::getBrowser/11.1|getBrowser]]
+
|[[API17:JBrowser::getBrowser|getBrowser]]
 
|Retrieve the current browser.  
 
|Retrieve the current browser.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::getFeature/11.1|getFeature]]
+
|[[API17:JBrowser::getFeature|getFeature]]
 
|Retrieve the current browser capability.  
 
|Retrieve the current browser capability.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::getHTTPProtocol/11.1|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/11.1|getMajor]]
+
|[[API17:JBrowser::getMajor|getMajor]]
 
|Retrieve the current browser's major version.  
 
|Retrieve the current browser's major version.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::getMinor/11.1|getMinor]]
+
|[[API17:JBrowser::getMinor|getMinor]]
 
|Retrieve the current browser's minor version.  
 
|Retrieve the current browser's minor version.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::getPlatform/11.1|getPlatform]]
+
|[[API17:JBrowser::getPlatform|getPlatform]]
 
|Return the currently matched platform.  
 
|Return the currently matched platform.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::getQuirk/11.1|getQuirk]]
+
|[[API17:JBrowser::getQuirk|getQuirk]]
 
|Retrieve unique behavior for the current browser.  
 
|Retrieve unique behavior for the current browser.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::getVersion/11.1|getVersion]]
+
|[[API17:JBrowser::getVersion|getVersion]]
 
|Retrieve the current browser's version.  
 
|Retrieve the current browser's version.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::hasFeature/11.1|hasFeature]]
+
|[[API17:JBrowser::hasFeature|hasFeature]]
 
|Check the current browser capabilities.  
 
|Check the current browser capabilities.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::hasQuirk/11.1|hasQuirk]]
+
|[[API17:JBrowser::hasQuirk|hasQuirk]]
 
|Check unique behavior for the current browser.  
 
|Check unique behavior for the current browser.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::isBrowser/11.1|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/11.1|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/11.1|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/11.1|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/11.1|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/11.1|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/11.1|setBrowser]]
+
|[[API17:JBrowser::setBrowser|setBrowser]]
 
|Sets the current browser.  
 
|Sets the current browser.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::setFeature/11.1|setFeature]]
+
|[[API17:JBrowser::setFeature|setFeature]]
 
|Set capabilities for the current browser.  
 
|Set capabilities for the current browser.  
 
|-
 
|-
 
|public  
 
|public  
|[[JBrowser::setQuirk/11.1|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/11.1|_sortMime]]
+
|[[API17:JBrowser::_sortMime|_sortMime]]
 
|
 
|
 
|-
 
|-
 
|public static  
 
|public static  
|[[JBrowser::getInstance/11.1|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/11.1|_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/11.1|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/11.1|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.

Joomla 11.1 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]

Template:SeeAlso:JBrowser [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />