From 14713b0ec7ed93ca45578da069ad4e19a7d8addf Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 May 2016 19:48:22 -0400 Subject: Rename all models --- app/Model/ProjectNotification.php | 67 --------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 app/Model/ProjectNotification.php (limited to 'app/Model/ProjectNotification.php') diff --git a/app/Model/ProjectNotification.php b/app/Model/ProjectNotification.php deleted file mode 100644 index 5df042ca..00000000 --- a/app/Model/ProjectNotification.php +++ /dev/null @@ -1,67 +0,0 @@ -project->getById($project_id); - - $types = array_merge( - $this->projectNotificationType->getHiddenTypes(), - $this->projectNotificationType->getSelectedTypes($project_id) - ); - - foreach ($types as $type) { - $this->projectNotificationType->getType($type)->notifyProject($project, $event_name, $event_data); - } - } - - /** - * Save settings for the given project - * - * @access public - * @param integer $project_id - * @param array $values - */ - public function saveSettings($project_id, array $values) - { - $this->db->startTransaction(); - - $types = empty($values['notification_types']) ? array() : array_keys($values['notification_types']); - $this->projectNotificationType->saveSelectedTypes($project_id, $types); - - $this->db->closeTransaction(); - } - - /** - * Read user settings to display the form - * - * @access public - * @param integer $project_id - * @return array - */ - public function readSettings($project_id) - { - return array( - 'notification_types' => $this->projectNotificationType->getSelectedTypes($project_id), - ); - } -} -- cgit v1.2.3