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>2013-11-18 07:02:19 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-11-18 07:02:19 +0400
commit9060f0180cb935efd1925942d3a8ce1cf309459a (patch)
treeb474d8758f3b45063e4bd430f5daa028b369c879 /plugins/VisitorInterest/Controller.php
parent4658d92891093982d979e7ec8343ee4ccc510a38 (diff)
getting rid of the fetch parameter
Diffstat (limited to 'plugins/VisitorInterest/Controller.php')
-rw-r--r--plugins/VisitorInterest/Controller.php20
1 files changed, 9 insertions, 11 deletions
diff --git a/plugins/VisitorInterest/Controller.php b/plugins/VisitorInterest/Controller.php
index a17b2e74ca..d57650f3d7 100644
--- a/plugins/VisitorInterest/Controller.php
+++ b/plugins/VisitorInterest/Controller.php
@@ -25,40 +25,38 @@ class Controller extends \Piwik\Plugin\Controller
$view->dataTableNumberOfVisitsPerPage = $this->getNumberOfVisitsPerPage(true);
$view->dataTableNumberOfVisitsByVisitNum = $this->getNumberOfVisitsByVisitCount(true);
$view->dataTableNumberOfVisitsByDaysSinceLast = $this->getNumberOfVisitsByDaysSinceLast(true);
- echo $view->render();
+ return $view->render();
}
- public function getNumberOfVisitsPerVisitDuration($fetch = false)
+ public function getNumberOfVisitsPerVisitDuration()
{
- return $this->renderReport(__FUNCTION__, $fetch);
+ return $this->renderReport(__FUNCTION__);
}
- public function getNumberOfVisitsPerPage($fetch = false)
+ public function getNumberOfVisitsPerPage()
{
- return $this->renderReport(__FUNCTION__, $fetch);
+ return $this->renderReport(__FUNCTION__);
}
/**
* Returns a report that lists the count of visits for different ranges of
* a visitor's visit number.
*
- * @param bool $fetch Whether to return the rendered view as a string or echo it.
* @return string The rendered report or nothing if $fetch is set to false.
*/
- public function getNumberOfVisitsByVisitCount($fetch = false)
+ public function getNumberOfVisitsByVisitCount()
{
- return $this->renderReport(__FUNCTION__, $fetch);
+ return $this->renderReport(__FUNCTION__);
}
/**
* Returns a rendered report that lists the count of visits for different ranges
* of days since a visitor's last visit.
*
- * @param bool $fetch Whether to return the rendered view as a string or echo it.
* @return string The rendered report or nothing if $fetch is set to false.
*/
- public function getNumberOfVisitsByDaysSinceLast($fetch = false)
+ public function getNumberOfVisitsByDaysSinceLast()
{
- return $this->renderReport(__FUNCTION__, $fetch);
+ return $this->renderReport(__FUNCTION__);
}
}