Class

ezpMobileDeviceRegexpFilter

class ezpMobileDeviceRegexpFilter implements ezpMobileDeviceDetectFilterInterface

Default implementation of mobile device detect interface.

Methods

__construct()

Construct

process()

Processes the User Agent string and determines whether it is a mobile device or not Needs to set boolean value for see ezpMobileDeviceDetectFilterInterface::isMobileDevice() and optionally user agent alias see ezpMobileDeviceDetectFilterInterface::getUserAgentAlias()

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

Details

at line 48
public __construct()

Construct

at line 69
public process()

Processes the User Agent string and determines whether it is a mobile device or not Needs to set boolean value for see ezpMobileDeviceDetectFilterInterface::isMobileDevice() and optionally user agent alias see ezpMobileDeviceDetectFilterInterface::getUserAgentAlias()

at line 104
public redirect()

Handles redirection to the mobile optimized interface

at line 149
public bool isMobileDevice()

Returns true if current device is mobile

Return Value

bool

at line 159
public string getUserAgentAlias()

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

Return Value

string