/**
* Add or replace params in the query string for the current URI, and
* return the old query.
*
* @param array $queryParams
* @return string Old query string
*/
public function addReplaceQueryParameters(array
$queryParams) { $queryParams =
array_merge($this->
getQueryAsArray(),
$queryParams);
return $this->
setQuery($queryParams);
} /**
* Remove params in the query string for the current URI, and
* return the old query.
*
* @param array $queryParamKeys
* @return string Old query string
*/
public function removeQueryParameters(array
$queryParamKeys) {