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.13. The Session UserAgent Storage Adapter

    37.13.1. Overview

    This storage adapter utilizes Zend_Session_Namespace for persisting discovered device capabilities for a given user session.

    37.13.2. Quick Start

    This particular storage adapter is used by default with Zend_Http_UserAgent. As such, you will benefit from it from the outset without any real configuration necessary.

    You can alter the behavior slightly, however, by altering the namespace used, and the key (or member) in which data is written. You may do so by specifying the browser_type (mapped to namespace) and member options in your configuration. "Session" "all" "data"

    Typically, you will not pass the browser_type option, and instead let this be populated by the value discovered by the UserAgent class.

    37.13.3. Configuration Options

    Session Storage Options


    Provide this in order to hardcode the session namespace in which you wish to store the User-Agent data. By default, the currently discovered browser type will be used, or, if not provided, the value "Zend_Http_UserAgent".


    This is the specific variable member within the session namespace in which the data will be stored. By default, the value "storage" will be used.

    37.13.4. Available Methods

    __construct($options = null);

    Accepts an array or object containing options. See the configuration options section for details on the $options variable.


    Used to determine whether or not the storage has been populated yet.


    Retrieve previously stored data from the storage adapter.


    Write data to the storage adapter for later retrieval. $contents should be a string containing the serialized UserAgent object.


    Clear the storage of any data.

    digg delicious meneame google twitter technorati facebook