API16

API16:JBrowser/getQuirk

From Joomla! Documentation

Revision as of 01:20, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Retrieve unique behavior for the current browser.


<! removed transcluded page call, red link never existed >

Syntax

getQuirk($quirk)
Parameter Name Default Value Description
$quirk $quirk The behavior to retrieve.

Returns

string The value for the requested behavior.

Defined in

libraries/joomla/environment/browser.php

Importing

jimport( 'joomla.environment.browser' );

Source Body

public function getQuirk($quirk)
{
        return isset($this->_quirks[$quirk])
                        ? $this->_quirks[$quirk]
                        : null;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples