API17

Difference between revisions of "JBrowser::getInstance"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JBrowser::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JBrowser::getInstance|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JBrowser::getInstance ($userAgent=null, $accept=null)
+
public static function getInstance (
 +
        $userAgent=null
 +
        $accept=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 30: Line 32:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' The Browser object.
The Browser object.
+
* '''Defined''' on line 200 of libraries/joomla/environment/browser.php
===Defined in===
+
* '''Referenced by'''
libraries/joomla/environment/browser.php (line 200)
+
** [[JApplication::redirect/11.1|JApplication::redirect]]
* see source code in [[jplatform:environment/browser.php#cl-200|BitBucket]]
 
===Referenced by===
 
* [[JApplication::redirect/11.1|JApplication::redirect]]
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JBrowser::getInstance source code''' on [[jplatform:environment/browser.php#cl-192|BitBucket]]
 +
* {{JVer|11.1}} Class [[JBrowser/11.1|JBrowser]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Environment/11.1|Environment]]
 +
* [[JBrowser::getInstance|Other versions of JBrowser::getInstance]]
 +
{{SeeAlso:JBrowser::getInstance}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JBrowser::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JBrowser::getInstance|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JBrowser/11.1|JBrowser]]
+
===User contributed notes===
* [[JBrowser::getInstance|Other versions of this method]]
 
{{SeeAlso:JBrowser::getInstance}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 52: Line 53:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JBrowser]][[Category:JBrowser::getInstance]]</noinclude>
 
<noinclude>[[Category:JBrowser]][[Category:JBrowser::getInstance]]</noinclude>

Revision as of 20:11, 27 April 2011

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::getInstance[edit]

Description[edit]

Returns the global Browser object, only creating it if it doesn't already exist.

Template:Description:JBrowser::getInstance [Edit Descripton]

public static function 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 The Browser object.
  • Defined on line 200 of libraries/joomla/environment/browser.php
  • Referenced by

See also[edit]

Template:SeeAlso:JBrowser::getInstance [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />