Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
UASystem Class Reference

User agent detection. More...

Static Public Member Functions

static getBrowserComplete ()
 
static getBrowserName ()
 
static getBrowserVersion ()
 
static getPlatform ()
 

Data Fields

const BROWSERS =['MSIE'=>'Internet Explorer','Firefox'=>'Mozilla Firefox','Edg'=>'Microsoft Edge','OPR'=>'Opera','Chrome'=>'Google Chrome','Safari'=>'Apple Safari','Netscape'=>'Netscape']
 
const SYSTEMS =['linux'=>'linux','mac'=>'macintosh|mac os x','windows'=>'windows|win32']
 

Static Private Member Functions

static getBrowserInfos ()
 
static getPlatformFromUserAgent (string $userAgent)
 
static _getBrowser ()
 

Static Private Attributes

static $browserInfos
 

Detailed Description

User agent detection.

Ubiquity\utils\base$UASystem This class is part of Ubiquity

Author
jc
Version
1.0.0

Definition at line 15 of file UASystem.php.

Member Function Documentation

◆ _getBrowser()

static _getBrowser ( )
staticprivate

Definition at line 74 of file UASystem.php.

◆ getBrowserComplete()

static getBrowserComplete ( )
static

Definition at line 77 of file UASystem.php.

◆ getBrowserInfos()

static getBrowserInfos ( )
staticprivate

Definition at line 23 of file UASystem.php.

◆ getBrowserName()

static getBrowserName ( )
static

Definition at line 82 of file UASystem.php.

◆ getBrowserVersion()

static getBrowserVersion ( )
static

Definition at line 86 of file UASystem.php.

◆ getPlatform()

static getPlatform ( )
static

Definition at line 90 of file UASystem.php.

◆ getPlatformFromUserAgent()

static getPlatformFromUserAgent ( string  $userAgent)
staticprivate

Definition at line 65 of file UASystem.php.

Field Documentation

◆ $browserInfos

$browserInfos
staticprivate

Definition at line 21 of file UASystem.php.

◆ BROWSERS

const BROWSERS =['MSIE'=>'Internet Explorer','Firefox'=>'Mozilla Firefox','Edg'=>'Microsoft Edge','OPR'=>'Opera','Chrome'=>'Google Chrome','Safari'=>'Apple Safari','Netscape'=>'Netscape']

Definition at line 17 of file UASystem.php.

◆ SYSTEMS

const SYSTEMS =['linux'=>'linux','mac'=>'macintosh|mac os x','windows'=>'windows|win32']

Definition at line 19 of file UASystem.php.


The documentation for this class was generated from the following file: