summaryrefslogtreecommitdiff
path: root/app/Api
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-26 15:47:02 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-26 15:47:02 -0400
commit82623f1a212a3a79507ede69586c561efa675224 (patch)
treec5b8607005950ff77c9782f4412f66d1b64bdfd7 /app/Api
parentf62112983635a281108575bb69bb90df6bed68b7 (diff)
Added API calls for subtask time tracking
Diffstat (limited to 'app/Api')
-rw-r--r--app/Api/Procedure/SubtaskTimeTrackingProcedure.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Api/Procedure/SubtaskTimeTrackingProcedure.php b/app/Api/Procedure/SubtaskTimeTrackingProcedure.php
index b6d1102a..5ceaa08d 100644
--- a/app/Api/Procedure/SubtaskTimeTrackingProcedure.php
+++ b/app/Api/Procedure/SubtaskTimeTrackingProcedure.php
@@ -19,15 +19,15 @@ class SubtaskTimeTrackingProcedure extends BaseProcedure
return $this->subtaskTimeTrackingModel->hasTimer($subtask_id, $user_id);
}
- public function logSubtaskStartTime($subtask_id, $user_id)
+ public function setSubtaskStartTime($subtask_id, $user_id)
{
- SubtaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'logSubtaskStartTime', $subtask_id);
+ SubtaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'setSubtaskStartTime', $subtask_id);
return $this->subtaskTimeTrackingModel->logStartTime($subtask_id, $user_id);
}
- public function logSubtaskEndTime($subtask_id, $user_id)
+ public function setSubtaskEndTime($subtask_id, $user_id)
{
- SubtaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'logSubtaskEndTime', $subtask_id);
+ SubtaskAuthorization::getInstance($this->container)->check($this->getClassName(), 'setSubtaskEndTime', $subtask_id);
return $this->subtaskTimeTrackingModel->logEndTime($subtask_id, $user_id);
}