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 <thomas.steur@gmail.com>2015-01-15 22:34:50 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-01-15 22:34:50 +0300
commitcc8a9d16fc0e991ed3c60d1f1164479154fdb9af (patch)
tree7c5d28208313a898ac2504de051b6af6a9e53313 /plugins/VisitorInterest/Controller.php
parent2783957a554cbc6435678542c814f8798fcedb83 (diff)
fixed engangement screen which was wrong because of a merge and updated submodule to fix more ui tests
Diffstat (limited to 'plugins/VisitorInterest/Controller.php')
-rw-r--r--plugins/VisitorInterest/Controller.php25
1 files changed, 5 insertions, 20 deletions
diff --git a/plugins/VisitorInterest/Controller.php b/plugins/VisitorInterest/Controller.php
index 939318534e..835af723fe 100644
--- a/plugins/VisitorInterest/Controller.php
+++ b/plugins/VisitorInterest/Controller.php
@@ -18,26 +18,11 @@ class Controller extends \Piwik\Plugin\Controller
{
public function index()
{
- $byDimension = new View\ReportsByDimension('VisitorInterest');
-
- $reportsToAdd = array(
- new GetNumberOfVisitsPerVisitDuration(),
- new GetNumberOfVisitsPerPage(),
- new GetNumberOfVisitsByVisitCount(),
- new GetNumberOfVisitsByDaysSinceLast()
- );
-
- foreach ($reportsToAdd as $report) {
- /** @var \Piwik\Plugin\Report $report */
- $byDimension->addReport(
- $report->getCategory(),
- $report->getWidgetTitle(),
- $report->getModule() . '.' . $report->getAction(),
- array());
- }
-
$view = new View('@VisitorInterest/index');
- $view->reports = $byDimension->render();
+ $view->dataTableNumberOfVisitsPerVisitDuration = $this->renderReport(new GetNumberOfVisitsPerVisitDuration());
+ $view->dataTableNumberOfVisitsPerPage = $this->renderReport(new GetNumberOfVisitsPerPage());
+ $view->dataTableNumberOfVisitsByVisitNum = $this->renderReport(new GetNumberOfVisitsByVisitCount());
+ $view->dataTableNumberOfVisitsByDaysSinceLast = $this->renderReport(new GetNumberOfVisitsByDaysSinceLast());
return $view->render();
}
-}
+} \ No newline at end of file