diff options
| author | Kamil <k.sciana@gmail.com> | 2018-07-17 06:24:28 +0200 |
|---|---|---|
| committer | Frédéric Guillot <fred@kanboard.net> | 2018-07-16 21:24:28 -0700 |
| commit | fe935d6ec1e82bea1fd002ea19b6e2f9647ddc70 (patch) | |
| tree | f7c848600bd4199a029b39c36c2a81f802772263 /app/Filter/TaskMovedDateRangeFilter.php | |
| parent | 196ccb21319a23f394b703348fa1062ba7a3e14e (diff) | |
Add search within a range of dates for creation/moved date fields
Diffstat (limited to 'app/Filter/TaskMovedDateRangeFilter.php')
| -rw-r--r-- | app/Filter/TaskMovedDateRangeFilter.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app/Filter/TaskMovedDateRangeFilter.php b/app/Filter/TaskMovedDateRangeFilter.php new file mode 100644 index 00000000..b5b826b0 --- /dev/null +++ b/app/Filter/TaskMovedDateRangeFilter.php @@ -0,0 +1,38 @@ +<?php + +namespace Kanboard\Filter; + +use Kanboard\Core\Filter\FilterInterface; +use Kanboard\Model\TaskModel; + +/** + * Filter tasks by creation date + * + * @package filter + * @author Kamil Ściana + */ +class TaskMovedDateRangeFilter extends BaseDateRangeFilter implements FilterInterface +{ + /** + * Get search attribute + * + * @access public + * @return string[] + */ + public function getAttributes() + { + return array('movedRange'); + } + + /** + * Apply filter + * + * @access public + * @return FilterInterface + */ + public function apply() + { + $this->applyDateFilter(TaskModel::TABLE.'.date_moved'); + return $this; + } +} |
