src/Zend/Http/UserAgent.php
public function setConfig($config = array())
    {
        if ($config instanceof Zend_Config) {
            $config = $config->toArray();
        }

        // Verify that Config parameters are in an array.
        if (!is_array($config) && !$config instanceof Traversable) {

            throw new Zend_Http_UserAgent_Exception(sprintf(
                'Config parameters must be in an array or a Traversable object; received "%s"',
                (is_object($config) ? get_class($config) : gettype($config))
            ));
        }

        if ($config instanceof Traversable) {
            $tmp = array();
            foreach ($config as $key => $value) {
                $tmp[$key] = $value;
            }
            $config = $tmp;
            unset($tmp);
        }

        $this->_config = array_merge($this->_config, $config);
        return $this;
    }
public function setConfig($config = array())
    {
        if ($config instanceof Zend_Config) {
            $config = $config->toArray();
        }

        // Verify that Config parameters are in an array.
        if (!is_array($config) && !$config instanceof Traversable) {

            throw new Zend_Http_UserAgent_Exception(sprintf(
                'Config parameters must be in an array or a Traversable object; received "%s"',
                (is_object($config) ? get_class($config) : gettype($config))
            ));
        }

        if ($config instanceof Traversable) {
            $tmp = array();
            foreach ($config as $key => $value) {
                $tmp[$key] = $value;
            }
            $config = $tmp;
            unset($tmp);
        }

        $this->_config = array_merge($this->_config, $config);
        return $this;
    }
public function setConfig ( $ config = array ( ) ) { if ( $ config instanceof Zend_Config ) { $ config = $ config -> toArray ( ) ; } // Verify that Config parameters are in an array. if ( ! is_array ( $ config ) && ! $ config instanceof Traversable ) { throw new Zend_Http_UserAgent_Exception ( sprintf ( 'Config parameters must be in an array or a Traversable object; received "%s"' , ( is_object ( $ config ) ? get_class ( $ config ) : gettype ( $ config ) ) ) ) ; } if ( $ config instanceof Traversable ) { $ tmp = array ( ) ; foreach ( $ config as $ key => $ value ) { $ tmp [ $ key ] = $ value ; } $ config = $ tmp ; unset ( $ tmp ) ; } $ this -> _config = array_merge ( $ this -> _config , $ config ) ; return $ this ; }
Config parameters is an Array or a Zend_Config object

The allowed parameters are :
- the identification sequence (can be empty) => desktop browser type is the
default browser type returned
$config['identification_sequence'] : ',' separated browser types
- the persistent storage adapter
$config['persistent_storage_adapter'] = "Session" or "NonPersistent"
- to add or replace a browser type device
$config[(type)]['device']['path']
$config[(type)]['device']['classname']
- to add or replace a browser type features adapter
$config[(type)]['features']['path']
$config[(type)]['features']['classname']

@param  mixed $config (option) Config array
@return Zend_Http_UserAgent
Config parameters is an Array or a Zend_Config object