API16

JBrowser/getQuirk: Difference between revisions

From Joomla! Documentation

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


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getQuirk
  category=getQuirk
  category=JBrowser
  category=JBrowser
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:20, 25 March 2017

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