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/API.php | |
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/API.php')
-rw-r--r-- | plugins/Referers/API.php | 6 |
1 files changed, 5 insertions, 1 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; } |