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:
Diffstat (limited to 'modules/DataTable/Renderer/Csv.php')
-rw-r--r--modules/DataTable/Renderer/Csv.php28
1 files changed, 27 insertions, 1 deletions
diff --git a/modules/DataTable/Renderer/Csv.php b/modules/DataTable/Renderer/Csv.php
index cf0516ecab..ea4c7920a1 100644
--- a/modules/DataTable/Renderer/Csv.php
+++ b/modules/DataTable/Renderer/Csv.php
@@ -19,6 +19,8 @@ require_once "DataTable/Renderer/Php.php";
* The default field delimiter string is a comma (,).
* Formatting and layout are ignored.
*
+ * Note that CSV output doesn't handle recursive dataTable. It will output only the first parent level of the tables.
+ *
* @package Piwik_DataTable
* @subpackage Piwik_DataTable_Renderer
*
@@ -26,10 +28,34 @@ require_once "DataTable/Renderer/Php.php";
class Piwik_DataTable_Renderer_Csv extends Piwik_DataTable_Renderer
{
+ /**
+ * Column separator
+ *
+ * @var string
+ */
public $separator = ',';
+
+ /**
+ * Line end
+ *
+ * @var string
+ */
+ public $lineEnd = "\n";
+
+ /**
+ * 'details' columns will be exported, prefixed by 'detail_'
+ *
+ * @var bool
+ */
public $exportDetail = true;
+
+ /**
+ * idSubtable will be exported in a column called 'idsubdatatable'
+ *
+ * @var bool
+ */
public $exportIdSubtable = true;
- public $lineEnd = "\n";
+
function __construct($table = null)
{