web/lib/Zend/Controller/Request/Abstract.php
changeset 886 1e110b03ae96
parent 807 877f952ae2bd
child 1230 68c69c656a2c
equal deleted inserted replaced
885:2251fb41dbc7 886:1e110b03ae96
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Controller
    16  * @package    Zend_Controller
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
    19  * @version    $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * @category   Zend
    23  * @category   Zend
    24  * @package    Zend_Controller
    24  * @package    Zend_Controller
    25  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    25  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    26  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    26  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    27  */
    27  */
    28 abstract class Zend_Controller_Request_Abstract
    28 abstract class Zend_Controller_Request_Abstract
    29 {
    29 {
    30     /**
    30     /**
   310      */
   310      */
   311     public function setParams(array $array)
   311     public function setParams(array $array)
   312     {
   312     {
   313         $this->_params = $this->_params + (array) $array;
   313         $this->_params = $this->_params + (array) $array;
   314 
   314 
   315         foreach ($this->_params as $key => $value) {
   315         foreach ($array as $key => $value) {
   316             if (null === $value) {
   316             if (null === $value) {
   317                 unset($this->_params[$key]);
   317                 unset($this->_params[$key]);
   318             }
   318             }
   319         }
   319         }
   320 
   320