Bot 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_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_Device::getImageFormatSupport() |
---|
array
getImages() : \the
inherited_from | \Zend_Http_UserAgent_Device::getImages() |
---|
\the
$_imagesgetMaxImageHeight() : integer
inherited_from | \Zend_Http_UserAgent_Device::getMaxImageHeight() |
---|
integer
getMaxImageWidth() : integer
inherited_from | \Zend_Http_UserAgent_Device::getMaxImageWidth() |
---|
integer
getPhysicalScreenHeight() : integer
inherited_from | \Zend_Http_UserAgent_Device::getPhysicalScreenHeight() |
---|
integer
getPhysicalScreenWidth() : integer
inherited_from | \Zend_Http_UserAgent_Device::getPhysicalScreenWidth() |
---|
integer
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_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_Device::hasFlashSupport() |
---|
boolean
hasPdfSupport() : boolean
inherited_from | \Zend_Http_UserAgent_Device::hasPdfSupport() |
---|
boolean
hasPhoneNumber() : boolean
inherited_from | \Zend_Http_UserAgent_Device::hasPhoneNumber() |
---|
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
_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
$_images : array
array('jpeg', 'gif', 'png', 'pjpeg', 'x-png', 'bmp')
$_server : array
$_uaSignatures : array
array('googlebot', 'msnbot', 'slurp', 'yahoo', 'alexa', 'appie', 'archiver', 'ask jeeves', 'baiduspider', 'bot', 'crawl', 'crawler', 'curl', 'eventbox', 'facebookexternal', 'fast', 'feedfetcher-google', 'firefly', 'froogle', 'gigabot', 'girafabot', 'google', 'htdig', 'infoseek', 'inktomi', 'java', 'larbin', 'looksmart', 'mechanize', 'mediapartners-google', 'monitor', 'nambu', 'nationaldirectory', 'novarra', 'pear', 'perl', 'python', 'rabaz', 'radian', 'rankivabot', 'scooter', 'sogou web spider', 'spade', 'sphere', 'spider', 'technoratisnoop', 'tecnoseek', 'teoma', 'toolbar', 'transcoder', 'twitt', 'url_spider_sql', 'webalta crawler', 'webbug', 'webfindbot', 'wordpress', 'www.galaxy.com', 'yahoo! searchmonkey', 'yahoo! slurp', 'yandex', 'zyborg')
$_userAgent : string