Property | Type | Description | |
---|---|---|---|
$_aFeatures | array | Browser/Device features | |
$_aGroup | array | Browser/Device features groups | |
$_browser | string | Browser signature | |
$_browserVersion | string | Browser version | |
$_config | array | Configuration | |
$_images | array | Image types | |
$_server | array | Server variable | |
$_userAgent | string | User Agent chain |
Method | Description | |
---|---|---|
__construct ( null | string | array $userAgent = null, array $server = [], array $config = [] ) : void | Constructor | |
extractFromUserAgent ( string $userAgent ) : array | Extract and sets informations from the User Agent chain | |
getAllFeatures ( ) : array | Gets all the browser/device features | |
getAllGroups ( ) : array | Gets all the browser/device features' groups | |
getBrowser ( ) : string | Get the browser type | |
getBrowserVersion ( ) : string | Get the browser version | |
getFeature ( string $feature ) : string | null | Gets the value of the current browser/device feature | |
getGroup ( string $group ) : array | Gets an array of features associated to a group | |
getImageFormatSupport ( ) : array | Retrieve image format support | |
getImages ( ) : the | ||
getMaxImageHeight ( ) : integer | Get maximum image height supported by this device | |
getMaxImageWidth ( ) : integer | Get maximum image width supported by this device | |
getPhysicalScreenHeight ( ) : integer | Get physical screen height of this device | |
getPhysicalScreenWidth ( ) : integer | Get physical screen width of this device | |
getPreferredMarkup ( ) : string | Get preferred markup type | |
getType ( ) : string | Gets the browser type identifier | |
getUserAgent ( ) : string | Get the user agent string | |
getXhtmlSupportLevel ( ) : integer | Get supported X/HTML version | |
hasFeature ( string $feature ) : boolean | Check a feature for the current browser/device. | |
hasFlashSupport ( ) : boolean | Does the device support Flash? | |
hasPdfSupport ( ) : boolean | Does the device support PDF? | |
hasPhoneNumber ( ) : boolean | Does the device have a phone number associated with it? | |
httpsSupport ( ) : boolean | Does the device support HTTPS? | |
serialize ( ) : string | Serialize object | |
setBrowser ( string $browser ) | ||
setBrowserVersion ( string $browserVersion ) | ||
setFeature ( string $feature, string $value = false, string $group = '' ) : Zend_Http_UserAgent_AbstractDevice | Set a feature for the current browser/device. | |
setGroup ( string $group, string $feature ) : Zend_Http_UserAgent_AbstractDevice | Affects a feature to a group | |
setImages ( array $_images ) | ||
setUserAgent ( string $userAgent ) | ||
unserialize ( string $serialized ) : void | Unserialize |
Method | Description | |
---|---|---|
_defineFeatures ( ) : array | null | Look for features | |
_getDefaultFeatures ( ) : void | Sets all the standard features extracted from the User Agent chain and $this->_server vars | |
_loadFeaturesAdapter ( ) : array | Loads the Features Adapter if it's defined in the $config array Otherwise, nothing is done | |
_matchAgentAgainstSignatures ( string $userAgent, array $signatures ) : boolean | Match a user agent string against a list of signatures | |
_restoreFromArray ( array $spec ) : void | Restore object state from array |
protected _defineFeatures ( ) : array | null | ||
return | array | null |
protected _getDefaultFeatures ( ) : void | ||
return | void |
protected _loadFeaturesAdapter ( ) : array | ||
return | array |
protected _restoreFromArray ( array $spec ) : void | ||
$spec | array | |
return | void |
public static extractFromUserAgent ( string $userAgent ) : array | ||
$userAgent | string | User Agent chain |
return | array |
public getAllFeatures ( ) : array | ||
return | array |
public getAllGroups ( ) : array | ||
return | array |
public getBrowserVersion ( ) : string | ||
return | string |
public getImageFormatSupport ( ) : array | ||
return | array |
public getMaxImageHeight ( ) : integer | ||
return | integer |
public getMaxImageWidth ( ) : integer | ||
return | integer |
public getPhysicalScreenHeight ( ) : integer | ||
return | integer |
public getPhysicalScreenWidth ( ) : integer | ||
return | integer |
public getPreferredMarkup ( ) : string | ||
return | string |
public getUserAgent ( ) : string | ||
return | string |
public getXhtmlSupportLevel ( ) : integer | ||
return | integer |
public hasFeature ( string $feature ) : boolean | ||
$feature | string | The feature to check. |
return | boolean |
public hasFlashSupport ( ) : boolean | ||
return | boolean |
public hasPdfSupport ( ) : boolean | ||
return | boolean |
public hasPhoneNumber ( ) : boolean | ||
return | boolean |
public httpsSupport ( ) : boolean | ||
return | boolean |
public setBrowserVersion ( string $browserVersion ) | ||
$browserVersion | string |
public unserialize ( string $serialized ) : void | ||
$serialized | string | |
return | void |
protected string $_browserVersion | ||
return | string |