From b1e2ca00ce7375ffcbe5e927135c8892036e6bd6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 16 May 2016 21:07:29 -0400 Subject: Rename Api classes --- app/Api/Comment.php | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 app/Api/Comment.php (limited to 'app/Api/Comment.php') diff --git a/app/Api/Comment.php b/app/Api/Comment.php deleted file mode 100644 index 1fc1c708..00000000 --- a/app/Api/Comment.php +++ /dev/null @@ -1,52 +0,0 @@ -comment->getById($comment_id); - } - - public function getAllComments($task_id) - { - return $this->comment->getAll($task_id); - } - - public function removeComment($comment_id) - { - return $this->comment->remove($comment_id); - } - - public function createComment($task_id, $user_id, $content, $reference = '') - { - $values = array( - 'task_id' => $task_id, - 'user_id' => $user_id, - 'comment' => $content, - 'reference' => $reference, - ); - - list($valid, ) = $this->commentValidator->validateCreation($values); - - return $valid ? $this->comment->create($values) : false; - } - - public function updateComment($id, $content) - { - $values = array( - 'id' => $id, - 'comment' => $content, - ); - - list($valid, ) = $this->commentValidator->validateModification($values); - return $valid && $this->comment->update($values); - } -} -- cgit v1.2.3