diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2009-11-17 20:57:06 +0300 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2009-11-17 20:57:06 +0300 |
commit | eaa0c55c888dede18a55578bbf833fa61654b162 (patch) | |
tree | 91e4e20cee9f993e14f360c35d17eb3e08c1f8eb /core/DataTable/Filter/ColumnDelete.php | |
parent | 94c5e710ee2ab4952b3ce89365ccc85f81b8ceea (diff) |
Slight improvements to existing DataTable filters
git-svn-id: http://dev.piwik.org/svn/trunk@1600 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/ColumnDelete.php')
-rw-r--r-- | core/DataTable/Filter/ColumnDelete.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/core/DataTable/Filter/ColumnDelete.php b/core/DataTable/Filter/ColumnDelete.php new file mode 100644 index 0000000000..c300f11d6d --- /dev/null +++ b/core/DataTable/Filter/ColumnDelete.php @@ -0,0 +1,36 @@ +<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @category Piwik + * @package Piwik + */ + +/** + * Deletes a column from a datatable + * + * @package Piwik + * @subpackage Piwik_DataTable + */ +class Piwik_DataTable_Filter_ColumnDelete extends Piwik_DataTable_Filter +{ + private $columnToFilter; + private $functionToApply; + + public function __construct( $table, $columnToDelete ) + { + parent::__construct($table); + $this->columnToDelete = $columnToDelete; + $this->filter(); + } + + protected function filter() + { + $this->table->deleteColumn($this->columnToDelete); + } + +} |