eZPublish  4.7
ezpMobileDeviceRegexpFilter Class Reference

Default implementation of mobile device detect interface. More...

+ Inheritance diagram for ezpMobileDeviceRegexpFilter:
+ Collaboration diagram for ezpMobileDeviceRegexpFilter:

Public Member Functions

 __construct ()
 Construct. 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 Needs to set boolean value for. More...
 
 redirect ()
 Handles redirection to the mobile optimized interface. More...
 

Protected Attributes

 $httpAccept
 
 $httpUserAgent
 
 $isMobileDevice = false
 
 $userAgentAlias = ''
 

Detailed Description

Default implementation of mobile device detect interface.

Constructor & Destructor Documentation

ezpMobileDeviceRegexpFilter::__construct ( )

Construct.

Member Function Documentation

ezpMobileDeviceRegexpFilter::getUserAgentAlias ( )

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

[SiteAccessSettings].MobileUserAgentRegexps

Returns
string

Implements ezpMobileDeviceDetectFilterInterface.

ezpMobileDeviceRegexpFilter::isMobileDevice ( )

Returns true if current device is mobile.

Returns
bool

Implements ezpMobileDeviceDetectFilterInterface.

Referenced by process().

ezpMobileDeviceRegexpFilter::process ( )

Processes the User Agent string and determines whether it is a mobile device or not Needs to set boolean value for.

See Also
ezpMobileDeviceDetectFilterInterface::isMobileDevice() and optionally user agent alias
ezpMobileDeviceDetectFilterInterface::getUserAgentAlias()

Implements ezpMobileDeviceDetectFilterInterface.

ezpMobileDeviceRegexpFilter::redirect ( )

Handles redirection to the mobile optimized interface.

Implements ezpMobileDeviceDetectFilterInterface.

Member Data Documentation

ezpMobileDeviceRegexpFilter::$httpAccept
protected
ezpMobileDeviceRegexpFilter::$httpUserAgent
protected
ezpMobileDeviceRegexpFilter::$isMobileDevice = false
protected

Referenced by isMobileDevice().

ezpMobileDeviceRegexpFilter::$userAgentAlias = ''
protected

Referenced by getUserAgentAlias(), and process().


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