\Zend_Http_UserAgent_Text
Text browser type matcher
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Http_UserAgent_Text
extends Zend_Http_UserAgent_AbstractDevice
{
- // members
- protected static array $_uaSignatures = ;
- // Inherited members from Zend_Http_UserAgent_AbstractDevice
- protected string $_browser;
- protected string $_browserVersion;
- protected $_config;
- protected $_userAgent;
- protected $_server;
- protected array $_images;
- protected array $_aFeatures;
- protected array $_aGroup;
- // methods
- public static bool match()
- public string getType()
- protected string _defineFeatures()
- public null getImageFormatSupport()
- public string getPreferredMarkup()
- public int getXhtmlSupportLevel()
- public bool hasFlashSupport()
- public bool hasPdfSupport()
- // Inherited methods from Zend_Http_UserAgent_AbstractDevice
- public void __construct()
- public string serialize()
- public void unserialize()
- protected void _restoreFromArray()
- protected array|null _defineFeatures()
- public abstract string getType()
- public bool hasFeature()
- public string|null getFeature()
- public Zend_Http_UserAgent_AbstractDevice setFeature()
- public Zend_Http_UserAgent_AbstractDevice setGroup()
- public array getGroup()
- public array getAllFeatures()
- public array getAllGroups()
- protected void _getDefaultFeatures()
- public static array extractFromUserAgent()
- protected array _loadFeaturesAdapter()
- public array getImageFormatSupport()
- public int getMaxImageHeight()
- public int getMaxImageWidth()
- public int getPhysicalScreenHeight()
- public int getPhysicalScreenWidth()
- public string getPreferredMarkup()
- public int getXhtmlSupportLevel()
- public bool hasFlashSupport()
- public bool hasPdfSupport()
- public bool hasPhoneNumber()
- public bool httpsSupport()
- public string getBrowser()
- public string getBrowserVersion()
- public string getUserAgent()
- public the getImages()
- public void setBrowser()
- public void setBrowserVersion()
- public void setUserAgent()
- public void setImages()
- protected static bool _matchAgentAgainstSignatures()
Hierarchy
Members
protected
- $_aFeatures
—
array
Browser/Device features - $_aGroup
—
array
Browser/Device features groups - $_browser
—
string
Browser signature - $_browserVersion
—
string
Browser version - $_config
—
array
Configuration - $_images
—
array
Image types - $_server
—
array
Server variable - $_uaSignatures
—
array
User Agent Signatures - $_userAgent
—
string
User Agent chain
Methods
protected
- _defineFeatures() — Look for features
public
- getImageFormatSupport() — Determine supported image formats
- getPreferredMarkup() — Get preferred markup format
- getType() — Gives the current browser type
- getXhtmlSupportLevel() — Get supported X/HTML markup level
- hasFlashSupport() — Does the device support Flash?
- hasPdfSupport() — Does the device support PDF?
- match() — Comparison of the UserAgent chain and User Agent signatures
Inherited from Zend_Http_UserAgent_AbstractDevice
protected
- _defineFeatures() — Look for features
- _getDefaultFeatures() — Sets all the standard features extracted from the User Agent chain and $this->_server vars
- _loadFeaturesAdapter() — Loads the Features Adapter if it's defined in the $config array Otherwise, nothing is done
- _matchAgentAgainstSignatures() — Match a user agent string against a list of signatures
- _restoreFromArray() — Restore object state from array
public
- extractFromUserAgent() — Extract and sets informations from the User Agent chain
- getAllFeatures() — Gets all the browser/device features
- getAllGroups() — Gets all the browser/device features' groups
- getBrowser() — Get the browser type
- getBrowserVersion() — Get the browser version
- getFeature() — Gets the value of the current browser/device feature
- getGroup() — Gets an array of features associated to a group
- getImageFormatSupport() — Retrieve image format support
- getImages()
- getMaxImageHeight() — Get maximum image height supported by this device
- getMaxImageWidth() — Get maximum image width supported by this device
- getPhysicalScreenHeight() — Get physical screen height of this device
- getPhysicalScreenWidth() — Get physical screen width of this device
- getPreferredMarkup() — Get preferred markup type
- getType() — Gets the browser type identifier
- getUserAgent() — Get the user agent string
- getXhtmlSupportLevel() — Get supported X/HTML version
- hasFeature() — Check a feature for the current browser/device.
- hasFlashSupport() — Does the device support Flash?
- hasPdfSupport() — Does the device support PDF?
- hasPhoneNumber() — Does the device have a phone number associated with it?
- httpsSupport() — Does the device support HTTPS?
- serialize() — Serialize object
- setBrowser()
- setBrowserVersion()
- setFeature() — Set a feature for the current browser/device.
- setGroup() — Affects a feature to a group
- setImages()
- setUserAgent()
- unserialize() — Unserialize