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 <tsteur@users.noreply.github.com>2014-06-10 06:39:02 +0400
committerThomas Steur <tsteur@users.noreply.github.com>2014-06-10 06:39:02 +0400
commitb8aa95f7fe7b251abe81bd6664c2a15cf5129197 (patch)
tree073d50b6a46c09e491181df01150115f091bc28e /plugins/Events/Events.php
parent3a28d26de32257045850ea5a602b970a9b5be3f7 (diff)
parent0dc6a6cb8d12d95f172b754405929e5db439d551 (diff)
Merge pull request #308 from piwik/plugin_widget_refactoring
refs #5326 Provide simpler Widgets API
Diffstat (limited to 'plugins/Events/Events.php')
-rw-r--r--plugins/Events/Events.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/plugins/Events/Events.php b/plugins/Events/Events.php
index f39ddaf055..bdc7522e54 100644
--- a/plugins/Events/Events.php
+++ b/plugins/Events/Events.php
@@ -9,11 +9,8 @@
namespace Piwik\Plugins\Events;
use Piwik\Common;
-use Piwik\Menu\MenuAbstract;
-use Piwik\Menu\MenuMain;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
-use Piwik\WidgetsList;
/**
*/
@@ -28,20 +25,10 @@ class Events extends \Piwik\Plugin
'API.getSegmentDimensionMetadata' => 'getSegmentsMetadata',
'Metrics.getDefaultMetricTranslations' => 'addMetricTranslations',
'API.getReportMetadata' => 'getReportMetadata',
- 'WidgetsList.addWidgets' => 'addWidgets',
'ViewDataTable.configure' => 'configureViewDataTable',
);
}
- public function addWidgets()
- {
- foreach(self::getLabelTranslations() as $apiMethod => $labels) {
- $params = array(
- 'secondaryDimension' => API::getInstance()->getDefaultSecondaryDimension($apiMethod)
- );
- WidgetsList::add('Events_Events', $labels[0], 'Events', $apiMethod, $params);
- }
- }
public function addMetricTranslations(&$translations)
{
@@ -98,7 +85,6 @@ class Events extends \Piwik\Plugin
);
}
-
public function getSegmentsMetadata(&$segments)
{
$sqlFilter = '\\Piwik\\Tracker\\TableLogAction::getIdActionFromSegment';