diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2009-04-07 02:12:25 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2009-04-07 02:12:25 +0400 |
commit | 2d5d9719394ea8bd6858a326abf190ee57bbedfd (patch) | |
tree | 4d5cfee4fafab88557a7c096c4d5559abe21721d /plugins/VisitorInterest/API.php | |
parent | f09495d5d70edd87a159faa07487b88aa9506bff (diff) |
Filters are now applied by
$table->filter('Limit', array(2,2));
rather than
$table->filter('Piwik_DataTable_Filter_Limit', array(2,2));
old way still works though
git-svn-id: http://dev.piwik.org/svn/trunk@1049 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 a7cf3718b4..9d7be0264e 100644 --- a/plugins/VisitorInterest/API.php +++ b/plugins/VisitorInterest/API.php @@ -31,23 +31,23 @@ class Piwik_VisitorInterest_API Piwik::checkUserHasViewAccess( $idSite ); $archive = Piwik_Archive::build($idSite, $period, $date ); $dataTable = $archive->getDataTable($name); - $dataTable->filter('Piwik_DataTable_Filter_Sort',array(Piwik_Archive::INDEX_NB_VISITS)); - $dataTable->queueFilter('Piwik_DataTable_Filter_ReplaceColumnNames'); - $dataTable->queueFilter('Piwik_DataTable_Filter_Sort', array('label', 'asc', true)); + $dataTable->filter('Sort',array(Piwik_Archive::INDEX_NB_VISITS)); + $dataTable->queuefilter('ReplaceColumnNames'); + $dataTable->queuefilter('Sort', array('label', 'asc', true)); return $dataTable; } public function getNumberOfVisitsPerVisitDuration( $idSite, $period, $date ) { $dataTable = $this->getDataTable('VisitorInterest_timeGap', $idSite, $period, $date); - $dataTable->queueFilter('Piwik_DataTable_Filter_ColumnCallbackReplace', array('label', 'Piwik_getDurationLabel')); + $dataTable->queuefilter('ColumnCallbackReplace', array('label', 'Piwik_getDurationLabel')); return $dataTable; } public function getNumberOfVisitsPerPage( $idSite, $period, $date ) { $dataTable = $this->getDataTable('VisitorInterest_pageGap', $idSite, $period, $date); - $dataTable->queueFilter('Piwik_DataTable_Filter_ColumnCallbackReplace', array('label', 'Piwik_getPageGapLabel')); + $dataTable->queuefilter('ColumnCallbackReplace', array('label', 'Piwik_getPageGapLabel')); return $dataTable; } } |