Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Spam.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  '',
42  );
43 
51  public static function match($userAgent, $server)
52  {
53  return self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures);
54  }
55 
61  public function getType()
62  {
63  return 'spam';
64  }
65 
71  protected function _defineFeatures()
72  {
73  $this->setFeature('images', false, 'product_capability');
74  $this->setFeature('iframes', false, 'product_capability');
75  $this->setFeature('frames', false, 'product_capability');
76  $this->setFeature('javascript', false, 'product_capability');
77  return parent::_defineFeatures();
78  }
79 }
static match($userAgent, $server)
Definition: Spam.php:51
static _matchAgentAgainstSignatures($userAgent, $signatures)
setFeature($feature, $value=false, $group='')