diff options
Diffstat (limited to 'core/Tracker/Generator/Visit.php')
-rw-r--r-- | core/Tracker/Generator/Visit.php | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/core/Tracker/Generator/Visit.php b/core/Tracker/Generator/Visit.php deleted file mode 100644 index 2937ebfe0d..0000000000 --- a/core/Tracker/Generator/Visit.php +++ /dev/null @@ -1,44 +0,0 @@ -<?php -/** - * Piwik - Open source web analytics - * - * @link http://piwik.org - * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later - * @version $Id$ - * - * @category Piwik - * @package Piwik - */ - -/** - * Fake Piwik_Tracker_Visit class that overwrite all the Time related method to be able - * to setup a given timestamp for the generated visitor and actions. - * - * @package Piwik - * @subpackage Piwik_Tracker - */ -class Piwik_Tracker_Generator_Visit extends Piwik_Tracker_Visit -{ - static protected $timestampToUse; - - static public function setTimestampToUse($time) - { - self::$timestampToUse = $time; - } - protected function getCurrentDate( $format = "Y-m-d") - { - return date($format, $this->getCurrentTimestamp() ); - } - - protected function getCurrentTimestamp() - { - self::$timestampToUse = max(@$this->visitorInfo['visit_last_action_time'],self::$timestampToUse); - self::$timestampToUse += mt_rand(4,1840); - return self::$timestampToUse; - } - - protected function updateCookie() - { - @parent::updateCookie(); - } -} |