Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions
Zend_Http_UserAgent_Device Interface Reference
Inheritance diagram for Zend_Http_UserAgent_Device:
Zend_Http_UserAgent_AbstractDevice Zend_Http_UserAgent_Bot Zend_Http_UserAgent_Desktop Zend_Http_UserAgent_Feed Zend_Http_UserAgent_Mobile Zend_Http_UserAgent_Probe Zend_Http_UserAgent_Spam Zend_Http_UserAgent_Text Zend_Http_UserAgent_Checker Zend_Http_UserAgent_Console Zend_Http_UserAgent_Email Zend_Http_UserAgent_Offline Zend_Http_UserAgent_Validator

Public Member Functions

 __construct ($userAgent=null, array $server=array(), array $config=array())
 
 getAllFeatures ()
 
 getAllGroups ()
 
 hasFeature ($feature)
 
 getFeature ($feature)
 
 getBrowser ()
 
 getBrowserVersion ()
 
 getGroup ($group)
 
 getImageFormatSupport ()
 
 getImages ()
 
 getMaxImageHeight ()
 
 getMaxImageWidth ()
 
 getPhysicalScreenHeight ()
 
 getPhysicalScreenWidth ()
 
 getPreferredMarkup ()
 
 getUserAgent ()
 
 getXhtmlSupportLevel ()
 
 hasFlashSupport ()
 
 hasPdfSupport ()
 
 hasPhoneNumber ()
 
 httpsSupport ()
 

Static Public Member Functions

static match ($userAgent, $server)
 

Detailed Description

Definition at line 31 of file Device.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $userAgent = null,
array  $server = array(),
array  $config = array() 
)

Constructor

Allows injecting user agent, server array, and/or config array. If an array is provided for the first argument, the assumption should be that the device object is being seeded with cached values from serialization.

Parameters
null | string | array$userAgent
array$server
array$config
Returns
void

Implemented in Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_AbstractDevice.

Member Function Documentation

◆ getAllFeatures()

getAllFeatures ( )

Get all browser/device features

Returns
array

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ getAllGroups()

getAllGroups ( )

Get all of the browser/device's features' groups

Returns
void

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ getBrowser()

getBrowser ( )

Get the browser type

Returns
string

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ getBrowserVersion()

getBrowserVersion ( )

Retrurn the browser version

Returns
string

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ getFeature()

getFeature (   $feature)

Get the value of a specific device feature

Parameters
string$feature
Returns
mixed

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ getGroup()

getGroup (   $group)

Get an array of features associated with a group

Parameters
string$group
Returns
array

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ getImageFormatSupport()

getImageFormatSupport ( )

Retrieve image format support

Returns
array

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

◆ getImages()

getImages ( )

Get image types

Returns
array

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ getMaxImageHeight()

getMaxImageHeight ( )

Get the maximum image height supported by this device

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

◆ getMaxImageWidth()

getMaxImageWidth ( )

Get the maximum image width supported by this device

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

◆ getPhysicalScreenHeight()

getPhysicalScreenHeight ( )

Get the physical screen height of this device

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

◆ getPhysicalScreenWidth()

getPhysicalScreenWidth ( )

Get the physical screen width of this device

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

◆ getPreferredMarkup()

getPreferredMarkup ( )

Get the preferred markup type

Returns
string

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

◆ getUserAgent()

getUserAgent ( )

Get the user agent string

Returns
string

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ getXhtmlSupportLevel()

getXhtmlSupportLevel ( )

Get supported X/HTML version

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

◆ hasFeature()

hasFeature (   $feature)

Whether or not the device has a given feature

Parameters
string$feature
Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice.

◆ hasFlashSupport()

hasFlashSupport ( )

Does the device support Flash?

Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

◆ hasPdfSupport()

hasPdfSupport ( )

Does the device support PDF?

Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

◆ hasPhoneNumber()

hasPhoneNumber ( )

Does the device have a phone number associated with it?

Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

◆ httpsSupport()

httpsSupport ( )

Does the device support HTTPS?

Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

◆ match()

static match (   $userAgent,
  $server 
)
static

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