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:
authormattpiwik <matthieu.aubry@gmail.com>2011-01-17 05:19:39 +0300
committermattpiwik <matthieu.aubry@gmail.com>2011-01-17 05:19:39 +0300
commit295c67416d54188033f65e040a06c4ef98a061e0 (patch)
tree7b307fbf23e4c10f96c66c8d04e705b0f2b10f75 /core/DataTable/Filter/ExcludeLowPopulation.php
parent0bc09f2bcabf9da976a522cf69c3369ecd1bc308 (diff)
Fixes #173 - making all filters recursive by default (no performance impact since it won't load the tables if they were not loaded in the API). Updating all filters to reflect new abstract class signature
git-svn-id: http://dev.piwik.org/svn/trunk@3764 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/ExcludeLowPopulation.php')
-rw-r--r--core/DataTable/Filter/ExcludeLowPopulation.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/DataTable/Filter/ExcludeLowPopulation.php b/core/DataTable/Filter/ExcludeLowPopulation.php
index 68fdd42111..aca427f3be 100644
--- a/core/DataTable/Filter/ExcludeLowPopulation.php
+++ b/core/DataTable/Filter/ExcludeLowPopulation.php
@@ -35,17 +35,17 @@ class Piwik_DataTable_Filter_ExcludeLowPopulation extends Piwik_DataTable_Filter
{
$minimumPercentageThreshold = self::MINIMUM_SIGNIFICANT_PERCENTAGE_THRESHOLD;
}
- $allValues = $this->table->getColumn($this->columnToFilter);
+ $allValues = $table->getColumn($this->columnToFilter);
$sumValues = array_sum($allValues);
$minimumValue = $sumValues * $minimumPercentageThreshold;
}
self::$minimumValue = $minimumValue;
- $this->filter();
+ $this->filter($table);
}
- function filter()
+ function filter($table)
{
- $this->table->filter('ColumnCallbackDeleteRow',
+ $table->filter('ColumnCallbackDeleteRow',
array($this->columnToFilter,
array("Piwik_DataTable_Filter_ExcludeLowPopulation", "excludeLowPopulation")
)