Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-01-06 04:30:02 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-01-07 06:35:36 +0300
commite4f3ea2279fd82802cb7e14f3299950d8ebd0a28 (patch)
tree3b0c29a88b70930fc7cae6e7b2c534c91489cd31 /plugins/Ecommerce/Reports
parent9cd2d4618c074548b32dea00cf1f6886ced250e3 (diff)
fixing some more bugs and tests, not sure yet how to fix the missing metrics properly
Diffstat (limited to 'plugins/Ecommerce/Reports')
-rw-r--r--plugins/Ecommerce/Reports/Base.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Ecommerce/Reports/Base.php b/plugins/Ecommerce/Reports/Base.php
index e8c23a4bb2..c2d7f6eada 100644
--- a/plugins/Ecommerce/Reports/Base.php
+++ b/plugins/Ecommerce/Reports/Base.php
@@ -14,6 +14,7 @@ use Piwik\Piwik;
use Piwik\Plugin\Report;
use Piwik\Site;
use Piwik\ViewDataTable\Factory as ViewDataTableFactory;
+use Piwik\WidgetsList;
abstract class Base extends Report
{
@@ -99,4 +100,15 @@ abstract class Base extends Report
return $rendered;
}
+ public function configureWidget(WidgetsList $widget)
+ {
+ if ($this->widgetTitle) {
+ $params = array();
+ if (!empty($this->widgetParams) && is_array($this->widgetParams)) {
+ $params = $this->widgetParams;
+ }
+ $widget->add($this->category, $this->widgetTitle, 'Ecommerce', $this->action, $params);
+ }
+ }
+
}