Mobile browser type matcher
category | Zend |
---|---|
package | Zend_Http |
subpackage | UserAgent |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Http_UserAgent_AbstractDevice |
__construct(null|string|array $userAgent= null
, array $server= array()
, array $config= array()
) : void
Allows injecting user agent, server array, and/or config array. If an array is provided for the first argument, the assumption should be that the device object is being seeded with cached values from serialization.
inherited_from | \Zend_Http_UserAgent_AbstractDevice::__construct() |
---|
__construct(null|string|array $userAgent= null
, array $server= array()
, array $config= array()
) : void
Allows injecting user agent, server array, and/or config array. If an array is provided for the first argument, the assumption should be that the device object is being seeded with cached values from serialization.
inherited_from | \Zend_Http_UserAgent_Device::__construct() |
---|
null
string
array
If array, restores from serialized version
array
array
extractFromUserAgent(string $userAgent) : array
string
User Agent chain
array
getAllFeatures() : array
inherited_from | \Zend_Http_UserAgent_Device::getAllFeatures() |
---|
array
getAllGroups() : array
inherited_from | \Zend_Http_UserAgent_Device::getAllGroups() |
---|
array
getBrowser() : string
inherited_from | \Zend_Http_UserAgent_Device::getBrowser() |
---|
string
getBrowserVersion() : string
inherited_from | \Zend_Http_UserAgent_Device::getBrowserVersion() |
---|
string
getFeature(string $feature) : string | null
inherited_from | \Zend_Http_UserAgent_Device::getFeature() |
---|
string
Feature to search
string
null
getGroup(string $group) : array
inherited_from | \Zend_Http_UserAgent_Device::getGroup() |
---|
string
Group param
array
getImageFormatSupport() : array
inherited_from | \Zend_Http_UserAgent_AbstractDevice::getImageFormatSupport() |
---|
array
getImageFormatSupport() : array
inherited_from | \Zend_Http_UserAgent_Device::getImageFormatSupport() |
---|
array
getImages() : \the
inherited_from | \Zend_Http_UserAgent_Device::getImages() |
---|
\the
$_imagesgetMarkupLanguage($preferredMarkup = null
) : \__TYPE__
access | public |
---|
\__TYPE__
getMaxImageHeight() : integer
inherited_from | \Zend_Http_UserAgent_AbstractDevice::getMaxImageHeight() |
---|
integer
getMaxImageHeight() : integer
inherited_from | \Zend_Http_UserAgent_Device::getMaxImageHeight() |
---|
integer
getMaxImageWidth() : integer
inherited_from | \Zend_Http_UserAgent_AbstractDevice::getMaxImageWidth() |
---|
integer
getMaxImageWidth() : integer
inherited_from | \Zend_Http_UserAgent_Device::getMaxImageWidth() |
---|
integer
getPhysicalScreenHeight() : integer
inherited_from | \Zend_Http_UserAgent_AbstractDevice::getPhysicalScreenHeight() |
---|
integer
getPhysicalScreenHeight() : integer
inherited_from | \Zend_Http_UserAgent_Device::getPhysicalScreenHeight() |
---|
integer
getPhysicalScreenWidth() : integer
inherited_from | \Zend_Http_UserAgent_AbstractDevice::getPhysicalScreenWidth() |
---|
integer
getPhysicalScreenWidth() : integer
inherited_from | \Zend_Http_UserAgent_Device::getPhysicalScreenWidth() |
---|
integer
getPreferredMarkup() : string
inherited_from | \Zend_Http_UserAgent_AbstractDevice::getPreferredMarkup() |
---|
string
getPreferredMarkup() : string
inherited_from | \Zend_Http_UserAgent_Device::getPreferredMarkup() |
---|
string
getType() : string
inherited_from | \Zend_Http_UserAgent_AbstractDevice::getType() |
---|
string
getType() : string
string
getUserAgent() : string
inherited_from | \Zend_Http_UserAgent_Device::getUserAgent() |
---|
string
getXhtmlSupportLevel() : integer
inherited_from | \Zend_Http_UserAgent_AbstractDevice::getXhtmlSupportLevel() |
---|
integer
getXhtmlSupportLevel() : integer
inherited_from | \Zend_Http_UserAgent_Device::getXhtmlSupportLevel() |
---|
integer
hasFeature(string $feature) : boolean
inherited_from | \Zend_Http_UserAgent_Device::hasFeature() |
---|
string
The feature to check.
boolean
hasFlashSupport() : boolean
inherited_from | \Zend_Http_UserAgent_AbstractDevice::hasFlashSupport() |
---|
boolean
hasFlashSupport() : boolean
inherited_from | \Zend_Http_UserAgent_Device::hasFlashSupport() |
---|
boolean
hasPdfSupport() : boolean
inherited_from | \Zend_Http_UserAgent_AbstractDevice::hasPdfSupport() |
---|
boolean
hasPdfSupport() : boolean
inherited_from | \Zend_Http_UserAgent_Device::hasPdfSupport() |
---|
boolean
hasPhoneNumber() : boolean
inherited_from | \Zend_Http_UserAgent_AbstractDevice::hasPhoneNumber() |
---|
boolean
hasPhoneNumber() : boolean
inherited_from | \Zend_Http_UserAgent_Device::hasPhoneNumber() |
---|
boolean
httpsSupport() : boolean
inherited_from | \Zend_Http_UserAgent_AbstractDevice::httpsSupport() |
---|
boolean
httpsSupport() : boolean
inherited_from | \Zend_Http_UserAgent_Device::httpsSupport() |
---|
boolean
match(string $userAgent, array $server) : boolean
string
User Agent chain
array
$_SERVER like param
boolean
serialize() : string
string
setBrowser(string $browser)
string
setBrowserVersion(string $browserVersion)
string
setFeature(string $feature, string $value= false
, string $group= ''
) : \Zend_Http_UserAgent_AbstractDevice
string
The feature to set.
string
(option) feature value.
string
(option) Group to associate with the feature
\Zend_Http_UserAgent_AbstractDevice
setGroup(string $group, string $feature) : \Zend_Http_UserAgent_AbstractDevice
string
Group name
string
Feature name
\Zend_Http_UserAgent_AbstractDevice
setImages(array $_images)
array
setUserAgent(string $userAgent)
string
unserialize(string $serialized) : void
string
userAgentStart(string $userAgent) : string
string
string
_defineFeatures() : string
inherited_from | \Zend_Http_UserAgent_AbstractDevice::_defineFeatures() |
---|
string
_defineFeatures() : array | null
array
null
_getDefaultFeatures() : void
_loadFeaturesAdapter() : array
array
_matchAgentAgainstSignatures(string $userAgent, array $signatures) : boolean
string
array
boolean
_restoreFromArray(array $spec) : void
array
$_aFeatures : array
array()
$_aGroup : array
array()
$_browser : string
''
$_browserVersion : string
''
$_config : array
$_haTerms : array
array('midp', 'wml', 'vnd.rim', 'vnd.wap', 'j2me')
$_images : array
array('jpeg', 'gif', 'png', 'pjpeg', 'x-png', 'bmp')
$_server : array
$_uaBegin : array
array('w3c ', 'acs-', 'alav', 'alca', 'amoi', 'audi', 'avan', 'benq', 'bird', 'blac', 'blaz', 'brew', 'cell', 'cldc', 'cmd-', 'dang', 'doco', 'eric', 'hipt', 'inno', 'ipaq', 'java', 'jigs', 'kddi', 'keji', 'leno', 'lg-c', 'lg-d', 'lg-g', 'lge-', 'maui', 'maxo', 'midp', 'mits', 'mmef', 'mobi', 'mot-', 'moto', 'mwbp', 'nec-', 'newt', 'noki', 'palm', 'pana', 'pant', 'phil', 'play', 'port', 'prox', 'qwap', 'sage', 'sams', 'sany', 'sch-', 'sec-', 'send', 'seri', 'sgh-', 'shar', 'sie-', 'siem', 'smal', 'smar', 'sony', 'sph-', 'symb', 't-mo', 'teli', 'tim-', 'tosh', 'tsm-', 'upg1', 'upsi', 'vk-v', 'voda', 'wap-', 'wapa', 'wapi', 'wapp', 'wapr', 'webc', 'winw', 'winw', 'xda', 'xda-')
$_uaSignatures : array
array('iphone', 'ipod', 'ipad', 'android', 'blackberry', 'opera mini', 'opera mobi', 'palm', 'palmos', 'elaine', 'windows ce', 'icab', '_mms', 'ahong', 'archos', 'armv', 'astel', 'avantgo', 'benq', 'blazer', 'brew', 'com2', 'compal', 'danger', 'pocket', 'docomo', 'epoc', 'ericsson', 'eudoraweb', 'hiptop', 'htc-', 'htc_', 'iemobile', 'iris', 'j-phone', 'kddi', 'kindle', 'lg ', 'lg-', 'lg/', 'lg;lx', 'lge vx', 'lge', 'lge-', 'lge-cx', 'lge-lx', 'lge-mx', 'linux armv', 'maemo', 'midp', 'mini 9.5', 'minimo', 'mob-x', 'mobi', 'mobile', 'mobilephone', 'mot 24', 'mot-', 'motorola', 'n410', 'netfront', 'nintendo wii', 'nintendo', 'nitro', 'nokia', 'novarra-vision', 'nuvifone', 'openweb', 'opwv', 'palmsource', 'pdxgw', 'phone', 'playstation', 'polaris', 'portalmmm', 'qt embedded', 'reqwirelessweb', 'sagem', 'sam-r', 'samsu', 'samsung', 'sec-', 'sec-sgh', 'semc-browser', 'series60', 'series70', 'series80', 'series90', 'sharp', 'sie-m', 'sie-s', 'smartphone', 'sony cmd', 'sonyericsson', 'sprint', 'spv', 'symbian os', 'symbian', 'symbianos', 'telco', 'teleca', 'treo', 'up.browser', 'up.link', 'vodafone', 'vodaphone', 'webos', 'wml', 'windows phone os 7', 'wireless', 'wm5 pie', 'wms pie', 'xiino', 'wap', 'up/', 'psion', 'j2me', 'klondike', 'kbrowser')
$_userAgent : string
DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_Browscap'
DEFAULT_FEATURES_ADAPTER_PATH = 'Zend/Http/UserAgent/Features/Adapter/Browscap.php'