diff options
author | diosmosis <benaka@piwik.pro> | 2015-07-10 06:44:05 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-08-06 17:37:59 +0300 |
commit | df6a92196d292510a0744c4eae3ff861a3136899 (patch) | |
tree | 09a2007553dced98f447c0dd4be1b6f7225fe2f5 /plugins/Goals/Tracker/GoalsRequestProcessor.php | |
parent | 31b93051749f8e7a2f4f8a7ac0fc52124af525f5 (diff) |
Change RequestProcessor method names and remove need to supply Request to Visitor object.
Diffstat (limited to 'plugins/Goals/Tracker/GoalsRequestProcessor.php')
-rw-r--r-- | plugins/Goals/Tracker/GoalsRequestProcessor.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Goals/Tracker/GoalsRequestProcessor.php b/plugins/Goals/Tracker/GoalsRequestProcessor.php index 5336f4fbb9..686649f629 100644 --- a/plugins/Goals/Tracker/GoalsRequestProcessor.php +++ b/plugins/Goals/Tracker/GoalsRequestProcessor.php @@ -14,7 +14,6 @@ use Piwik\Tracker\GoalManager; use Piwik\Tracker\Request; use Piwik\Tracker\RequestProcessor; use Piwik\Tracker\Visit\VisitProperties; -use Piwik\Tracker\Visitor; /** * TODO @@ -53,7 +52,7 @@ class GoalsRequestProcessor extends RequestProcessor return false; } - public function manipulateVisitProperties(VisitProperties $visitProperties, Request $request) + public function afterRequestProcessed(VisitProperties $visitProperties, Request $request) { $visitsConverted = $visitProperties->getRequestMetadata('Goals', 'visitIsConverted'); // TODO: double check, should this be visitIsConverted or someGoalsConverted? @@ -77,7 +76,7 @@ class GoalsRequestProcessor extends RequestProcessor } } - public function processRequest(VisitProperties $visitProperties, Request $request) + public function recordLogs(VisitProperties $visitProperties) { $isManualGoalConversion = self::$goalManager->isManualGoalConversion(); $requestIsEcommerce = self::$goalManager->requestIsEcommerce; @@ -100,7 +99,7 @@ class GoalsRequestProcessor extends RequestProcessor // record the goals if there were conversions in this request (even if the visit itself was not converted) if ($visitProperties->getRequestMetadata('Goals', 'someGoalsConverted')) { - self::$goalManager->recordGoals($visitProperties, $request); + self::$goalManager->recordGoals($visitProperties); } } } |