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 <tsteur@users.noreply.github.com>2016-09-01 09:28:13 +0300
committerGitHub <noreply@github.com>2016-09-01 09:28:13 +0300
commit9efc7341f98058bbe37f70d0a93e9ea47d7caf4c (patch)
tree7373a34dc9dc8850f70c315d597933e3f03f0766 /core/Tracker
parentca0bc1077618db213ffa2e83959c2c47cec9357e (diff)
Remove deprecated events (#10455)
* remove some deprecated events * fix unit tests wants to establish a DB connection, read it from cache * fix possible bug * fix some integration tests * fix tests * fix category was not set * fix some tests * fix integration test * trying to fix pivot tests * add new events * update submodule
Diffstat (limited to 'core/Tracker')
-rw-r--r--core/Tracker/Action.php12
-rw-r--r--core/Tracker/GoalManager.php31
-rw-r--r--core/Tracker/Visit.php34
-rw-r--r--core/Tracker/VisitorRecognizer.php2
4 files changed, 2 insertions, 77 deletions
diff --git a/core/Tracker/Action.php b/core/Tracker/Action.php
index 143e53ad57..8326df8deb 100644
--- a/core/Tracker/Action.php
+++ b/core/Tracker/Action.php
@@ -400,18 +400,6 @@ abstract class Action
$visitActionDebug = $visitAction;
$visitActionDebug['idvisitor'] = bin2hex($visitActionDebug['idvisitor']);
Common::printDebug($visitActionDebug);
-
- /**
- * Triggered after successfully persisting a [visit action entity](/guides/persistence-and-the-mysql-backend#visit-actions).
- *
- * This event is deprecated, use [Dimensions](http://developer.piwik.org/guides/dimensions) instead.
- *
- * @param Action $tracker Action The Action tracker instance.
- * @param array $visitAction The visit action entity that was persisted. Read
- * [this](/guides/persistence-and-the-mysql-backend#visit-actions) to see what it contains.
- * @deprecated
- */
- Piwik::postEvent('Tracker.recordAction', array($trackerAction = $this, $visitAction));
}
public function writeDebugInfo()
diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php
index 3e1312fef3..3721957732 100644
--- a/core/Tracker/GoalManager.php
+++ b/core/Tracker/GoalManager.php
@@ -342,22 +342,6 @@ class GoalManager
if ($recorded) {
$this->recordEcommerceItems($conversion, $items);
}
-
- /**
- * Triggered after successfully persisting an ecommerce conversion.
- *
- * _Note: Subscribers should be wary of doing any expensive computation here as it may slow
- * the tracker down._
- *
- * This event is deprecated, use [Dimensions](http://developer.piwik.org/guides/dimensions) instead.
- *
- * @param array $conversion The conversion entity that was just persisted. See what information
- * it contains [here](/guides/persistence-and-the-mysql-backend#conversions).
- * @param array $visitInformation The visit entity that we are tracking a conversion for. See what
- * information it contains [here](/guides/persistence-and-the-mysql-backend#visits).
- * @deprecated
- */
- Piwik::postEvent('Tracker.recordEcommerceGoal', array($conversion, $visitProperties->getProperties()));
}
/**
@@ -693,20 +677,6 @@ class GoalManager
$conversion = $this->triggerHookOnDimensions($request, $conversionDimensions, 'onGoalConversion', $visitor, $action, $conversion);
$this->insertNewConversion($conversion, $visitProperties->getProperties(), $request);
-
- /**
- * Triggered after successfully recording a non-ecommerce conversion.
- *
- * _Note: Subscribers should be wary of doing any expensive computation here as it may slow
- * the tracker down._
- *
- * This event is deprecated, use [Dimensions](http://developer.piwik.org/guides/dimensions) instead.
- *
- * @param array $conversion The conversion entity that was just persisted. See what information
- * it contains [here](/guides/persistence-and-the-mysql-backend#conversions).
- * @deprecated
- */
- Piwik::postEvent('Tracker.recordStandardGoals', array($conversion));
}
}
@@ -732,6 +702,7 @@ class GoalManager
* information it contains [here](/guides/persistence-and-the-mysql-backend#visits).
* @param \Piwik\Tracker\Request $request An object describing the tracking request being processed.
* @deprecated
+ * @ignore
*/
Piwik::postEvent('Tracker.newConversionInformation', array(&$conversion, $visitInformation, $request));
diff --git a/core/Tracker/Visit.php b/core/Tracker/Visit.php
index 9de1490424..3d306a71f8 100644
--- a/core/Tracker/Visit.php
+++ b/core/Tracker/Visit.php
@@ -211,22 +211,6 @@ class Visit implements VisitInterface
$this->visitProperties->setProperty($name, $value);
}
- /**
- * Triggered before a [visit entity](/guides/persistence-and-the-mysql-backend#visits) is updated when
- * tracking an action for an existing visit.
- *
- * This event can be used to modify the visit properties that will be updated before the changes
- * are persisted.
- *
- * This event is deprecated, use [Dimensions](http://developer.piwik.org/guides/dimensions) instead.
- *
- * @param array &$valuesToUpdate Visit entity properties that will be updated.
- * @param array $visit The entire visit entity. Read [this](/guides/persistence-and-the-mysql-backend#visits)
- * to see what it contains.
- * @deprecated
- */
- Piwik::postEvent('Tracker.existingVisitInformation', array(&$valuesToUpdate, $this->visitProperties->getProperties()));
-
foreach ($this->requestProcessors as $processor) {
$processor->onExistingVisit($valuesToUpdate, $this->visitProperties, $this->request);
}
@@ -278,24 +262,6 @@ class Visit implements VisitInterface
$this->triggerHookOnDimensions($dimensions, 'onConvertedVisit');
}
- $properties = &$this->visitProperties->getProperties();
-
- /**
- * Triggered before a new [visit entity](/guides/persistence-and-the-mysql-backend#visits) is persisted.
- *
- * This event can be used to modify the visit entity or add new information to it before it is persisted.
- * The UserCountry plugin, for example, uses this event to add location information for each visit.
- *
- * This event is deprecated, use [Dimensions](http://developer.piwik.org/guides/dimensions) instead.
- *
- * @param array &$visit The visit entity. Read [this](/guides/persistence-and-the-mysql-backend#visits) to see
- * what information it contains.
- * @param \Piwik\Tracker\Request $request An object describing the tracking request being processed.
- *
- * @deprecated
- */
- Piwik::postEvent('Tracker.newVisitorInformation', array(&$properties, $this->request));
-
foreach ($this->requestProcessors as $processor) {
$processor->onNewVisit($this->visitProperties, $this->request);
}
diff --git a/core/Tracker/VisitorRecognizer.php b/core/Tracker/VisitorRecognizer.php
index d5f5e3c502..a21ea063e0 100644
--- a/core/Tracker/VisitorRecognizer.php
+++ b/core/Tracker/VisitorRecognizer.php
@@ -249,7 +249,7 @@ class VisitorRecognizer
*
* This event is deprecated, use [Dimensions](http://developer.piwik.org/guides/dimensions) instead.
*
- * @deprecated
+ * @deprecated
*/
$this->eventDispatcher->postEvent('Tracker.getVisitFieldsToPersist', array(&$fields));