Zend Framework
1.12
|
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? | |
![]() | |
__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 | 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. | |
![]() | |
_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 | _matchAgentAgainstSignatures ($userAgent, $signatures) |
Match a user agent string against a list of signatures. | |
![]() | |
$_browser = '' | |
$_browserVersion = '' | |
$_config | |
$_userAgent | |
$_server | |
$_images | |
$_aFeatures = array() | |
$_aGroup = array() | |
__construct | ( | $userAgent = null , |
|
array | $server = array() , |
||
array | $config = array() |
||
) |
|
protected |
Look for features.
getImageFormatSupport | ( | ) |
getMarkupLanguage | ( | $preferredMarkup = null | ) |
Determine markup language expected.
public
getMaxImageHeight | ( | ) |
getMaxImageWidth | ( | ) |
getPhysicalScreenHeight | ( | ) |
getPhysicalScreenWidth | ( | ) |
getPreferredMarkup | ( | ) |
getType | ( | ) |
Gives the current browser type.
getXhtmlSupportLevel | ( | ) |
hasFlashSupport | ( | ) |
hasPdfSupport | ( | ) |
hasPhoneNumber | ( | ) |
httpsSupport | ( | ) |
|
static |
Comparison of the UserAgent chain and User Agent signatures.
string | $userAgent | User Agent chain |
array | $server | $_SERVER like param |
Implements Zend_Http_UserAgent_Device.
|
static |
Retrieve beginning clause of user agent.
string | $userAgent |
|
staticprotected |
|
staticprotected |
|
staticprotected |
const DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_Browscap' |
const DEFAULT_FEATURES_ADAPTER_PATH = 'Zend/Http/UserAgent/Features/Adapter/Browscap.php' |