Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes
Zend_Http_UserAgent_Text Class Reference
Inheritance diagram for Zend_Http_UserAgent_Text:
Zend_Http_UserAgent_AbstractDevice Zend_Http_UserAgent_Device

Public Member Functions

 getType ()
 
 getImageFormatSupport ()
 
 getPreferredMarkup ()
 
 getXhtmlSupportLevel ()
 
 hasFlashSupport ()
 
 hasPdfSupport ()
 
- 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)
 

Protected Member Functions

 _defineFeatures ()
 
- Protected Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
 _restoreFromArray (array $spec)
 
 _defineFeatures ()
 
 _getDefaultFeatures ()
 
 _loadFeaturesAdapter ()
 

Static Protected Attributes

static $_uaSignatures
 

Additional Inherited Members

- 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 Text.php.

Member Function Documentation

◆ _defineFeatures()

_defineFeatures ( )
protected

Look for features

Returns
string

Definition at line 73 of file Text.php.

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  }
setFeature($feature, $value=false, $group='')

◆ getImageFormatSupport()

getImageFormatSupport ( )

Determine supported image formats

Returns
null

Implements Zend_Http_UserAgent_Device.

Definition at line 87 of file Text.php.

88  {
89  return null;
90  }

◆ getPreferredMarkup()

getPreferredMarkup ( )

Get preferred markup format

Returns
string

Implements Zend_Http_UserAgent_Device.

Definition at line 97 of file Text.php.

98  {
99  return 'xhtml';
100  }

◆ getType()

getType ( )

Gives the current browser type

Returns
string

Definition at line 63 of file Text.php.

64  {
65  return 'text';
66  }

◆ getXhtmlSupportLevel()

getXhtmlSupportLevel ( )

Get supported X/HTML markup level

Returns
int

Implements Zend_Http_UserAgent_Device.

Definition at line 107 of file Text.php.

108  {
109  return 1;
110  }

◆ hasFlashSupport()

hasFlashSupport ( )

Does the device support Flash?

Returns
bool

Implements Zend_Http_UserAgent_Device.

Definition at line 117 of file Text.php.

118  {
119 
120  return false;
121  }

◆ hasPdfSupport()

hasPdfSupport ( )

Does the device support PDF?

Returns
bool

Implements Zend_Http_UserAgent_Device.

Definition at line 128 of file Text.php.

129  {
130  return false;
131  }

◆ match()

static match (   $userAgent,
  $server 
)
static

Comparison of the UserAgent chain and User Agent signatures

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

Implements Zend_Http_UserAgent_Device.

Definition at line 53 of file Text.php.

54  {
55  return self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures);
56  }
static _matchAgentAgainstSignatures($userAgent, $signatures)

Field Documentation

◆ $_uaSignatures

$_uaSignatures
staticprotected
Initial value:
= array(
'lynx',
'retawq',
'w3m',
)

Definition at line 40 of file Text.php.


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