Interface defining a browser device type.

category Zend
package Zend_Http
subpackage UserAgent
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__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.

Parameters

$userAgent

nullstringarray

$server

array

$config

array

Get all browser/device features

getAllFeatures() : array

Returns

array

Get all of the browser/device's features' groups

getAllGroups() : void

Get the browser type

getBrowser() : string

Returns

string

Retrurn the browser version

getBrowserVersion() : string

Returns

string

Get the value of a specific device feature

getFeature(string $feature) : mixed

Parameters

$feature

string

Returns

mixed

Get an array of features associated with a group

getGroup(string $group) : array

Parameters

$group

string

Returns

array

Retrieve image format support

getImageFormatSupport() : array

Returns

array

Get image types

getImages() : array

Returns

array

Get the maximum image height supported by this device

getMaxImageHeight() : integer

Returns

integer

Get the maximum image width supported by this device

getMaxImageWidth() : integer

Returns

integer

Get the physical screen height of this device

getPhysicalScreenHeight() : integer

Returns

integer

Get the physical screen width of this device

getPhysicalScreenWidth() : integer

Returns

integer

Get the preferred markup type

getPreferredMarkup() : string

Returns

string

Get the user agent string

getUserAgent() : string

Returns

string

Get supported X/HTML version

getXhtmlSupportLevel() : integer

Returns

integer

Whether or not the device has a given feature

hasFeature(string $feature) : boolean

Parameters

$feature

string

Returns

boolean

Does the device support Flash?

hasFlashSupport() : boolean

Returns

boolean

Does the device support PDF?

hasPdfSupport() : boolean

Returns

boolean

Does the device have a phone number associated with it?

hasPhoneNumber() : boolean

Returns

boolean

Does the device support HTTPS?

httpsSupport() : boolean

Returns

boolean

Attempt to match the user agent

match(string $userAgent, array $server) : boolean | array
Static

Return either an array of browser signature strings, or a boolean.

Parameters

$userAgent

string

$server

array

Returns

booleanarray