Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-10-19 02:34:51 +0300
committerdiosmosis <benaka@piwik.pro>2015-10-19 02:34:51 +0300
commit65526f32054d51e671c80c5221a466b66439b61a (patch)
treeb0e5b4f50b1c3a06dab983c45df267ef272d8656 /core
parentddfb2863dee378b37a84bc75d1a4d8f2289426e8 (diff)
Allow tracker Requests to be manipulated via new method Request::setParam().
Diffstat (limited to 'core')
-rw-r--r--core/Tracker/Request.php6
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]);