Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Probe.php
Go to the documentation of this file.
1 <?php
22 #require_once 'Zend/Http/UserAgent/AbstractDevice.php';
23 
34 {
40  protected static $_uaSignatures = array(
41  'witbe',
42  'netvigie',
43  );
44 
52  public static function match($userAgent, $server)
53  {
54  return self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures);
55  }
56 
57 
63  public function getType()
64  {
65  return 'probe';
66  }
67 
73  protected function _defineFeatures()
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  }
81 }
static match($userAgent, $server)
Definition: Probe.php:52
static _matchAgentAgainstSignatures($userAgent, $signatures)
setFeature($feature, $value=false, $group='')