API15

API15:JBrowser/ construct

From Joomla! Documentation

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

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


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

Examples

Code Examples