JBrowser/setFeature: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 41: | Line 41: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=setFeature | category=setFeature | ||
category=JBrowser | category=JBrowser | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:20, 25 March 2017
Description
Set capabilities for the current browser.
<! removed transcluded page call, red link never existed >
Syntax
setFeature($feature, $value=true)
| Parameter Name | Default Value | Description |
|---|---|---|
| $feature | $feature The capability to set. | |
| $value | true | $value Special capability parameter. |
Defined in
libraries/joomla/environment/browser.php
Importing
jimport( 'joomla.environment.browser' );
Source Body
public function setFeature($feature, $value = true)
{
$this->_features[$feature] = $value;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples