API15

JBrowser/hasFeature: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Check the current browser capabilities. <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>[[Description:JBrowser/hasFeature|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JBrowser/hasFeature}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 38: Line 38:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JBrowser/hasFeature|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JBrowser/hasFeature}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
Line 53: Line 53:
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Revision as of 13:45, 12 May 2013

Description

Check the current browser capabilities.

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />