diff options
author | robocoder <anthon.pang@gmail.com> | 2010-02-10 11:14:15 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-02-10 11:14:15 +0300 |
commit | 6c3373e2048a522b9005506b7ef98df609e5cb36 (patch) | |
tree | 252bd657aa53e6fac4690cd8cd6bcd536472c135 /plugins/VisitorInterest/API.php | |
parent | ba61974093d4f7d722170579818fec683bd9a1c3 (diff) |
fixes #1122 - per Matt's review
git-svn-id: http://dev.piwik.org/svn/trunk@1832 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 e7971ba5fd..ad2aeb42fa 100644 --- a/plugins/VisitorInterest/API.php +++ b/plugins/VisitorInterest/API.php @@ -27,7 +27,7 @@ class Piwik_VisitorInterest_API return self::$instance; } - static protected function getDataTable($name, $idSite, $period, $date) + 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; } - static public function getNumberOfVisitsPerVisitDuration( $idSite, $period, $date ) + public function getNumberOfVisitsPerVisitDuration( $idSite, $period, $date ) { - $dataTable = self::getDataTable('VisitorInterest_timeGap', $idSite, $period, $date); + $dataTable = $this->getDataTable('VisitorInterest_timeGap', $idSite, $period, $date); $dataTable->queueFilter('ColumnCallbackReplace', array('label', 'Piwik_getDurationLabel')); return $dataTable; } - static public function getNumberOfVisitsPerPage( $idSite, $period, $date ) + public function getNumberOfVisitsPerPage( $idSite, $period, $date ) { - $dataTable = self::getDataTable('VisitorInterest_pageGap', $idSite, $period, $date); + $dataTable = $this->getDataTable('VisitorInterest_pageGap', $idSite, $period, $date); $dataTable->queueFilter('ColumnCallbackReplace', array('label', 'Piwik_getPageGapLabel')); return $dataTable; } |