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-07-03 03:54:27 +0300
committersgiehl <stefan@piwik.org>2015-10-06 18:25:13 +0300
commit9ba8f216fd7856ce5fef06bf82ecb8f8a2e7e630 (patch)
tree6ce07d18a85d00b39ab720abe042361c0775aead /plugins/Provider
parent8ccc9dc05da021325cdbf141a548637fa52f16b2 (diff)
generate pages instead of implementing them in each controller
Diffstat (limited to 'plugins/Provider')
-rw-r--r--plugins/Provider/Reports/GetProvider.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/Provider/Reports/GetProvider.php b/plugins/Provider/Reports/GetProvider.php
index e7cfcfa753..adf03cd26f 100644
--- a/plugins/Provider/Reports/GetProvider.php
+++ b/plugins/Provider/Reports/GetProvider.php
@@ -13,17 +13,26 @@ use Piwik\Piwik;
use Piwik\Plugin\Report;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\Provider\Columns\Provider;
+use Piwik\Report\ReportWidgetFactory;
+use Piwik\Widget\WidgetsList;
class GetProvider extends Report
{
protected function init()
{
- $this->category = 'General_Visitors';
+ $this->categoryId = 'General_Visitors';
$this->dimension = new Provider();
$this->name = Piwik::translate('Provider_ColumnProvider');
$this->documentation = Piwik::translate('Provider_ProviderReportDocumentation', '<br />');
$this->order = 50;
- $this->widgetTitle = 'Provider_WidgetProviders';
+
+ $this->subcategoryId = 'UserCountry_SubmenuLocations';
+ }
+
+ public function configureWidgets(WidgetsList $widgetsList, ReportWidgetFactory $factory)
+ {
+ $widget = $factory->createWidget()->setName('Provider_WidgetProviders');
+ $widgetsList->addWidgetConfig($widget);
}
public function configureView(ViewDataTable $view)