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:
Diffstat (limited to 'plugins/Events/Columns/EventAction.php')
-rw-r--r--plugins/Events/Columns/EventAction.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/Events/Columns/EventAction.php b/plugins/Events/Columns/EventAction.php
index ef831bb561..f65b4a6e3b 100644
--- a/plugins/Events/Columns/EventAction.php
+++ b/plugins/Events/Columns/EventAction.php
@@ -11,10 +11,14 @@ namespace Piwik\Plugins\Events\Columns;
use Piwik\Piwik;
use Piwik\Plugin\ActionDimension;
use Piwik\Plugins\Events\Segment;
+use Piwik\Plugins\Events\Actions\ActionEvent;
+use Piwik\Tracker\Action;
+use Piwik\Tracker\Request;
class EventAction extends ActionDimension
{
protected $fieldName = 'idaction_event_action';
+ protected $fieldType = 'INTEGER(10) UNSIGNED DEFAULT NULL';
protected function init()
{
@@ -28,4 +32,25 @@ class EventAction extends ActionDimension
{
return Piwik::translate('Events_EventAction');
}
+
+ public function getActionId()
+ {
+ return Action::TYPE_EVENT_ACTION;
+ }
+
+ public function onLookupAction(Request $request, Action $action)
+ {
+ if (!($action instanceof ActionEvent)) {
+ return false;
+ }
+
+ $eventAction = $request->getParam('e_a');
+ $eventAction = trim($eventAction);
+
+ if (strlen($eventAction) > 0) {
+ return $eventAction;
+ }
+
+ return false;
+ }
} \ No newline at end of file