JBrowser/isBrowser: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 40: | Line 40: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=isBrowser | category=isBrowser | ||
category=JBrowser | category=JBrowser | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 00:19, 25 March 2017
Description
Determine if the given browser is the same as the current.
<! removed transcluded page call, red link never existed >
Syntax
isBrowser($browser)
| Parameter Name | Default Value | Description |
|---|---|---|
| $browser | $browser The browser to check. |
Returns
boolean Is the given browser the same as the current?
Defined in
libraries/joomla/environment/browser.php
Importing
jimport( 'joomla.environment.browser' );
Source Body
function isBrowser($browser)
{
return ($this->_browser === $browser);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples