diff options
Diffstat (limited to 'app/Api/SubtaskTimeTrackingApi.php')
-rw-r--r-- | app/Api/SubtaskTimeTrackingApi.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app/Api/SubtaskTimeTrackingApi.php b/app/Api/SubtaskTimeTrackingApi.php new file mode 100644 index 00000000..0e700b31 --- /dev/null +++ b/app/Api/SubtaskTimeTrackingApi.php @@ -0,0 +1,34 @@ +<?php + +namespace Kanboard\Api; + +use Kanboard\Core\Base; + +/** + * Subtask Time Tracking API controller + * + * @package api + * @author Nikolaos Georgakis + */ +class SubtaskTimeTrackingApi extends Base +{ + public function hasTimer($subtask_id,$user_id) + { + return $this->subtaskTimeTrackingModel->hasTimer($subtask_id,$user_id); + } + + public function logStartTime($subtask_id,$user_id) + { + return $this->subtaskTimeTrackingModel->logStartTime($subtask_id,$user_id); + } + + public function logEndTime($subtask_id,$user_id) + { + return $this->subtaskTimeTrackingModel->logEndTime($subtask_id,$user_id); + } + + public function getTimeSpent($subtask_id,$user_id) + { + return $this->subtaskTimeTrackingModel->getTimeSpent($subtask_id,$user_id); + } +} |