Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions | Static Protected Attributes
Zend_Http_UserAgent_Bot Class Reference
Inheritance diagram for Zend_Http_UserAgent_Bot:
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)
 

Static Protected Attributes

static $_uaSignatures
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
 _restoreFromArray (array $spec)
 
 _defineFeatures ()
 
 _getDefaultFeatures ()
 
 _loadFeaturesAdapter ()
 
- 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 Bot.php.

Member Function Documentation

◆ getType()

getType ( )

Gives the current browser type

Returns
string

Definition at line 125 of file Bot.php.

126  {
127  return 'bot';
128  }

◆ match()

static match (   $userAgent,
  $server 
)
static

Comparison of the UserAgent chain and browser signatures

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

Implements Zend_Http_UserAgent_Device.

Definition at line 115 of file Bot.php.

116  {
117  return self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures);
118  }
static _matchAgentAgainstSignatures($userAgent, $signatures)

Field Documentation

◆ $_uaSignatures

$_uaSignatures
staticprotected

Definition at line 41 of file Bot.php.


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