diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-11-05 07:30:56 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-11-05 07:30:56 +0400 |
commit | 8a6fad6d93c5f693fd1bbb1498c731f6d5595ee6 (patch) | |
tree | 20dc56f904293f70510a20dd0f50246c6c4e9c3f /plugins | |
parent | 09b56ba3d65de601cea754941b23788f777fa794 (diff) |
Refs #4278 Simplifying ArchiveProcessor: moving internal logic to ArchiveProcessor\Loader
ArchiveProcessor becomes a helper class easier to understand for plugin developers
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Actions/Archiver.php | 2 | ||||
-rw-r--r-- | plugins/Goals/Archiver.php | 4 | ||||
-rw-r--r-- | plugins/VisitTime/Archiver.php | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Actions/Archiver.php b/plugins/Actions/Archiver.php index f11ea3963a..8b3a0b8a3b 100644 --- a/plugins/Actions/Archiver.php +++ b/plugins/Actions/Archiver.php @@ -79,7 +79,7 @@ class Archiver extends \Piwik\Plugin\Archiver function __construct($processor) { parent::__construct($processor); - $this->isSiteSearchEnabled = $processor->getSite()->isSiteSearchEnabled(); + $this->isSiteSearchEnabled = $processor->getParams()->getSite()->isSiteSearchEnabled(); } /** diff --git a/plugins/Goals/Archiver.php b/plugins/Goals/Archiver.php index 33174d5a3e..87983faf75 100644 --- a/plugins/Goals/Archiver.php +++ b/plugins/Goals/Archiver.php @@ -275,7 +275,7 @@ class Archiver extends \Piwik\Plugin\Archiver // Per item doesn't support segment // Also, when querying Goal metrics for visitorType==returning, we wouldnt want to trigger an extra request // event if it did support segment - if (!$this->getProcessor()->getSegment()->isEmpty()) { + if (!$this->getProcessor()->getParams()->getSegment()->isEmpty()) { return false; } return true; @@ -395,7 +395,7 @@ class Archiver extends \Piwik\Plugin\Archiver /* * Archive General Goal metrics */ - $goalIdsToSum = GoalManager::getGoalIds($this->getProcessor()->getSite()->getId()); + $goalIdsToSum = GoalManager::getGoalIds($this->getProcessor()->getParams()->getSite()->getId()); //Ecommerce $goalIdsToSum[] = GoalManager::IDGOAL_ORDER; diff --git a/plugins/VisitTime/Archiver.php b/plugins/VisitTime/Archiver.php index 694f9eef53..58516bee7f 100644 --- a/plugins/VisitTime/Archiver.php +++ b/plugins/VisitTime/Archiver.php @@ -54,8 +54,8 @@ class Archiver extends \Piwik\Plugin\Archiver protected function convertTimeToLocalTimezone(DataArray &$array) { - $date = Date::factory($this->getProcessor()->getDateStart()->getDateStartUTC())->toString(); - $timezone = $this->getProcessor()->getSite()->getTimezone(); + $date = Date::factory($this->getProcessor()->getParams()->getDateStart()->getDateStartUTC())->toString(); + $timezone = $this->getProcessor()->getParams()->getSite()->getTimezone(); $converted = array(); foreach ($array->getDataArray() as $hour => $stats) { |