Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes
Zend_Http_UserAgent_Probe Class Reference
Inheritance diagram for Zend_Http_UserAgent_Probe:
Zend_Http_UserAgent_AbstractDevice Zend_Http_UserAgent_Device

Public Member Functions

 getType ()
 
- Public Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
 __construct ($userAgent=null, array $server=array(), array $config=array())
 
 serialize ()
 
 unserialize ($serialized)
 
 getType ()
 
 hasFeature ($feature)
 
 getFeature ($feature)
 
 setFeature ($feature, $value=false, $group='')
 
 setGroup ($group, $feature)
 
 getGroup ($group)
 
 getAllFeatures ()
 
 getAllGroups ()
 
 getImageFormatSupport ()
 
 getMaxImageHeight ()
 
 getMaxImageWidth ()
 
 getPhysicalScreenHeight ()
 
 getPhysicalScreenWidth ()
 
 getPreferredMarkup ()
 
 getXhtmlSupportLevel ()
 
 hasFlashSupport ()
 
 hasPdfSupport ()
 
 hasPhoneNumber ()
 
 httpsSupport ()
 
 getBrowser ()
 
 getBrowserVersion ()
 
 getUserAgent ()
 
 getImages ()
 
 setBrowser ($browser)
 
 setBrowserVersion ($browserVersion)
 
 setUserAgent ($userAgent)
 
 setImages ($_images)
 

Static Public Member Functions

static match ($userAgent, $server)
 
- Static Public Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
static extractFromUserAgent ($userAgent)
 

Protected Member Functions

 _defineFeatures ()
 
- Protected Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
 _restoreFromArray (array $spec)
 
 _defineFeatures ()
 
 _getDefaultFeatures ()
 
 _loadFeaturesAdapter ()
 

Static Protected Attributes

static $_uaSignatures
 

Additional Inherited Members

- Static Protected Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
static _matchAgentAgainstSignatures ($userAgent, $signatures)
 
- Protected Attributes inherited from Zend_Http_UserAgent_AbstractDevice
 $_browser = ''
 
 $_browserVersion = ''
 
 $_config
 
 $_userAgent
 
 $_server
 
 $_images
 
 $_aFeatures = array()
 
 $_aGroup = array()
 

Detailed Description

Definition at line 33 of file Probe.php.

Member Function Documentation

◆ _defineFeatures()

_defineFeatures ( )
protected

Look for features

Returns
string

Definition at line 73 of file Probe.php.

74  {
75  $this->setFeature('images', false, 'product_capability');
76  $this->setFeature('iframes', false, 'product_capability');
77  $this->setFeature('frames', false, 'product_capability');
78  $this->setFeature('javascript', false, 'product_capability');
79  return parent::_defineFeatures();
80  }
setFeature($feature, $value=false, $group='')

◆ getType()

getType ( )

Gives the current browser type

Returns
string

Definition at line 63 of file Probe.php.

64  {
65  return 'probe';
66  }

◆ match()

static match (   $userAgent,
  $server 
)
static

Comparison of the UserAgent chain and User Agent signatures

Parameters
string$userAgentUser Agent chain
array$server$_SERVER like param
Returns
bool

Implements Zend_Http_UserAgent_Device.

Definition at line 52 of file Probe.php.

53  {
54  return self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures);
55  }
static _matchAgentAgainstSignatures($userAgent, $signatures)

Field Documentation

◆ $_uaSignatures

$_uaSignatures
staticprotected
Initial value:
= array(
'witbe',
'netvigie',
)

Definition at line 40 of file Probe.php.


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