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-06-11 09:52:22 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-11 09:52:22 +0400
commitf52c1e83aef857b6cf073f1f9fb00c6982f8d7d2 (patch)
treea4e7dbc78df2c801b2b9d11364f94022768de28f /plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php
parent4f2e01d20a8027cf545613d883e4ef22267c1cc1 (diff)
converted more reports, segments, dimensions, ... not finished yet
Diffstat (limited to 'plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php')
-rw-r--r--plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php54
1 files changed, 54 insertions, 0 deletions
diff --git a/plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php b/plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php
new file mode 100644
index 0000000000..80a5ef0e7b
--- /dev/null
+++ b/plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php
@@ -0,0 +1,54 @@
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ */
+namespace Piwik\Plugins\VisitorInterest\Reports;
+
+use Piwik\Metrics;
+use Piwik\Piwik;
+use Piwik\Plugin\ViewDataTable;
+use Piwik\Plugins\VisitorInterest\Columns\VisitsbyVisitNumber;
+
+class GetNumberOfVisitsByVisitCount extends Base
+{
+ protected function init()
+ {
+ parent::init();
+ $this->dimension = new VisitsbyVisitNumber();
+ $this->name = Piwik::translate('VisitorInterest_visitsByVisitCount');
+ $this->documentation = Piwik::translate('VisitorInterest_WidgetVisitsByNumDocumentation')
+ . '<br />' . Piwik::translate('General_ChangeTagCloudView');
+ $this->metrics = array('nb_visits', 'nb_visits_percentage');
+ $this->constantRowsCount = true;
+ $this->order = 25;
+ $this->widgetTitle = 'VisitorInterest_visitsByVisitCount';
+ }
+
+ public function configureView(ViewDataTable $view)
+ {
+ $view->requestConfig->filter_sort_column = 'label';
+ $view->requestConfig->filter_sort_order = 'asc';
+ $view->requestConfig->filter_limit = 15;
+
+ $view->config->addTranslations(array(
+ 'label' => Piwik::translate('VisitorInterest_VisitNum'),
+ 'nb_visits_percentage' => Metrics::getPercentVisitColumn())
+ );
+
+ $view->config->columns_to_display = array('label', 'nb_visits', 'nb_visits_percentage');
+ $view->config->show_exclude_low_population = false;
+
+ $view->config->enable_sort = false;
+ $view->config->show_offset_information = false;
+ $view->config->show_pagination_control = false;
+ $view->config->show_limit_control = false;
+ $view->config->show_search = false;
+ $view->config->show_table_all_columns = false;
+ $view->config->show_all_views_icons = false;
+ }
+
+}