diff options
Diffstat (limited to 'plugins/Actions/Columns/ClickedUrl.php')
-rw-r--r-- | plugins/Actions/Columns/ClickedUrl.php | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/plugins/Actions/Columns/ClickedUrl.php b/plugins/Actions/Columns/ClickedUrl.php index cd9bc3b7dc..861b6d5202 100644 --- a/plugins/Actions/Columns/ClickedUrl.php +++ b/plugins/Actions/Columns/ClickedUrl.php @@ -8,24 +8,28 @@ */ namespace Piwik\Plugins\Actions\Columns; -use Piwik\Piwik; +use Piwik\Columns\Discriminator; +use Piwik\Columns\Join\ActionNameJoin; use Piwik\Plugin\Dimension\ActionDimension; -use Piwik\Plugins\Actions\Segment; +use Piwik\Tracker\Action; class ClickedUrl extends ActionDimension { - public function getName() + protected $columnName = 'idaction_url'; + protected $segmentName = 'outlinkUrl'; + protected $nameSingular = 'Actions_ColumnClickedURL'; + protected $namePlural = 'Actions_ColumnClickedURLs'; + protected $category = 'General_Actions'; + protected $sqlFilter = '\\Piwik\\Tracker\\TableLogAction::getIdActionFromSegment'; + protected $type = self::TYPE_URL; + + public function getDbColumnJoin() { - return Piwik::translate('Actions_ColumnClickedURL'); + return new ActionNameJoin(); } - protected function configureSegments() + public function getDbDiscriminator() { - $segment = new Segment(); - $segment->setSegment('outlinkUrl'); - $segment->setName('Actions_ColumnClickedURL'); - $segment->setSqlSegment('log_link_visit_action.idaction_url'); - $this->addSegment($segment); + return new Discriminator('log_action', 'type', Action::TYPE_OUTLINK); } - } |