Skip to content
Snippets Groups Projects
Commit 1e8490b4 authored by David Maus's avatar David Maus
Browse files

New function: Exchange parameter array in ParamBag

* VuFindSearch/ParamBag.php (exchangeArray): New function. Exchange
  parameter array.
parent 979b59e1
Branches
Tags
No related merge requests found
......@@ -192,6 +192,20 @@ class ParamBag
return $this->params;
}
/**
* Exchange the parameter array.
*
* @param array $input New parameters
*
* @return array Old parameters
*/
public function exchangeArray(array $input)
{
$current = $this->params;
$this->params = $input;
return $current;
}
/**
* Return array of params ready to be used in a HTTP request.
*
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment