Beispiel #1
0
 /**
  * Rewrites the numeric index keys for the request_vars array
  *
  * @param array $new_keys -- an array holding the keys to be rewritten in the order in which they should be rewritten
  * @param array $new_values -- an array holding the values associated with the keys to be written. 
  * @access public
  * @return System_Request_Url
  */
 public function rewriteKeys(array $new_keys = array(), array $new_vals = array())
 {
     if (count($new_keys) > 0) {
         $new = array();
         $old = self::$_request_vars;
         foreach ($new_keys as $it_key => $key) {
             $new[$key] = isset($old[$it_key]) ? $old[$it_key] : $new_vals[$it_key];
         }
         self::$_request_vars = $new;
     }
     return $this;
 }