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
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-12-04 05:04:02 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-12-04 05:04:02 +0300
commit9d71fc8e92e5b434fd69c7ab4b83a69169064cf3 (patch)
tree8cb2798746e4defb1a978cd758df72006ec419ae /core/SettingsServer.php
parent784b738f9c4a92c42a9d8e6b85c28a82a3af0a2f (diff)
Tracker refactoring
Diffstat (limited to 'core/SettingsServer.php')
-rw-r--r--core/SettingsServer.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/SettingsServer.php b/core/SettingsServer.php
index fc9d5f6bc1..3f6fbb8878 100644
--- a/core/SettingsServer.php
+++ b/core/SettingsServer.php
@@ -41,6 +41,22 @@ class SettingsServer
}
/**
+ * Mark the current request as a Tracker API request
+ */
+ public static function setIsTrackerApiRequest()
+ {
+ $GLOBALS['PIWIK_TRACKER_MODE'] = true;
+ }
+
+ /**
+ * Set the current request is not a tracker API request
+ */
+ public static function setIsNotTrackerApiRequest()
+ {
+ $GLOBALS['PIWIK_TRACKER_MODE'] = false;
+ }
+
+ /**
* Returns `true` if running on Microsoft IIS 7 (or above), `false` if otherwise.
*
* @return bool