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/Row.php')
-rw-r--r--modules/DataTable/Row.php70
1 files changed, 35 insertions, 35 deletions
diff --git a/modules/DataTable/Row.php b/modules/DataTable/Row.php
index 329d8600ab..11c110f254 100644
--- a/modules/DataTable/Row.php
+++ b/modules/DataTable/Row.php
@@ -1,14 +1,14 @@
-<?php
-/**
- * Piwik - Open source web analytics
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
- * @version $Id$
- *
- * @package Piwik_DataTable
- */
-
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
+ * @version $Id$
+ *
+ * @package Piwik_DataTable
+ */
+
/**
* A DataTable is composed of rows.
*
@@ -21,8 +21,8 @@
* IMPORTANT: Make sure that the column named 'label' contains at least one non-numeric character.
* Otherwise the method addDataTable() or sumRow() would fail because they would consider
* the 'label' as being a numeric column to sum.
- *
- * @package Piwik_DataTable
+ *
+ * @package Piwik_DataTable
* @subpackage Piwik_DataTable_Row
*
*/
@@ -99,28 +99,28 @@ class Piwik_DataTable_Row
* Applys a basic rendering to the Row and returns the output
*
* @return string characterizing the row. Example: - 1 ['label' => 'piwik', 'nb_uniq_visitors' => 1685, 'nb_visits' => 1861, 'nb_actions' => 2271, 'max_actions' => 13, 'sum_visit_length' => 920131, 'bounce_count' => 1599] [] [idsubtable = 1375]
- */
- public function __toString()
- {
- $columns = array();
- foreach($this->getColumns() as $column => $value)
- {
- if(is_string($value)) $value = "'$value'";
- $columns[] = "'$column' => $value";
- }
- $columns = implode(", ", $columns);
- $details=array();
-
- foreach($this->getDetails() as $detail => $value)
- {
- if(is_string($value)) $value = "'$value'";
- $details[] = "'$detail' => $value";
- }
- $details = implode(", ", $details);
- $output = "# [".$columns."] [".$details."] [idsubtable = "
- . $this->getIdSubDataTable()."]<br>\n";
- return $output;
- }
+ */
+ public function __toString()
+ {
+ $columns = array();
+ foreach($this->getColumns() as $column => $value)
+ {
+ if(is_string($value)) $value = "'$value'";
+ $columns[] = "'$column' => $value";
+ }
+ $columns = implode(", ", $columns);
+ $details=array();
+
+ foreach($this->getDetails() as $detail => $value)
+ {
+ if(is_string($value)) $value = "'$value'";
+ $details[] = "'$detail' => $value";
+ }
+ $details = implode(", ", $details);
+ $output = "# [".$columns."] [".$details."] [idsubtable = "
+ . $this->getIdSubDataTable()."]<br>\n";
+ return $output;
+ }
/**
* Deletes the given column