diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-01 11:27:19 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-01 11:27:19 +0400 |
commit | 92da6b8181282800f4f28cae77d776b67540b477 (patch) | |
tree | a6e07ae46cbfa0b7a969392d00107b74c9f807e4 /plugins/Referers | |
parent | 9722d2680762026150bcbc3c96265bbc09802006 (diff) |
- Introducing the new "ExampleUI" plugin which shows how to plot data easily in Piwik, reusing the existing framework (evolution graph, pie chart, bar graph, sparklines, tag clouds, tables, and more!)
Diffstat (limited to 'plugins/Referers')
-rw-r--r-- | plugins/Referers/API.php | 6 | ||||
-rw-r--r-- | plugins/Referers/Controller.php | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Referers/API.php b/plugins/Referers/API.php index 47a214d190..0f0affebf4 100644 --- a/plugins/Referers/API.php +++ b/plugins/Referers/API.php @@ -50,9 +50,13 @@ class Piwik_Referers_API return $dataTable; } - function getRefererType($idSite, $period, $date) + function getRefererType($idSite, $period, $date, $typeReferer = false) { $dataTable = $this->getDataTable('Referers_type', $idSite, $period, $date, $expanded = false); + if($typeReferer !== false) + { + $dataTable->filter('Pattern', array('label', $typeReferer)); + } $dataTable->queuefilter('ColumnCallbackReplace', array('label', 'Piwik_getRefererTypeLabel')); return $dataTable; } diff --git a/plugins/Referers/Controller.php b/plugins/Referers/Controller.php index 1ae05933c9..ed120e09e4 100644 --- a/plugins/Referers/Controller.php +++ b/plugins/Referers/Controller.php @@ -242,7 +242,6 @@ class Piwik_Referers_Controller extends Piwik_Controller $typeReferer = Piwik_Common::getRequestVar('typeReferer'); } $view->setColumnsToDisplay($columns); - $view->setSearchPattern($typeReferer, 'label'); $view->setParametersToModify(array('typeReferer' => $typeReferer)); foreach($columns as $columnName) { |