Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Checker.php
Go to the documentation of this file.
1 <?php
21 #require_once 'Zend/Http/UserAgent/Desktop.php';
22 
34 {
35 
41  protected static $_uaSignatures = array(
42  'abilogic',
43  'checklink',
44  'checker',
45  'linksmanager',
46  'mojoo',
47  'notifixious',
48  'ploetz',
49  'zeller',
50  'sitebar',
51  'xenu',
52  'sleuth',
53  );
54 
62  public static function match($userAgent, $server)
63  {
64  return self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures);
65  }
66 
72  public function getType()
73  {
74  return 'bot';
75  }
76 }
static match($userAgent, $server)
Definition: Checker.php:62
static _matchAgentAgainstSignatures($userAgent, $signatures)