JBrowser::getInstance
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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::getInstance[edit]
Description[edit]
Returns the global Browser object, only creating it if it doesn't already exist.
Template:Description:JBrowser::getInstance [Edit Descripton]
Synopsis[edit]
public static JBrowser::getInstance ($userAgent=null, $accept=null)
Parameter | Type | Default | Description |
---|---|---|---|
$userAgent | string | null | The browser string to parse. |
$accept | string | null | The HTTP_ACCEPT settings to use. |
Returns[edit]
The Browser object.
Defined in[edit]
libraries/joomla/environment/browser.php (line 200)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JBrowser::getInstance
Examples[edit]
<CodeExamplesForm />