Zend Framework  1.12
Public Member Functions | Static Public Member Functions | List of all members
Zend_Http_UserAgent_Device Interface Reference

Public Member Functions

 __construct ($userAgent=null, array $server=array(), array $config=array())
 Constructor.
 
 getAllFeatures ()
 Get all browser/device features.
 
 getAllGroups ()
 Get all of the browser/device's features' groups.
 
 hasFeature ($feature)
 Whether or not the device has a given feature.
 
 getFeature ($feature)
 Get the value of a specific device feature.
 
 getBrowser ()
 Get the browser type.
 
 getBrowserVersion ()
 Retrurn the browser version.
 
 getGroup ($group)
 Get an array of features associated with a group.
 
 getImageFormatSupport ()
 Retrieve image format support.
 
 getImages ()
 Get image types.
 
 getMaxImageHeight ()
 Get the maximum image height supported by this device.
 
 getMaxImageWidth ()
 Get the maximum image width supported by this device.
 
 getPhysicalScreenHeight ()
 Get the physical screen height of this device.
 
 getPhysicalScreenWidth ()
 Get the physical screen width of this device.
 
 getPreferredMarkup ()
 Get the preferred markup type.
 
 getUserAgent ()
 Get the user agent string.
 
 getXhtmlSupportLevel ()
 Get supported X/HTML version.
 
 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?
 

Static Public Member Functions

static match ($userAgent, $server)
 Attempt to match the user agent.
 

Constructor & Destructor Documentation

__construct (   $userAgent = null,
array  $server = array(),
array  $config = array() 
)

Constructor.

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
null | string | array$userAgent
array$server
array$config
Returns
void

Implemented in Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_AbstractDevice.

Member Function Documentation

getAllFeatures ( )

Get all browser/device features.

Returns
array

Implemented in Zend_Http_UserAgent_AbstractDevice.

getAllGroups ( )

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

Returns
void

Implemented in Zend_Http_UserAgent_AbstractDevice.

getBrowser ( )

Get the browser type.

Returns
string

Implemented in Zend_Http_UserAgent_AbstractDevice.

getBrowserVersion ( )

Retrurn the browser version.

Returns
string

Implemented in Zend_Http_UserAgent_AbstractDevice.

getFeature (   $feature)

Get the value of a specific device feature.

Parameters
string$feature
Returns
mixed

Implemented in Zend_Http_UserAgent_AbstractDevice.

getGroup (   $group)

Get an array of features associated with a group.

Parameters
string$group
Returns
array

Implemented in Zend_Http_UserAgent_AbstractDevice.

getImageFormatSupport ( )

Retrieve image format support.

Returns
array

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

getImages ( )

Get image types.

Returns
array

Implemented in Zend_Http_UserAgent_AbstractDevice.

getMaxImageHeight ( )

Get the maximum image height supported by this device.

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

getMaxImageWidth ( )

Get the maximum image width supported by this device.

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

getPhysicalScreenHeight ( )

Get the physical screen height of this device.

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

getPhysicalScreenWidth ( )

Get the physical screen width of this device.

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

getPreferredMarkup ( )

Get the preferred markup type.

Returns
string

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

getUserAgent ( )

Get the user agent string.

Returns
string

Implemented in Zend_Http_UserAgent_AbstractDevice.

getXhtmlSupportLevel ( )

Get supported X/HTML version.

Returns
int

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

hasFeature (   $feature)

Whether or not the device has a given feature.

Parameters
string$feature
Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice.

hasFlashSupport ( )

Does the device support Flash?

Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

hasPdfSupport ( )

Does the device support PDF?

Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice, Zend_Http_UserAgent_Mobile, and Zend_Http_UserAgent_Text.

hasPhoneNumber ( )

Does the device have a phone number associated with it?

Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

httpsSupport ( )

Does the device support HTTPS?

Returns
bool

Implemented in Zend_Http_UserAgent_AbstractDevice, and Zend_Http_UserAgent_Mobile.

static match (   $userAgent,
  $server 
)
static