diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2009-03-30 06:22:03 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2009-03-30 06:22:03 +0400 |
commit | e0507d715f281f56e10d0b87dc4e013f3aba96c1 (patch) | |
tree | 6c7740e8e5dffaa4006b9208324a1952bac49469 /core/DataTable/Filter/Sort.php | |
parent | 13158516543fd79913f4a5e1a393dc3d5bc1ab31 (diff) |
- fixing recently introduced sorting issue, refactoring, cleaning up the generic filters concept by removing the automatic sorting of data
- fixing issue when executing unit tests would invalidate tmp/cache/tracker files
- fixed edge case issue when calling several apis from one http request, and requesting recursive output, it was failing in some random cases
- adding a unit test that calls all callable api methods and check for non empty output
-
git-svn-id: http://dev.piwik.org/svn/trunk@1041 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/Sort.php')
-rw-r--r-- | core/DataTable/Filter/Sort.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/DataTable/Filter/Sort.php b/core/DataTable/Filter/Sort.php index 222a2ca5d8..077a09cbca 100644 --- a/core/DataTable/Filter/Sort.php +++ b/core/DataTable/Filter/Sort.php @@ -20,13 +20,17 @@ class Piwik_DataTable_Filter_Sort extends Piwik_DataTable_Filter protected $columnToSort; protected $order; - public function __construct( $table, $columnToSort, $order = 'desc', $naturalSort = false ) + public function __construct( $table, $columnToSort, $order = 'desc', $naturalSort = false, $recursiveSort = false ) { parent::__construct($table); if(empty($columnToSort)) { return; } + if($recursiveSort) + { + $table->enableRecursiveSort(); + } $this->columnToSort = $columnToSort; $this->naturalSort = $naturalSort; $this->setOrder($order); |