diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-11-04 10:40:57 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-11-04 10:40:57 +0400 |
commit | 3ffd63639ddbcc1be6606213b4b582c560e50b45 (patch) | |
tree | b09f11e4a4f98599cf3a0d3361f0db412aa14a38 /plugins/Goals | |
parent | 889dbfd680819f8873f0442bbd21bd81d26d6745 (diff) |
Renaming archiveDay -> aggregateDayReport and archivePeriod -> aggregateMultipleReports
Diffstat (limited to 'plugins/Goals')
-rw-r--r-- | plugins/Goals/Archiver.php | 4 | ||||
-rw-r--r-- | plugins/Goals/Goals.php | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Goals/Archiver.php b/plugins/Goals/Archiver.php index a17b9a8dfa..33802c2194 100644 --- a/plugins/Goals/Archiver.php +++ b/plugins/Goals/Archiver.php @@ -84,7 +84,7 @@ class Archiver extends \Piwik\Plugin\Archiver */ protected $itemReports = array(); - public function archiveDay() + public function aggregateDayReport() { $this->archiveGeneralGoalMetrics(); $this->archiveEcommerceItems(); @@ -379,7 +379,7 @@ class Archiver extends \Piwik\Plugin\Archiver /** * @internal param $this->getProcessor() */ - public function archivePeriod() + public function aggregateMultipleReports() { /* * Archive Ecommerce Items diff --git a/plugins/Goals/Goals.php b/plugins/Goals/Goals.php index 3ef3e8b213..6b752b16d4 100644 --- a/plugins/Goals/Goals.php +++ b/plugins/Goals/Goals.php @@ -92,8 +92,8 @@ class Goals extends \Piwik\Plugin 'AssetManager.getJavaScriptFiles' => 'getJsFiles', 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', 'Site.getSiteAttributes' => 'fetchGoalsFromDb', - 'ArchiveProcessor.Day.compute' => 'archiveDay', - 'ArchiveProcessor.Period.compute' => 'archivePeriod', + 'ArchiveProcessor.aggregateDayReport' => 'aggregateDayReport', + 'ArchiveProcessor.Period.compute' => 'aggregateMultipleReports', 'API.getReportMetadata.end' => 'getReportMetadata', 'API.getSegmentsMetadata' => 'getSegmentsMetadata', 'WidgetsList.addWidgets' => 'addWidgets', @@ -512,11 +512,11 @@ class Goals extends \Piwik\Plugin * Will process Goal stats overall and for each Goal. * Also processes the New VS Returning visitors conversion stats. */ - public function archiveDay(ArchiveProcessor\Day $archiveProcessor) + public function aggregateDayReport(ArchiveProcessor\Day $archiveProcessor) { $archiving = new Archiver($archiveProcessor); if ($archiving->shouldArchive()) { - $archiving->archiveDay(); + $archiving->aggregateDayReport(); } } @@ -524,11 +524,11 @@ class Goals extends \Piwik\Plugin * Hooks on Period archiving. * Sums up Goal conversions stats, and processes overall conversion rate */ - public function archivePeriod(ArchiveProcessor\Period $archiveProcessor) + public function aggregateMultipleReports(ArchiveProcessor\Period $archiveProcessor) { $archiving = new Archiver($archiveProcessor); if ($archiving->shouldArchive()) { - $archiving->archivePeriod(); + $archiving->aggregateMultipleReports(); } } |