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/VisitTime/Reports/Base.php
parent4f2e01d20a8027cf545613d883e4ef22267c1cc1 (diff)
converted more reports, segments, dimensions, ... not finished yet
Diffstat (limited to 'plugins/VisitTime/Reports/Base.php')
-rw-r--r--plugins/VisitTime/Reports/Base.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/VisitTime/Reports/Base.php b/plugins/VisitTime/Reports/Base.php
new file mode 100644
index 0000000000..5111c9c691
--- /dev/null
+++ b/plugins/VisitTime/Reports/Base.php
@@ -0,0 +1,40 @@
+<?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\VisitTime\Reports;
+
+use Piwik\Plugin\ViewDataTable;
+use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Bar;
+
+abstract class Base extends \Piwik\Plugin\Report
+{
+ protected function init()
+ {
+ $this->category = 'VisitsSummary_VisitsSummary';
+ }
+
+ public function getDefaultTypeViewDataTable()
+ {
+ return Bar::ID;
+ }
+
+ /**
+ * @param ViewDataTable $view
+ */
+ protected function setBasicConfigViewProperties(ViewDataTable $view)
+ {
+ $view->requestConfig->filter_sort_column = 'label';
+ $view->requestConfig->filter_sort_order = 'asc';
+ $view->requestConfig->addPropertiesThatShouldBeAvailableClientSide(array('filter_sort_column'));
+ $view->config->show_search = false;
+ $view->config->show_limit_control = false;
+ $view->config->show_exclude_low_population = false;
+ $view->config->show_offset_information = false;
+ $view->config->show_pagination_control = false;
+ }
+}