JBrowser/getFeature: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Retrieve the current browser capability.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowi... |
m removing red link to edit, no existant pages |
||
| Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 40: | Line 40: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 55: | Line 55: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API15]] | |||
Revision as of 13:44, 12 May 2013
Description
Retrieve the current browser capability.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
getFeature($feature)
| Parameter Name | Default Value | Description |
|---|---|---|
| $feature | $feature The capability to retrieve. |
Returns
string The value of the requested capability.
Defined in
libraries/joomla/environment/browser.php
Importing
jimport( 'joomla.environment.browser' );
Source Body
function getFeature($feature) {
return isset($this->_features[$feature])
? $this->_features[$feature]
: null;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />