diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2009-05-31 15:31:14 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2009-05-31 15:31:14 +0400 |
commit | adb2d7a006149fa391a436844e7561453393169a (patch) | |
tree | e67cbf2d1f837dffeaaacdb98f7fa237a3312241 /plugins/VisitorInterest/API.php | |
parent | 0b89c780eb817c1daa12ae986a6e4260b7d23d30 (diff) |
- on a rainy sunday night, implented one of the most requested feature which was little work and should make a lot of users happy!
fixes #747
adding links on both sub tables for search engines and keywords linking directly to the search engine page for this keyword
added definition for the main search engines (approx 15) users can contribute more if they like; if a definition, eg. "search?q={k}" for Google is not found, then we simply link to the search engine homepage.
updated FAQ on how to add a search engine see http://piwik.org/faq/general/#faq_39
added tests to check that the search engine file is defined properly
- renamed queuefilter to queueFilter for consistency
git-svn-id: http://dev.piwik.org/svn/trunk@1158 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/VisitorInterest/API.php')
-rw-r--r-- | plugins/VisitorInterest/API.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/VisitorInterest/API.php b/plugins/VisitorInterest/API.php index 9d7be0264e..3a95380a66 100644 --- a/plugins/VisitorInterest/API.php +++ b/plugins/VisitorInterest/API.php @@ -32,22 +32,22 @@ class Piwik_VisitorInterest_API $archive = Piwik_Archive::build($idSite, $period, $date ); $dataTable = $archive->getDataTable($name); $dataTable->filter('Sort',array(Piwik_Archive::INDEX_NB_VISITS)); - $dataTable->queuefilter('ReplaceColumnNames'); - $dataTable->queuefilter('Sort', array('label', 'asc', true)); + $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('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('ColumnCallbackReplace', array('label', 'Piwik_getPageGapLabel')); + $dataTable->queueFilter('ColumnCallbackReplace', array('label', 'Piwik_getPageGapLabel')); return $dataTable; } } |