Documentation

OsDetector
in package
implements DetectorInterface

Table of Contents

Interfaces

DetectorInterface

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
$os : Os
$userAgent : UserAgent
Return values
bool

detect()

Determine the user's operating system.

public static detect(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkAndroid()

Determine if the user's operating system is Android.

private static checkAndroid(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkBeOS()

Determine if the user's operating system is BeOS.

private static checkBeOS(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkBlackBerry()

Determine if the user's operating system is BlackBerry.

private static checkBlackBerry(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkChromeOs()

Determine if the user's operating system is Chrome OS.

private static checkChromeOs(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkFreeBSD()

Determine if the user's operating system is FreeBSD.

private static checkFreeBSD(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkIOS()

Determine if the user's operating system is iOS.

private static checkIOS(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkLinux()

Determine if the user's operating system is Linux.

private static checkLinux(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkNetBSD()

Determine if the user's operating system is NetBSD.

private static checkNetBSD(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkNokia()

Determine if the user's operating system is Nokia.

private static checkNokia(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkOpenBSD()

Determine if the user's operating system is OpenBSD.

private static checkOpenBSD(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkOpenSolaris()

Determine if the user's operating system is OpenSolaris.

private static checkOpenSolaris(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkOS2()

Determine if the user's operating system is OS2.

private static checkOS2(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkOSX()

Determine if the user's operating system is OS X.

private static checkOSX(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkSunOS()

Determine if the user's operating system is SunOS.

private static checkSunOS(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkSymbOS()

Determine if the user's operating system is SymbOS.

private static checkSymbOS(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkWindows()

Determine if the user's operating system is Windows.

private static checkWindows(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

checkWindowsPhone()

Determine if the user's operating system is Windows Phone.

private static checkWindowsPhone(Os $os, UserAgent $userAgent) : bool
Parameters
$os : Os
$userAgent : UserAgent
Return values
bool

        
On this page

Search results