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@googlemail.com>2014-08-26 18:35:55 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-08-26 18:35:55 +0400
commit18e7b5688e7ae40a24801e2f3bd9eec867ba8c16 (patch)
treed16eb49ed135da66b687f286c5d078cbec3c1161 /plugins/Contents/Reports/GetContentNames.php
parent24b470b815d648ca1be2a366da08b672dc46bdbb (diff)
refs #4996 archiving of impressions should work now, displaying impressions should work (contentName => contentPiece and contentPiece => contentName). Next step: Matching interactions with impressions then this part is nearly done hopefully
Diffstat (limited to 'plugins/Contents/Reports/GetContentNames.php')
-rw-r--r--plugins/Contents/Reports/GetContentNames.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/plugins/Contents/Reports/GetContentNames.php b/plugins/Contents/Reports/GetContentNames.php
new file mode 100644
index 0000000000..011581025f
--- /dev/null
+++ b/plugins/Contents/Reports/GetContentNames.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Piwik - free/libre analytics platform
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ */
+namespace Piwik\Plugins\Contents\Reports;
+
+use Piwik\Piwik;
+use Piwik\Plugin\Report;
+use Piwik\Plugins\Contents\Columns\ContentName;
+use Piwik\View;
+
+/**
+ * This class defines a new report.
+ *
+ * See {@link http://developer.piwik.org/api-reference/Piwik/Plugin/Report} for more information.
+ */
+class GetContentNames extends Base
+{
+ protected function init()
+ {
+ parent::init();
+
+ $this->name = Piwik::translate('Contents_ContentName');
+ $this->dimension = null;
+ // TODO $this->documentation = Piwik::translate('ContentsDocumentation');
+ $this->dimension = new ContentName();
+ $this->order = 35;
+
+ $this->widgetTitle = 'Contents_ContentName';
+ $this->metrics = array('nb_impressions', 'nb_interactions', 'interaction_rate');
+ }
+}