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 'core/DataTable/Filter/AddConstantMetadata.php')
-rw-r--r--core/DataTable/Filter/AddConstantMetadata.php55
1 files changed, 27 insertions, 28 deletions
diff --git a/core/DataTable/Filter/AddConstantMetadata.php b/core/DataTable/Filter/AddConstantMetadata.php
index f0fc9040e2..4bff5aa813 100644
--- a/core/DataTable/Filter/AddConstantMetadata.php
+++ b/core/DataTable/Filter/AddConstantMetadata.php
@@ -1,17 +1,17 @@
<?php
/**
* Piwik - Open source web analytics
- *
+ *
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- *
+ *
* @category Piwik
* @package Piwik
*/
/**
* Add a new metadata column to the table.
- *
+ *
* This is used to add a column containing the logo width and height of the countries flag icons.
* This value is fixed for all icons so we simply add the same value for all rows.
*
@@ -20,30 +20,29 @@
*/
class Piwik_DataTable_Filter_AddConstantMetadata extends Piwik_DataTable_Filter
{
- /**
- * Creates a new filter and sets all required parameters
- *
- * @param Piwik_DataTable $table
- * @param string $metadataName
- * @param mixed $metadataValue
- */
- public function __construct( $table, $metadataName, $metadataValue )
- {
- parent::__construct($table);
- $this->name = $metadataName;
- $this->value = $metadataValue;
- }
+ /**
+ * Creates a new filter and sets all required parameters
+ *
+ * @param Piwik_DataTable $table
+ * @param string $metadataName
+ * @param mixed $metadataValue
+ */
+ public function __construct($table, $metadataName, $metadataValue)
+ {
+ parent::__construct($table);
+ $this->name = $metadataName;
+ $this->value = $metadataValue;
+ }
- /**
- * Filters the given data table
- *
- * @param Piwik_DataTable $table
- */
- public function filter($table)
- {
- foreach($table->getRows() as $row)
- {
- $row->addMetadata($this->name, $this->value);
- }
- }
+ /**
+ * Filters the given data table
+ *
+ * @param Piwik_DataTable $table
+ */
+ public function filter($table)
+ {
+ foreach ($table->getRows() as $row) {
+ $row->addMetadata($this->name, $this->value);
+ }
+ }
}