Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Offline.php
Go to the documentation of this file.
1 <?php
22 #require_once 'Zend/Http/UserAgent/Desktop.php';
23 
34 {
40  protected static $_uaSignatures = array(
41  'wget',
42  'webzip',
43  'webcopier',
44  'downloader',
45  'superbot',
46  'offline',
47  );
48 
56  public static function match($userAgent, $server)
57  {
58  return self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures);
59  }
60 
66  public function getType()
67  {
68  return 'offline';
69  }
70 }
static match($userAgent, $server)
Definition: Offline.php:56
static _matchAgentAgainstSignatures($userAgent, $signatures)