Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | List of all members
Zend_Http_UserAgent_Mobile Class Reference

Public Member Functions

 __construct ($userAgent=null, array $server=array(), array $config=array())
 Constructor.
 
 getType ()
 Gives the current browser type.
 
 getMarkupLanguage ($preferredMarkup=null)
 Determine markup language expected.
 
 getImageFormatSupport ()
 Determine image format support.
 
 getMaxImageHeight ()
 Determine maximum image height supported.
 
 getMaxImageWidth ()
 Determine maximum image width supported.
 
 getPhysicalScreenHeight ()
 Determine physical screen height.
 
 getPhysicalScreenWidth ()
 Determine physical screen width.
 
 getPreferredMarkup ()
 Determine preferred markup.
 
 getXhtmlSupportLevel ()
 Determine X/HTML support level.
 
 hasFlashSupport ()
 Does the device support Flash?
 
 hasPdfSupport ()
 Does the device support PDF?
 
 hasPhoneNumber ()
 Does the device have an associated phone number?
 
 httpsSupport ()
 Does the device support HTTPS?
 
- Public Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
 __construct ($userAgent=null, array $server=array(), array $config=array())
 Constructor.
 
 serialize ()
 Serialize object.
 
 unserialize ($serialized)
 Unserialize.
 
 getType ()
 Gets the browser type identifier.
 
 hasFeature ($feature)
 Check a feature for the current browser/device.
 
 getFeature ($feature)
 Gets the value of the current browser/device feature.
 
 setFeature ($feature, $value=false, $group= '')
 Set a feature for the current browser/device.
 
 setGroup ($group, $feature)
 Affects a feature to a group.
 
 getGroup ($group)
 Gets an array of features associated to a group.
 
 getAllFeatures ()
 Gets all the browser/device features.
 
 getAllGroups ()
 Gets all the browser/device features' groups.
 
 getImageFormatSupport ()
 Retrieve image format support.
 
 getMaxImageHeight ()
 Get maximum image height supported by this device.
 
 getMaxImageWidth ()
 Get maximum image width supported by this device.
 
 getPhysicalScreenHeight ()
 Get physical screen height of this device.
 
 getPhysicalScreenWidth ()
 Get physical screen width of this device.
 
 getPreferredMarkup ()
 Get preferred markup type.
 
 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?
 
 getBrowser ()
 Get the browser type.
 
 getBrowserVersion ()
 Get the browser version.
 
 getUserAgent ()
 Get the user agent string.
 
 getImages ()
 
 setBrowser ($browser)
 
 setBrowserVersion ($browserVersion)
 
 setUserAgent ($userAgent)
 
 setImages ($_images)
 

Static Public Member Functions

static match ($userAgent, $server)
 Comparison of the UserAgent chain and User Agent signatures.
 
static userAgentStart ($userAgent)
 Retrieve beginning clause of user agent.
 
- Static Public Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
static extractFromUserAgent ($userAgent)
 Extract and sets informations from the User Agent chain.
 

Public Attributes

const DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_Browscap'
 
const DEFAULT_FEATURES_ADAPTER_PATH = 'Zend/Http/UserAgent/Features/Adapter/Browscap.php'
 

Protected Member Functions

 _defineFeatures ()
 Look for features.
 
- Protected Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
 _restoreFromArray (array $spec)
 Restore object state from array.
 
 _defineFeatures ()
 Look for features.
 
 _getDefaultFeatures ()
 Sets all the standard features extracted from the User Agent chain and $this->_server vars.
 
 _loadFeaturesAdapter ()
 Loads the Features Adapter if it's defined in the $config array Otherwise, nothing is done.
 

Static Protected Attributes

static $_uaSignatures
 
static $_haTerms
 
static $_uaBegin
 

Additional Inherited Members

- Static Protected Member Functions inherited from Zend_Http_UserAgent_AbstractDevice
static _matchAgentAgainstSignatures ($userAgent, $signatures)
 Match a user agent string against a list of signatures.
 
- Protected Attributes inherited from Zend_Http_UserAgent_AbstractDevice
 $_browser = ''
 
 $_browserVersion = ''
 
 $_config
 
 $_userAgent
 
 $_server
 
 $_images
 
 $_aFeatures = array()
 
 $_aGroup = array()
 

Constructor & Destructor Documentation

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

Constructor.

Returns
void

Implements Zend_Http_UserAgent_Device.

Member Function Documentation

_defineFeatures ( )
protected

Look for features.

Returns
string
getImageFormatSupport ( )

Determine image format support.

Returns
array

Implements Zend_Http_UserAgent_Device.

getMarkupLanguage (   $preferredMarkup = null)

Determine markup language expected.

public

Returns
__TYPE__
getMaxImageHeight ( )

Determine maximum image height supported.

Returns
int

Implements Zend_Http_UserAgent_Device.

getMaxImageWidth ( )

Determine maximum image width supported.

Returns
int

Implements Zend_Http_UserAgent_Device.

getPhysicalScreenHeight ( )

Determine physical screen height.

Returns
int

Implements Zend_Http_UserAgent_Device.

getPhysicalScreenWidth ( )

Determine physical screen width.

Returns
int

Implements Zend_Http_UserAgent_Device.

getPreferredMarkup ( )

Determine preferred markup.

Returns
string

Implements Zend_Http_UserAgent_Device.

getType ( )

Gives the current browser type.

Returns
string
getXhtmlSupportLevel ( )

Determine X/HTML support level.

Returns
int

Implements Zend_Http_UserAgent_Device.

hasFlashSupport ( )

Does the device support Flash?

Returns
bool

Implements Zend_Http_UserAgent_Device.

hasPdfSupport ( )

Does the device support PDF?

Returns
bool

Implements Zend_Http_UserAgent_Device.

hasPhoneNumber ( )

Does the device have an associated phone number?

Returns
bool

Implements Zend_Http_UserAgent_Device.

httpsSupport ( )

Does the device support HTTPS?

Returns
bool

Implements Zend_Http_UserAgent_Device.

static match (   $userAgent,
  $server 
)
static

Comparison of the UserAgent chain and User Agent signatures.

Parameters
string$userAgentUser Agent chain
array$server$_SERVER like param
Returns
bool

Implements Zend_Http_UserAgent_Device.

static userAgentStart (   $userAgent)
static

Retrieve beginning clause of user agent.

Parameters
string$userAgent
Returns
string

Member Data Documentation

$_haTerms
staticprotected
Initial value:
= array(
'midp',
'wml',
'vnd.rim',
'vnd.wap',
'j2me',
)
$_uaBegin
staticprotected
$_uaSignatures
staticprotected
const DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_Browscap'
const DEFAULT_FEATURES_ADAPTER_PATH = 'Zend/Http/UserAgent/Features/Adapter/Browscap.php'