Difference between revisions of "JBrowser::hasFeature"
From Joomla! Documentation
(Layout updates) |
m (preparing for archive only) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Check the current browser capabilities. | Check the current browser capabilities. | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function hasFeature ($feature) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 25: | Line 22: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' boolean Does the browser have the capability set? | |
− | boolean Does the browser have the capability set? | + | * '''Defined''' on line 752 of libraries/joomla/environment/browser.php |
− | |||
− | libraries/joomla/environment/browser.php | ||
− | |||
− | |||
===See also=== | ===See also=== | ||
− | + | * {{JVer|11.1}} '''JBrowser::hasFeature source code''' on [[jplatform:environment/browser.php#cl-744|BitBucket]] | |
− | + | * {{JVer|11.1}} Class [[API17:JBrowser|JBrowser]] | |
− | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | |
− | * | + | * [[API17:JBrowser::hasFeature|Other versions of JBrowser::hasFeature]] |
− | * [[JBrowser::hasFeature|Other versions of | + | |
− | + | ||
− | ===Examples=== | + | ===User contributed notes=== |
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JBrowser::hasFeature | category=JBrowser::hasFeature | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 21:22, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JBrowser::hasFeature[edit]
Description[edit]
Check the current browser capabilities.
public function hasFeature ($feature)
Parameter | Type | Default | Description |
---|---|---|---|
$feature | string | The capability to check. |
- Returns boolean Does the browser have the capability set?
- Defined on line 752 of libraries/joomla/environment/browser.php
See also[edit]
- JBrowser::hasFeature source code on BitBucket
- Class JBrowser
- Subpackage Environment
- Other versions of JBrowser::hasFeature
User contributed notes[edit]
Code Examples[edit]