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/AddColumnsWhenShowAllColumns.php')
-rw-r--r--core/DataTable/Filter/AddColumnsWhenShowAllColumns.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/DataTable/Filter/AddColumnsWhenShowAllColumns.php b/core/DataTable/Filter/AddColumnsWhenShowAllColumns.php
index 1e1e703b66..1b126e42a5 100644
--- a/core/DataTable/Filter/AddColumnsWhenShowAllColumns.php
+++ b/core/DataTable/Filter/AddColumnsWhenShowAllColumns.php
@@ -17,7 +17,13 @@
class Piwik_DataTable_Filter_AddColumnsWhenShowAllColumns extends Piwik_DataTable_Filter
{
protected $roundPrecision = 1;
- public function __construct( $table )
+
+ /**
+ * @param $table
+ * @param $enable Automatically set to true when filter_add_columns_when_show_all_columns is found in the API request
+ * @return void
+ */
+ public function __construct( $table, $enable = true )
{
parent::__construct($table);
$this->filter();