diff options
author | sgiehl <stefangiehl@gmail.com> | 2012-05-28 21:29:23 +0400 |
---|---|---|
committer | sgiehl <stefangiehl@gmail.com> | 2012-05-28 21:29:23 +0400 |
commit | 06bb25eb436e6d17d79eb44b286a1d877328142d (patch) | |
tree | f92a56ad52588a20b8bf16eb466ce920c2a65c2b /core/DataTable/Filter/RangeCheck.php | |
parent | 90ae9e10229fc517dd1c9f406736cc091b6cf970 (diff) |
added/fixed doc blocks
git-svn-id: http://dev.piwik.org/svn/trunk@6353 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/RangeCheck.php')
-rw-r--r-- | core/DataTable/Filter/RangeCheck.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/DataTable/Filter/RangeCheck.php b/core/DataTable/Filter/RangeCheck.php index 37aead18fc..74d5a456c8 100644 --- a/core/DataTable/Filter/RangeCheck.php +++ b/core/DataTable/Filter/RangeCheck.php @@ -21,6 +21,12 @@ class Piwik_DataTable_Filter_RangeCheck extends Piwik_DataTable_Filter static public $minimumValue = 0.00; static public $maximumValue = 100.0; + /** + * @param Piwik_DataTable $table + * @param string $columnToFilter name of the column to filter + * @param float $minimumValue minimum value for range + * @param float $maximumValue maximum value for range + */ public function __construct( $table, $columnToFilter, $minimumValue = 0.00, $maximumValue = 100.0 ) { parent::__construct($table); @@ -33,6 +39,11 @@ class Piwik_DataTable_Filter_RangeCheck extends Piwik_DataTable_Filter } } + /** + * Executes the filter an adjusts all columns to fit the defined range + * + * @param Piwik_DataTable $table + */ public function filter($table) { foreach($table->getRows() as $row) |