\BrowserHelper
Helper class for personalisation module.
Code borrowed from mobile module and https://github.com/serbanghita/Mobile-Detect/blob/master/Mobile_Detect.php
Synopsis
class BrowserHelper
{
- // members
- protected static array $tabletDevices = ;
- // methods
- public static void is_OSX()
- private static array mobile_index_list()
- public static void is_android()
- public static void is_iphone()
- public static void is_opera_mini()
- public static void is_blackberry()
- public static void is_palm()
- public static void is_windows()
- public static void is_win_phone()
- public static bool is_mobile()
- public static void is_tablet()
- public static void is_desktop()
- public static void is_firefox()
- public static void is_msie()
- public static void is_opera()
- public static void is_safari()
Members
protected
- $tabletDevices
Methods
private
- mobile_index_list() — List of known mobiles, found in the HTTP_USER_AGENT variable
public
- is_OSX()
- is_android()
- is_blackberry()
- is_desktop()
- is_firefox()
- is_iphone()
- is_mobile() — Is the current HTTP_USER_AGENT a known mobile device string?
- is_msie()
- is_opera()
- is_opera_mini()
- is_palm()
- is_safari()
- is_tablet()
- is_win_phone()
- is_windows()