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:
authorsgiehl <stefan@piwik.org>2015-01-22 07:48:21 +0300
committersgiehl <stefan@piwik.org>2015-01-22 07:48:21 +0300
commit165c8865b6f3eb374f5140d8da7b726a0e3ba5fb (patch)
tree639018b7d4f5a56d2ceec8f18c4b8a6f40f4bd55 /core/Plugin/Report.php
parenta31a25e71b60eb26fac907b52b8c26465c855c0b (diff)
parent9ed81d72cbaa1ebe382502d9417d7d1ac64dab00 (diff)
Merge branch 'master' into move_language_report
Conflicts: tests/PHPUnit/UI
Diffstat (limited to 'core/Plugin/Report.php')
-rw-r--r--core/Plugin/Report.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/Plugin/Report.php b/core/Plugin/Report.php
index 9a78bcdbf1..62ed594f8c 100644
--- a/core/Plugin/Report.php
+++ b/core/Plugin/Report.php
@@ -271,6 +271,16 @@ class Report
}
/**
+ * Returns if the default viewDataTable type should always be used. e.g. the type won't be changeable through config or url params.
+ * Defaults to false
+ * @return bool
+ */
+ public function alwaysUseDefaultViewDataTable ()
+ {
+ return false;
+ }
+
+ /**
* Here you can configure how your report should be displayed and which capabilities your report has. For instance
* whether your report supports a "search" or not. EG `$view->config->show_search = false`. You can also change the
* default request config. For instance you can change how many rows are displayed by default:
@@ -302,7 +312,8 @@ class Report
$apiAction = $apiProxy->buildApiActionName($this->module, $this->action);
- $view = ViewDataTableFactory::build(null, $apiAction, $this->module . '.' . $this->action);
+ $view = ViewDataTableFactory::build(null, $apiAction, $this->module . '.' . $this->action);
+
$rendered = $view->render();
return $rendered;