eZPublishCommunityProject(LegacyStack)  2013.9
ezpMobileDeviceDetect Class Reference

ezpMobileDeviceDetect class implementation More...

Public Member Functions

 __construct (ezpMobileDeviceDetectFilterInterface $filter)
 Construct. More...
 
 getFilter ()
 Returns currently used mobile device detection filter. More...
 
 getUserAgentAlias ()
 Returns mobile User Agent alias defined in the site.ini. More...
 
 isMobileDevice ()
 Returns true if current device is mobile. More...
 
 process ()
 Processes the User Agent string and determines whether it is a mobile device or not. More...
 
 redirect ()
 Handles redirection to the mobile optimized interface. More...
 

Static Public Member Functions

static isEnabled ()
 Checks whether mobile device detection is enabled or not. More...
 

Protected Attributes

 $filter
 

Detailed Description

ezpMobileDeviceDetect class implementation

Constructor & Destructor Documentation

ezpMobileDeviceDetect::__construct ( ezpMobileDeviceDetectFilterInterface  $filter)

Construct.

Parameters
ezpMobileDeviceDetectFilterInterface$filter

Member Function Documentation

ezpMobileDeviceDetect::getFilter ( )

Returns currently used mobile device detection filter.

Returns
ezpMobileDeviceDetectFilterInterface
ezpMobileDeviceDetect::getUserAgentAlias ( )

Returns mobile User Agent alias defined in the site.ini.

[SiteAccessSettings].MobileUserAgentRegexps

Returns
string
static ezpMobileDeviceDetect::isEnabled ( )
static

Checks whether mobile device detection is enabled or not.

Returns
bool
ezpMobileDeviceDetect::isMobileDevice ( )

Returns true if current device is mobile.

Returns
bool
ezpMobileDeviceDetect::process ( )

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

ezpMobileDeviceDetect::redirect ( )

Handles redirection to the mobile optimized interface.

Member Data Documentation

ezpMobileDeviceDetect::$filter
protected

Referenced by __construct(), and getFilter().


The documentation for this class was generated from the following file: