diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-12 15:32:35 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-12 15:32:35 -0400 |
commit | 4061927d215c846ff8eb196301bf61532018042b (patch) | |
tree | 0e14a0e458ee8739754f75f8c158cc42a9b593a4 /app/Event | |
parent | b7060b33ef317eeac576c504b1fb840d4471e411 (diff) |
Move some Task model methods to the TaskFinder class
Diffstat (limited to 'app/Event')
-rw-r--r-- | app/Event/CommentHistoryListener.php | 2 | ||||
-rw-r--r-- | app/Event/CommentNotificationListener.php | 2 | ||||
-rw-r--r-- | app/Event/FileNotificationListener.php | 2 | ||||
-rw-r--r-- | app/Event/SubTaskNotificationListener.php | 2 | ||||
-rw-r--r-- | app/Event/SubtaskHistoryListener.php | 2 | ||||
-rw-r--r-- | app/Event/TaskNotificationListener.php | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/app/Event/CommentHistoryListener.php b/app/Event/CommentHistoryListener.php index e5e92b01..ec826615 100644 --- a/app/Event/CommentHistoryListener.php +++ b/app/Event/CommentHistoryListener.php @@ -56,7 +56,7 @@ class CommentHistoryListener implements Listener if ($creator_id && isset($data['task_id']) && isset($data['id'])) { - $task = $this->model->task->getById($data['task_id']); + $task = $this->model->taskFinder->getById($data['task_id']); $this->model->create( $task['project_id'], diff --git a/app/Event/CommentNotificationListener.php b/app/Event/CommentNotificationListener.php index 36b7ea4b..13803874 100644 --- a/app/Event/CommentNotificationListener.php +++ b/app/Event/CommentNotificationListener.php @@ -23,7 +23,7 @@ class CommentNotificationListener extends BaseNotificationListener { $values = array(); $values['comment'] = $this->notification->comment->getById($data['id']); - $values['task'] = $this->notification->task->getDetails($values['comment']['task_id']); + $values['task'] = $this->notification->taskFinder->getDetails($values['comment']['task_id']); return $values; } diff --git a/app/Event/FileNotificationListener.php b/app/Event/FileNotificationListener.php index ed5d78ed..2366ce5d 100644 --- a/app/Event/FileNotificationListener.php +++ b/app/Event/FileNotificationListener.php @@ -23,7 +23,7 @@ class FileNotificationListener extends BaseNotificationListener { $values = array(); $values['file'] = $data; - $values['task'] = $this->notification->task->getDetails($data['task_id']); + $values['task'] = $this->notification->taskFinder->getDetails($data['task_id']); return $values; } diff --git a/app/Event/SubTaskNotificationListener.php b/app/Event/SubTaskNotificationListener.php index 299ae00b..2b35d757 100644 --- a/app/Event/SubTaskNotificationListener.php +++ b/app/Event/SubTaskNotificationListener.php @@ -23,7 +23,7 @@ class SubTaskNotificationListener extends BaseNotificationListener { $values = array(); $values['subtask'] = $this->notification->subtask->getById($data['id'], true); - $values['task'] = $this->notification->task->getDetails($data['task_id']); + $values['task'] = $this->notification->taskFinder->getDetails($data['task_id']); return $values; } diff --git a/app/Event/SubtaskHistoryListener.php b/app/Event/SubtaskHistoryListener.php index 8cc7a7fd..6b4f1c2d 100644 --- a/app/Event/SubtaskHistoryListener.php +++ b/app/Event/SubtaskHistoryListener.php @@ -56,7 +56,7 @@ class SubtaskHistoryListener implements Listener if ($creator_id && isset($data['task_id']) && isset($data['id'])) { - $task = $this->model->task->getById($data['task_id']); + $task = $this->model->taskFinder->getById($data['task_id']); $this->model->create( $task['project_id'], diff --git a/app/Event/TaskNotificationListener.php b/app/Event/TaskNotificationListener.php index 466a8eb4..119e61e5 100644 --- a/app/Event/TaskNotificationListener.php +++ b/app/Event/TaskNotificationListener.php @@ -22,7 +22,7 @@ class TaskNotificationListener extends BaseNotificationListener public function getTemplateData(array $data) { $values = array(); - $values['task'] = $this->notification->task->getDetails($data['task_id']); + $values['task'] = $this->notification->taskFinder->getDetails($data['task_id']); return $values; } |