OsDetector
in package
implements
DetectorInterface
Table of Contents
Interfaces
Methods
- checkMobileBrowsers() : bool
- Determine if the user's browser is on a mobile device.
- detect() : bool
- Determine the user's operating system.
- checkAndroid() : bool
- Determine if the user's operating system is Android.
- checkBeOS() : bool
- Determine if the user's operating system is BeOS.
- checkBlackBerry() : bool
- Determine if the user's operating system is BlackBerry.
- checkChromeOs() : bool
- Determine if the user's operating system is Chrome OS.
- checkFreeBSD() : bool
- Determine if the user's operating system is FreeBSD.
- checkIOS() : bool
- Determine if the user's operating system is iOS.
- checkLinux() : bool
- Determine if the user's operating system is Linux.
- checkNetBSD() : bool
- Determine if the user's operating system is NetBSD.
- checkNokia() : bool
- Determine if the user's operating system is Nokia.
- checkOpenBSD() : bool
- Determine if the user's operating system is OpenBSD.
- checkOpenSolaris() : bool
- Determine if the user's operating system is OpenSolaris.
- checkOS2() : bool
- Determine if the user's operating system is OS2.
- checkOSX() : bool
- Determine if the user's operating system is OS X.
- checkSunOS() : bool
- Determine if the user's operating system is SunOS.
- checkSymbOS() : bool
- Determine if the user's operating system is SymbOS.
- checkWindows() : bool
- Determine if the user's operating system is Windows.
- checkWindowsPhone() : bool
- Determine if the user's operating system is Windows Phone.
Methods
checkMobileBrowsers()
Determine if the user's browser is on a mobile device.
public
static checkMobileBrowsers(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
booldetect()
Determine the user's operating system.
public
static detect(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckAndroid()
Determine if the user's operating system is Android.
private
static checkAndroid(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckBeOS()
Determine if the user's operating system is BeOS.
private
static checkBeOS(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckBlackBerry()
Determine if the user's operating system is BlackBerry.
private
static checkBlackBerry(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckChromeOs()
Determine if the user's operating system is Chrome OS.
private
static checkChromeOs(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckFreeBSD()
Determine if the user's operating system is FreeBSD.
private
static checkFreeBSD(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckIOS()
Determine if the user's operating system is iOS.
private
static checkIOS(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckLinux()
Determine if the user's operating system is Linux.
private
static checkLinux(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckNetBSD()
Determine if the user's operating system is NetBSD.
private
static checkNetBSD(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckNokia()
Determine if the user's operating system is Nokia.
private
static checkNokia(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckOpenBSD()
Determine if the user's operating system is OpenBSD.
private
static checkOpenBSD(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckOpenSolaris()
Determine if the user's operating system is OpenSolaris.
private
static checkOpenSolaris(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckOS2()
Determine if the user's operating system is OS2.
private
static checkOS2(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckOSX()
Determine if the user's operating system is OS X.
private
static checkOSX(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckSunOS()
Determine if the user's operating system is SunOS.
private
static checkSunOS(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckSymbOS()
Determine if the user's operating system is SymbOS.
private
static checkSymbOS(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckWindows()
Determine if the user's operating system is Windows.
private
static checkWindows(Os $os, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckWindowsPhone()
Determine if the user's operating system is Windows Phone.
private
static checkWindowsPhone(Os $os, UserAgent $userAgent) : bool