From 09da289c2fb18475f372bee24e885617da484e0b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 17 Oct 2015 22:19:49 -0400 Subject: Move slack, hipchat and jabber integrations to plugins --- app/Model/ProjectIntegration.php | 66 ---------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 app/Model/ProjectIntegration.php (limited to 'app/Model/ProjectIntegration.php') diff --git a/app/Model/ProjectIntegration.php b/app/Model/ProjectIntegration.php deleted file mode 100644 index d07e4167..00000000 --- a/app/Model/ProjectIntegration.php +++ /dev/null @@ -1,66 +0,0 @@ -db->table(self::TABLE)->eq('project_id', $project_id)->findOne() ?: array(); - } - - /** - * Save parameters for a project - * - * @access public - * @param integer $project_id - * @param array $values - * @return boolean - */ - public function saveParameters($project_id, array $values) - { - if ($this->db->table(self::TABLE)->eq('project_id', $project_id)->exists()) { - return $this->db->table(self::TABLE)->eq('project_id', $project_id)->update($values); - } - - return $this->db->table(self::TABLE)->insert($values + array('project_id' => $project_id)); - } - - /** - * Check if a project has the given parameter/value - * - * @access public - * @param integer $project_id - * @param string $option - * @param string $value - * @return boolean - */ - public function hasValue($project_id, $option, $value) - { - return $this->db - ->table(self::TABLE) - ->eq('project_id', $project_id) - ->eq($option, $value) - ->exists(); - } -} -- cgit v1.2.3