getUserData

API Quick reference
Variable name: getUserData
CMS versions: 0.9.x + Evo
Variable type: array
Object parent:

API:getUserData

Description

array getUserData();

Returns an array of data relating to the current user's client browser.

Usage / Examples

$userBrowser = $modx->getUserData();
$browserVersion = $userBrowser['version'];

Notes

The extender uses version 1.21 of the phpSniff class to gather information about the user's client browser. PHP Client Sniffer

See the extender file for a list of available browser settings.

Function Source

function getUserData() {
include $this->config['base_path'] . "manager/includes/extenders/getUserData.extender.php";
return $tmpArray;
}

Suggest an edit to this page.