Http/UserAgent/Device.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    Zend Framework
    LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
    Category
    Zend  
    Copyright
    Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
    License
    New BSD License  
    Package
    Zend_Http  
    Subpackage
    UserAgent  

    \Zend_Http_UserAgent_Device

    Package: Zend_Http\UserAgent
    Interface defining a browser device type.
    Parent(s)
    \Serializable
    Category
    Zend  
    Copyright
    Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
    License
    New BSD License  

    Methods

    methodpublic__construct(null | string | array $userAgent = null, array $server = array(), array $config = array()) : void

    Constructor

    Allows injecting user agent, server array, and/or config array. If an array is provided for the first argument, the assumption should be that the device object is being seeded with cached values from serialization.
    Parameters
    NameTypeDescription
    $userAgentnull | string | array
    $serverarray
    $configarray
    methodpublicgetAllFeatures() : array

    Get all browser/device features

    Returns
    TypeDescription
    array
    methodpublicgetAllGroups() : void

    Get all of the browser/device's features' groups

    methodpublicgetBrowser() : string

    Get the browser type

    Returns
    TypeDescription
    string
    methodpublicgetBrowserVersion() : string

    Retrurn the browser version

    Returns
    TypeDescription
    string
    methodpublicgetFeature(string $feature) : mixed

    Get the value of a specific device feature

    Parameters
    NameTypeDescription
    $featurestring
    Returns
    TypeDescription
    mixed
    methodpublicgetGroup(string $group) : array

    Get an array of features associated with a group

    Parameters
    NameTypeDescription
    $groupstring
    Returns
    TypeDescription
    array
    methodpublicgetImageFormatSupport() : array

    Retrieve image format support

    Returns
    TypeDescription
    array
    methodpublicgetImages() : array

    Get image types

    Returns
    TypeDescription
    array
    methodpublicgetMaxImageHeight() : int

    Get the maximum image height supported by this device

    Returns
    TypeDescription
    int
    methodpublicgetMaxImageWidth() : int

    Get the maximum image width supported by this device

    Returns
    TypeDescription
    int
    methodpublicgetPhysicalScreenHeight() : int

    Get the physical screen height of this device

    Returns
    TypeDescription
    int
    methodpublicgetPhysicalScreenWidth() : int

    Get the physical screen width of this device

    Returns
    TypeDescription
    int
    methodpublicgetPreferredMarkup() : string

    Get the preferred markup type

    Returns
    TypeDescription
    string
    methodpublicgetUserAgent() : string

    Get the user agent string

    Returns
    TypeDescription
    string
    methodpublicgetXhtmlSupportLevel() : int

    Get supported X/HTML version

    Returns
    TypeDescription
    int
    methodpublichasFeature(string $feature) : bool

    Whether or not the device has a given feature

    Parameters
    NameTypeDescription
    $featurestring
    Returns
    TypeDescription
    bool
    methodpublichasFlashSupport() : bool

    Does the device support Flash?

    Returns
    TypeDescription
    bool
    methodpublichasPdfSupport() : bool

    Does the device support PDF?

    Returns
    TypeDescription
    bool
    methodpublichasPhoneNumber() : bool

    Does the device have a phone number associated with it?

    Returns
    TypeDescription
    bool
    methodpublichttpsSupport() : bool

    Does the device support HTTPS?

    Returns
    TypeDescription
    bool
    methodpublicmatch(string $userAgent, array $server) : bool | array
    static

    Attempt to match the user agent

    Return either an array of browser signature strings, or a boolean.
    Parameters
    NameTypeDescription
    $userAgentstring
    $serverarray
    Returns
    TypeDescription
    bool | array
    Documentation was generated by phpDocumentor 2.2.0 .