API Documentation

Http/UserAgent/Device.php

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

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

\Zend_Http_UserAgent_Device

Interface defining a browser device type.

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

Methods

methodpublic__construct( null|string|array $userAgent = null, array $server = array, array $config = array ) : void

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
Name Type Description
$userAgent null|string|array
$server array
$config array
methodpublicgetAllFeatures( ) : array

Get all browser/device features

Returns
Type Description
array
methodpublicgetAllGroups( ) : void

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

methodpublicgetBrowser( ) : string

Get the browser type

Returns
Type Description
string
methodpublicgetBrowserVersion( ) : string

Retrurn the browser version

Returns
Type Description
string
methodpublicgetFeature( string $feature ) : mixed

Get the value of a specific device feature

Parameters
Name Type Description
$feature string
Returns
Type Description
mixed
methodpublicgetGroup( string $group ) : array

Get an array of features associated with a group

Parameters
Name Type Description
$group string
Returns
Type Description
array
methodpublicgetImageFormatSupport( ) : array

Retrieve image format support

Returns
Type Description
array
methodpublicgetImages( ) : array

Get image types

Returns
Type Description
array
methodpublicgetMaxImageHeight( ) : int

Get the maximum image height supported by this device

Returns
Type Description
int
methodpublicgetMaxImageWidth( ) : int

Get the maximum image width supported by this device

Returns
Type Description
int
methodpublicgetPhysicalScreenHeight( ) : int

Get the physical screen height of this device

Returns
Type Description
int
methodpublicgetPhysicalScreenWidth( ) : int

Get the physical screen width of this device

Returns
Type Description
int
methodpublicgetPreferredMarkup( ) : string

Get the preferred markup type

Returns
Type Description
string
methodpublicgetUserAgent( ) : string

Get the user agent string

Returns
Type Description
string
methodpublicgetXhtmlSupportLevel( ) : int

Get supported X/HTML version

Returns
Type Description
int
methodpublichasFeature( string $feature ) : bool

Whether or not the device has a given feature

Parameters
Name Type Description
$feature string
Returns
Type Description
bool
methodpublichasFlashSupport( ) : bool

Does the device support Flash?

Returns
Type Description
bool
methodpublichasPdfSupport( ) : bool

Does the device support PDF?

Returns
Type Description
bool
methodpublichasPhoneNumber( ) : bool

Does the device have a phone number associated with it?

Returns
Type Description
bool
methodpublichttpsSupport( ) : bool

Does the device support HTTPS?

Returns
Type Description
bool
methodpublicmatch( string $userAgent, array $server ) : bool|array
static

Attempt to match the user agent

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

Parameters
Name Type Description
$userAgent string
$server array
Returns
Type Description
boolarray
Documentation was generated by DocBlox 0.13.3.