JBrowser/hasFeature: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Check the current browser capabilities. | Check the current browser capabilities. | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
| Line 37: | Line 35: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=hasFeature | category=hasFeature | ||
category=JBrowser | category=JBrowser | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 00:19, 25 March 2017
Description
Check the current browser capabilities.
<! removed transcluded page call, red link never existed >
Syntax
hasFeature($feature)
| Parameter Name | Default Value | Description |
|---|---|---|
| $feature | $feature The capability to check. |
Returns
boolean Does the browser have the capability set?
Defined in
libraries/joomla/environment/browser.php
Importing
jimport( 'joomla.environment.browser' );
Source Body
function hasFeature($feature) {
return !empty($this->_features[$feature]);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples