Introducción a Zend Framework

 Aprendiendo Zend Framework


 Referencia de Zend Framework

  • Zend_Gdata
  • Zend_Http
  • Zend_InfoCard
  • Zend_Json
  • Zend_Layout
  • Zend_Ldap
  • Zend_Loader
  • Zend_Locale
  • Zend_Log
  • Zend_Mail
  • Zend_Markup
  • Zend_Measure
  • Zend_Memory
  • Zend_Mime
  • Zend_Navigation
  • Zend_Oauth
  • Zend_OpenId
  • Zend_Paginator
  • Zend_Pdf
  • Zend_ProgressBar
  • Zend_Queue
  • Zend_Reflection
  • Zend_Registry
  • Zend_Rest

  • Zend_Search_Lucene
  • Zend_Serializer
  • Zend_Server
  • Zend_Service
  • Zend_Session
  • Zend_Soap
  • Zend_Tag
  • Zend_Test
  • Zend_Text
  • Zend_TimeSync
  • Zend_Tool
  • Zend_Tool_Framework
  • Zend_Tool_Project
  • Zend_Translate
  • Zend_Uri
  • Zend_Validate
  • Zend_Version
  • Zend_View
  • Zend_Wildfire
  • Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Traducción al 26.9% - Actualizado el 2011-11-16 - Revisión 24249 - Versión ZF 1.11.x

    37.10. The DeviceAtlas UserAgent Features Adapter

    37.10.1. Overview

    DeviceAtlas provides a comprehensive mobile device database, in editions ranging from free to enterprise level. The databases provided with all editions utilize the same API, which is shipped as part of the DeviceAtlas offering. This particular features adapter interacts with the DeviceAtlas API in order to return device capabilities.

    37.10.2. Quick Start

    You will first need to download the DeviceAtlas PHP API, available via their downloads page. Unpack this into your library, and make note of the directory in which it resides.

    From there, you may optionally desire to download one of the DeviceAtlas databases; see their site for details. When you do, make sure you make note of where the data file resides.

    Once you have this information, you may configure Zend_Http_UserAgent to utilize it. The easiest way is through your application configuration.

    resources.useragent.deviceatlas.deviceatlas_lib_dir APPLICATION_PATH "/../library/DeviceAtlas"
    resources.useragent.deviceatlas.deviceatlas_data APPLICATION_PATH "/../data/DeviceAtlas/json/DeviceAtlas.json

    37.10.3. Configuration Options

    DeviceAtlas API Options


    If using the DeviceAtlas API, use this key to specify in which directory the library exists. If the Mobi_Mtld_DA_Api class is autoloadable, you may omit this setting.


    If using the DeviceAtlas API, use this key to specify the location of the data file you will use.

    37.10.4. Available Methods

    getFromRequest(array $request, array $config);

    Decompose the request in order to return an array of device capabilities.

    digg delicious meneame google twitter technorati facebook