API16

JBrowser/ construct: Difference between revisions

From Joomla! Documentation

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


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

Latest revision as of 01:19, 25 March 2017

Description

Create a browser instance (constructor).


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

Syntax

__construct($userAgent=null, $accept=null)
Parameter Name Default Value Description
$userAgent null $userAgent The browser string to parse.
$accept null $accept The HTTP_ACCEPT settings to use.

Defined in

libraries/joomla/environment/browser.php

Importing

jimport( 'joomla.environment.browser' );

Source Body

public function __construct($userAgent = null, $accept = null)
{
        $this->match($userAgent, $accept);
}


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

Examples

Code Examples