diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-16 21:07:29 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-16 21:07:29 -0400 |
commit | b1e2ca00ce7375ffcbe5e927135c8892036e6bd6 (patch) | |
tree | 07ce453261f6493de7c901cfd8b4f0d9af85556d /app/Api/Group.php | |
parent | 4514bc1d4b4abff23902e46da76e70f13a3647eb (diff) |
Rename Api classes
Diffstat (limited to 'app/Api/Group.php')
-rw-r--r-- | app/Api/Group.php | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/app/Api/Group.php b/app/Api/Group.php deleted file mode 100644 index a1e0a73d..00000000 --- a/app/Api/Group.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php - -namespace Kanboard\Api; - -/** - * Group API controller - * - * @package api - * @author Frederic Guillot - */ -class Group extends \Kanboard\Core\Base -{ - public function createGroup($name, $external_id = '') - { - return $this->group->create($name, $external_id); - } - - public function updateGroup($group_id, $name = null, $external_id = null) - { - $values = array( - 'id' => $group_id, - 'name' => $name, - 'external_id' => $external_id, - ); - - foreach ($values as $key => $value) { - if (is_null($value)) { - unset($values[$key]); - } - } - - return $this->group->update($values); - } - - public function removeGroup($group_id) - { - return $this->group->remove($group_id); - } - - public function getGroup($group_id) - { - return $this->group->getById($group_id); - } - - public function getAllGroups() - { - return $this->group->getAll(); - } -} |