API15

JBrowser/hasFeature: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 39: Line 39:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=hasFeature
  category=hasFeature
  category=JBrowser
  category=JBrowser
  category=CodeExample
  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