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/UserNotificationType.php | 54 -------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 app/Model/UserNotificationType.php (limited to 'app/Model/UserNotificationType.php') diff --git a/app/Model/UserNotificationType.php b/app/Model/UserNotificationType.php deleted file mode 100644 index d84cc690..00000000 --- a/app/Model/UserNotificationType.php +++ /dev/null @@ -1,54 +0,0 @@ -db->table(self::TABLE)->eq('user_id', $user_id)->asc('notification_type')->findAllByColumn('notification_type'); - return $this->filterTypes($types); - } - - /** - * Save notification types for a given user - * - * @access public - * @param integer $user_id - * @param string[] $types - * @return boolean - */ - public function saveSelectedTypes($user_id, array $types) - { - $results = array(); - $this->db->table(self::TABLE)->eq('user_id', $user_id)->remove(); - - foreach ($types as $type) { - $results[] = $this->db->table(self::TABLE)->insert(array('user_id' => $user_id, 'notification_type' => $type)); - } - - return ! in_array(false, $results, true); - } -} -- cgit v1.2.3