Actions

API17

Difference between revisions of "JBrowser::getInstance"

From Joomla! Documentation

(Layout updates)
m (moving preparation)
 
(3 intermediate revisions by 2 users not shown)
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)
+
** [[API17:JApplication::redirect|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 [[API17:JBrowser|JBrowser]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]]
 +
* [[API17: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:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 18:45, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JBrowser::getInstance

Description

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

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

SeeAlso:JBrowser::getInstance [Edit See Also]

User contributed notes

<CodeExamplesForm />