getUserData
Last edited by JP DeVries on Aug 9, 2013.
API:getUserData
API Quick reference
| Variable name: | getUserData |
| Modx versions: | Evolution |
| Variable type: | array |
| Object parent: | [DocumentParser|DocumentParser Object] |
| Variable name: | getUserData |
| Modx versions: | Evolution |
| Variable type: | array |
| Object parent: | [DocumentParser|DocumentParser Object] |
Description
array getUserData();
Returns an array of data relating to the current user's client browser.
Usage / Examples
$userBrowser = $modx->getUserData(); $browserVersion = $userBrowser['version'];
Related
Notes
The extender uses version 1.21 of the phpSniff class to gather information about the user's client browser. http://sourceforge.net/projects/phpsniff/
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 on GitHub (Requires GitHub account. Opens a new window/tab).