diff options
| author | Frederic Guillot <fred@kanboard.net> | 2017-11-08 14:50:02 -0800 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2017-11-08 14:50:02 -0800 |
| commit | cafbd1f5a7e60d931e4dbd700b12e5f50319340d (patch) | |
| tree | 10379ec3d0ced6dbdc1da2b78071added257f101 /app/Formatter/BaseTaskCalendarFormatter.php | |
| parent | 5e98a66aeb108b84ca4f2ae824c0a191fbd514cd (diff) | |
Improve iCalendar feed to include tasks with start/end date and due date with a time
Diffstat (limited to 'app/Formatter/BaseTaskCalendarFormatter.php')
| -rw-r--r-- | app/Formatter/BaseTaskCalendarFormatter.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/app/Formatter/BaseTaskCalendarFormatter.php b/app/Formatter/BaseTaskCalendarFormatter.php deleted file mode 100644 index 3d9ead4d..00000000 --- a/app/Formatter/BaseTaskCalendarFormatter.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php - -namespace Kanboard\Formatter; - -/** - * Common class to handle calendar events - * - * @package formatter - * @author Frederic Guillot - */ -abstract class BaseTaskCalendarFormatter extends BaseFormatter -{ - /** - * Column used for event start date - * - * @access protected - * @var string - */ - protected $startColumn = 'date_started'; - - /** - * Column used for event end date - * - * @access protected - * @var string - */ - protected $endColumn = 'date_completed'; - - /** - * Transform results to calendar events - * - * @access public - * @param string $start_column Column name for the start date - * @param string $end_column Column name for the end date - * @return $this - */ - public function setColumns($start_column, $end_column = '') - { - $this->startColumn = $start_column; - $this->endColumn = $end_column ?: $start_column; - return $this; - } -} |
