Rename all models

This commit is contained in:
Frederic Guillot
2016-05-28 19:48:22 -04:00
parent 936376ffe7
commit 14713b0ec7
411 changed files with 4145 additions and 4156 deletions

View File

@@ -14,17 +14,17 @@ class CommentApi extends Base
{
public function getComment($comment_id)
{
return $this->comment->getById($comment_id);
return $this->commentModel->getById($comment_id);
}
public function getAllComments($task_id)
{
return $this->comment->getAll($task_id);
return $this->commentModel->getAll($task_id);
}
public function removeComment($comment_id)
{
return $this->comment->remove($comment_id);
return $this->commentModel->remove($comment_id);
}
public function createComment($task_id, $user_id, $content, $reference = '')
@@ -38,7 +38,7 @@ class CommentApi extends Base
list($valid, ) = $this->commentValidator->validateCreation($values);
return $valid ? $this->comment->create($values) : false;
return $valid ? $this->commentModel->create($values) : false;
}
public function updateComment($id, $content)
@@ -49,6 +49,6 @@ class CommentApi extends Base
);
list($valid, ) = $this->commentValidator->validateModification($values);
return $valid && $this->comment->update($values);
return $valid && $this->commentModel->update($values);
}
}