diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-08-15 17:23:41 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-08-15 17:23:41 -0700 |
commit | 9eeded33f68872515954a2fc177fcb47a9273ae9 (patch) | |
tree | f3ef9507e087ca6bf3ce624232da240a8689b051 /app/Event/SubTaskNotificationListener.php | |
parent | c539bdc8ab746c5afd48cf87de057dc38d50adac (diff) |
Add email notifications
Diffstat (limited to 'app/Event/SubTaskNotificationListener.php')
-rw-r--r-- | app/Event/SubTaskNotificationListener.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/Event/SubTaskNotificationListener.php b/app/Event/SubTaskNotificationListener.php new file mode 100644 index 00000000..0a239421 --- /dev/null +++ b/app/Event/SubTaskNotificationListener.php @@ -0,0 +1,30 @@ +<?php + +namespace Event; + +use Event\BaseNotificationListener; + +/** + * SubTask notification listener + * + * @package event + * @author Frederic Guillot + */ +class SubTaskNotificationListener extends BaseNotificationListener +{ + /** + * Fetch data for the mail template + * + * @access public + * @param array $data Event data + * @return array + */ + public function getTemplateData(array $data) + { + $values = array(); + $values['subtask'] = $this->notification->subtask->getById($data['id'], true); + $values['task'] = $this->notification->task->getById($data['task_id'], true); + + return $values; + } +} |