diff options
author | robocoder <anthon.pang@gmail.com> | 2010-01-30 04:51:09 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-01-30 04:51:09 +0300 |
commit | 0c65b7c72d8cd425d50f8bf33c550e1de47dae8b (patch) | |
tree | dc7907df7d26339598fda423fdc65ae867c3594d /plugins/VisitorInterest/API.php | |
parent | 349741b04d2f8d2955ebbc69a90aa37b7dfb35a7 (diff) |
fixes #1122
git-svn-id: http://dev.piwik.org/svn/trunk@1817 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/VisitorInterest/API.php')
-rw-r--r-- | plugins/VisitorInterest/API.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/VisitorInterest/API.php b/plugins/VisitorInterest/API.php index ad2aeb42fa..e7971ba5fd 100644 --- a/plugins/VisitorInterest/API.php +++ b/plugins/VisitorInterest/API.php @@ -27,7 +27,7 @@ class Piwik_VisitorInterest_API return self::$instance; } - protected function getDataTable($name, $idSite, $period, $date) + static protected function getDataTable($name, $idSite, $period, $date) { Piwik::checkUserHasViewAccess( $idSite ); $archive = Piwik_Archive::build($idSite, $period, $date ); @@ -38,16 +38,16 @@ class Piwik_VisitorInterest_API return $dataTable; } - public function getNumberOfVisitsPerVisitDuration( $idSite, $period, $date ) + static public function getNumberOfVisitsPerVisitDuration( $idSite, $period, $date ) { - $dataTable = $this->getDataTable('VisitorInterest_timeGap', $idSite, $period, $date); + $dataTable = self::getDataTable('VisitorInterest_timeGap', $idSite, $period, $date); $dataTable->queueFilter('ColumnCallbackReplace', array('label', 'Piwik_getDurationLabel')); return $dataTable; } - public function getNumberOfVisitsPerPage( $idSite, $period, $date ) + static public function getNumberOfVisitsPerPage( $idSite, $period, $date ) { - $dataTable = $this->getDataTable('VisitorInterest_pageGap', $idSite, $period, $date); + $dataTable = self::getDataTable('VisitorInterest_pageGap', $idSite, $period, $date); $dataTable->queueFilter('ColumnCallbackReplace', array('label', 'Piwik_getPageGapLabel')); return $dataTable; } |