Introducción a Zend Framework

 Aprendiendo Zend Framework

Apéndice

 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.9. The WURFL UserAgent Features Adapter

    37.9.1. Overview

    WURFL (Wireless Universal Resource File) is a database of mobile device capabilities. This class provides a features adapter that utilizes the WURFL PHP API in order to discover mobile device capabilities to inject into UserAgent device instances.

    37.9.2. Quick Start

    Please see the Zend_Http_UserAgent quick start for an example.

    37.9.3. Configuration Options

    WURFL API Options

    wurflapi.wurfl_api_version

    If using the WURFL API, use this key to specify which version you are using; typically, this will be either "1.0" or "1.1".

    wurflapi.wurfl_lib_dir

    If using the WURFL API, use this key to specify in which directory the library exists.

    wurflapi.wurfl_config_file

    If using the WURFL API, use this key to specify the location of the configuration file you will use; typically, this will be resources/wurfl-config.php within the wurfl_lib_dir.

    wurflapi.wurfl_config_array.wurfl.main-file

    If using version 1.1 of the WURFL API, you can omit using a wurfl_config_file, and instead provide an associative array of configuration values. This particular value indicates the location of the wurfl.xml file containing the actual WURFL database.

    wurflapi.wurfl_config_array.wurfl.patches[]

    If using version 1.1 of the WURFL API, you can omit using a wurfl_config_file, and instead provide an associative array of configuration values. This particular value is an array of file locations containing patchfiles for the wurfl.main-file (which are used to ammend and extend the primary database file).

    wurflapi.wurfl_config_array.persistence.provider

    If using version 1.1 of the WURFL API, you can omit using a wurfl_config_file, and instead provide an associative array of configuration values. This particular value indicates the type of persistence provider used when caching discovered capabilities. See the WURFL documentation for potential values; "file" is a known good value.

    wurflapi.wurfl_config_array.persistence.dir

    If using version 1.1 of the WURFL API, you can omit using a wurfl_config_file, and instead provide an associative array of configuration values. This particular value indicates the location where the persistence provider will cache discovered capabilities.

    37.9.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

    Comentarios

    Loading...