Zend Framework
1.12
|
Public Member Functions | |
__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 | extractFromUserAgent ($userAgent) |
Extract and sets informations from the User Agent chain. | |
![]() | |
static | match ($userAgent, $server) |
Attempt to match the user agent. | |
Protected Member Functions | |
_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 Member Functions | |
static | _matchAgentAgainstSignatures ($userAgent, $signatures) |
Match a user agent string against a list of signatures. | |
Protected Attributes | |
$_browser = '' | |
$_browserVersion = '' | |
$_config | |
$_userAgent | |
$_server | |
$_images | |
$_aFeatures = array() | |
$_aGroup = array() | |
__construct | ( | $userAgent = null , |
|
array | $server = array() , |
||
array | $config = array() |
||
) |
Constructor.
null | string | array | $userAgent | If array, restores from serialized version |
array | $server | |
array | $config |
Implements Zend_Http_UserAgent_Device.
|
protected |
Look for features.
|
protected |
Sets all the standard features extracted from the User Agent chain and $this->_server vars.
|
protected |
Loads the Features Adapter if it's defined in the $config array Otherwise, nothing is done.
string | $browserType | Browser type |
|
staticprotected |
Match a user agent string against a list of signatures.
string | $userAgent | |
array | $signatures |
|
protected |
Restore object state from array.
array | $spec |
|
static |
Extract and sets informations from the User Agent chain.
string | $userAgent | User Agent chain |
Security level
windows
getAllFeatures | ( | ) |
getAllGroups | ( | ) |
getBrowser | ( | ) |
getBrowserVersion | ( | ) |
getFeature | ( | $feature | ) |
Gets the value of the current browser/device feature.
string | $feature | Feature to search |
Implements Zend_Http_UserAgent_Device.
getGroup | ( | $group | ) |
Gets an array of features associated to a group.
string | $group | Group param |
Implements Zend_Http_UserAgent_Device.
getImageFormatSupport | ( | ) |
getImages | ( | ) |
Implements Zend_Http_UserAgent_Device.
getMaxImageHeight | ( | ) |
Get maximum image height supported by this device.
Implements Zend_Http_UserAgent_Device.
getMaxImageWidth | ( | ) |
getPhysicalScreenHeight | ( | ) |
getPhysicalScreenWidth | ( | ) |
getPreferredMarkup | ( | ) |
|
abstract |
Gets the browser type identifier.
getUserAgent | ( | ) |
getXhtmlSupportLevel | ( | ) |
hasFeature | ( | $feature | ) |
Check a feature for the current browser/device.
string | $feature | The feature to check. |
Implements Zend_Http_UserAgent_Device.
hasFlashSupport | ( | ) |
hasPdfSupport | ( | ) |
hasPhoneNumber | ( | ) |
Does the device have a phone number associated with it?
Implements Zend_Http_UserAgent_Device.
httpsSupport | ( | ) |
serialize | ( | ) |
Serialize object.
setBrowser | ( | $browser | ) |
string | $browser |
setBrowserVersion | ( | $browserVersion | ) |
string | $browserVersion |
setFeature | ( | $feature, | |
$value = false , |
|||
$group = '' |
|||
) |
Set a feature for the current browser/device.
string | $feature | The feature to set. |
string | $value | (option) feature value. |
string | $group | (option) Group to associate with the feature |
setGroup | ( | $group, | |
$feature | |||
) |
Affects a feature to a group.
string | $group | Group name |
string | $feature | Feature name |
setImages | ( | $_images | ) |
array | $_images |
setUserAgent | ( | $userAgent | ) |
string | $userAgent |
unserialize | ( | $serialized | ) |
Unserialize.
string | $serialized |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |