-
__construct($userAgent = null, array $server = array(), array $config = array()); Expects a User-Agent string, an array representing the HTTP environment, and an array of configuration values. The values are all optional, as they may be populated during deserialization.
-
match($userAgent, $server); -
This method is static.
Provided the
$userAgentstring and an array representing the HTTP headers provided in the request, determine if they match the capabilities of this device. This method should return a boolean. -
getAllFeatures(); Returns an array of key/value pairs representing the features supported by this device instance.
-
getAllGroups(); Similar to
getAllFeatures(), this retrieves all features, but grouped by type.-
hasFeature($feature); Query the device to determine if it contains information on a specific feature.
-
getFeature($feature); Retrieve the value of a specific device feature, if present. Typically, this will return a boolean
falseor anullvalue if the feature is not defined.-
getBrowser(); Returns the browser string as discoverd from the User-Agent string.
-
getBrowserVersion(); Retrieve the browser version as discovered from the User-Agent string.
-
getGroup($group); Get all features from a given feature group.
-
getImageFormatSupport(); Retrieve a list of supported image types.
-
getImages(); Alias for
getImageFormatSupport().-
getMaxImageHeight(); Retrieve the maximum supported image height for the current device instance.
-
getMaxImageWidth(); Retrieve the maximum supported image width for the current device instance.
-
getPhysicalScreenHeight(); Retrieve the physical screen height for the current device instance.
-
getPhysicalScreenWidth(); Retrieve the physical screen width for the current device instance.
-
getPreferredMarkup(); Retrieve the preferred markup format for the current device instance.
-
getUserAgent(); Retrieve the User-Agent string for the current device instance.
-
getXhtmlSupportLevel(); Retrieve the supported X/HTML version for the current device instance.
-
hasFlashSupport(); Determine if the current device instance supports Flash.
-
hasPdfSupport(); Determine if the current device instance supports PDF.
-
hasPhoneNumber(); Determine if the device has an associated phone number. Note: does not retrieve the phone number. This can be useful for determining if the device is a mobile phone versus another wireless capable device.
-
httpsSupport(); Determine if the current device instance supports HTTPS.




