\Zend_Http_UserAgent_Mobile
Mobile 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_Mobile
extends Zend_Http_UserAgent_AbstractDevice
{
- // constants
- const DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_WurflApi';
- const DEFAULT_FEATURES_ADAPTER_PATH = 'Zend/Http/UserAgent/Features/Adapter/WurflApi.php';
- // members
- protected static array $_uaSignatures = ;
- protected static array $_haTerms = ;
- protected static array $_uaBegin = ;
- // 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 static string userAgentStart()
- public void __construct()
- public string getType()
- protected string _defineFeatures()
- public __TYPE__ getMarkupLanguage()
- 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()
- // 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
Constants
Name | Value |
---|---|
DEFAULT_FEATURES_ADAPTER_CLASSNAME | 'Zend_Http_UserAgent_Features_Adapter_WurflApi' |
DEFAULT_FEATURES_ADAPTER_PATH | 'Zend/Http/UserAgent/Features/Adapter/WurflApi.php' |
Members
protected
- $_aFeatures
—
array
Browser/Device features - $_aGroup
—
array
Browser/Device features groups - $_browser
—
string
Browser signature - $_browserVersion
—
string
Browser version - $_config
—
array
Configuration - $_haTerms — array
- $_images
—
array
Image types - $_server
—
array
Server variable - $_uaBegin
—
array
first 4 letters of mobile User Agent chains - $_uaSignatures
—
array
User Agent Signatures - $_userAgent
—
string
User Agent chain
Methods
protected
- _defineFeatures() — Look for features
public
- __construct() — Constructor
- getImageFormatSupport() — Determine image format support
- getMarkupLanguage() — Determine markup language expected
- getMaxImageHeight() — Determine maximum image height supported
- getMaxImageWidth() — Determine maximum image width supported
- getPhysicalScreenHeight() — Determine physical screen height
- getPhysicalScreenWidth() — Determine physical screen width
- getPreferredMarkup() — Determine preferred markup
- getType() — Gives the current browser type
- getXhtmlSupportLevel() — Determine X/HTML support level
- hasFlashSupport() — Does the device support Flash?
- hasPdfSupport() — Does the device support PDF?
- hasPhoneNumber() — Does the device have an associated phone number?
- httpsSupport() — Does the device support HTTPS?
- match() — Comparison of the UserAgent chain and User Agent signatures
- userAgentStart() — Retrieve beginning clause of user agent
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