summaryrefslogtreecommitdiff
path: root/app/Controller/Timer.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-05 18:30:16 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-05 18:30:16 -0500
commit4e07ad6555bee33c6e48992f8f8e56706aff7c58 (patch)
tree1921c1c080133a6c9bd67119b282d3dbd313e4b2 /app/Controller/Timer.php
parent9c15658089ec5bd3914b91c7a59fdb522e837b70 (diff)
Improve subtask toggle status and timer
Diffstat (limited to 'app/Controller/Timer.php')
-rw-r--r--app/Controller/Timer.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/app/Controller/Timer.php b/app/Controller/Timer.php
deleted file mode 100644
index 0267fcdd..00000000
--- a/app/Controller/Timer.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace Kanboard\Controller;
-
-/**
- * Time Tracking controller
- *
- * @package controller
- * @author Frederic Guillot
- */
-class Timer extends Base
-{
- /**
- * Start/stop timer for subtasks
- *
- * @access public
- */
- public function subtask()
- {
- $project_id = $this->request->getIntegerParam('project_id');
- $task_id = $this->request->getIntegerParam('task_id');
- $subtask_id = $this->request->getIntegerParam('subtask_id');
- $timer = $this->request->getStringParam('timer');
-
- if ($timer === 'start') {
- $this->subtaskTimeTracking->logStartTime($subtask_id, $this->userSession->getId());
- } elseif ($timer === 'stop') {
- $this->subtaskTimeTracking->logEndTime($subtask_id, $this->userSession->getId());
- $this->subtaskTimeTracking->updateTaskTimeTracking($task_id);
- }
-
- $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $project_id, 'task_id' => $task_id)).'#subtasks');
- }
-}