eZ Publish Community Project (Legacy Stack) 2013.4
Class

ezpMobileDeviceDetect

class ezpMobileDeviceDetect

ezpMobileDeviceDetect class implementation

Methods

__construct(ezpMobileDeviceDetectFilterInterface $filter)

Construct

static  isEnabled()

Checks whether mobile device detection is enabled or not

process()

Processes the User Agent string and determines whether it is a mobile device or not

redirect()

Handles redirection to the mobile optimized interface

bool isMobileDevice()

Returns true if current device is mobile

string getUserAgentAlias()

Returns mobile User Agent alias defined in the site.ini.[SiteAccessSettings].MobileUserAgentRegexps

ezpMobileDeviceDetectFilterInterface getFilter()

Returns currently used mobile device detection filter

Details

at line 26
public __construct(ezpMobileDeviceDetectFilterInterface $filter)

Construct

at line 37
static public isEnabled()

Checks whether mobile device detection is enabled or not

at line 46
public process()

Processes the User Agent string and determines whether it is a mobile device or not

at line 55
public redirect()

Handles redirection to the mobile optimized interface

at line 65
public bool isMobileDevice()

Returns true if current device is mobile

Return Value

bool

at line 75
public string getUserAgentAlias()

Returns mobile User Agent alias defined in the site.ini.[SiteAccessSettings].MobileUserAgentRegexps

Return Value

string

at line 85
public ezpMobileDeviceDetectFilterInterface getFilter()

Returns currently used mobile device detection filter