diff options
author | diosmosis <benaka@piwik.pro> | 2015-10-19 02:34:51 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-10-19 02:34:51 +0300 |
commit | 65526f32054d51e671c80c5221a466b66439b61a (patch) | |
tree | b0e5b4f50b1c3a06dab983c45df267ef272d8656 /core | |
parent | ddfb2863dee378b37a84bc75d1a4d8f2289426e8 (diff) |
Allow tracker Requests to be manipulated via new method Request::setParam().
Diffstat (limited to 'core')
-rw-r--r-- | core/Tracker/Request.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php index 5f3870dcc6..7f194f7d1a 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -394,6 +394,12 @@ class Request return $this->paramsCache[$name]; } + public function setParam($name, $value) + { + $this->params[$name] = $value; + unset($this->paramsCache[$name]); + } + private function hasParam($name) { return isset($this->params[$name]); |