summaryrefslogtreecommitdiff
path: root/app/Api/GroupMember.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/GroupMember.php')
-rw-r--r--app/Api/GroupMember.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/Api/GroupMember.php b/app/Api/GroupMember.php
new file mode 100644
index 00000000..de62f0c6
--- /dev/null
+++ b/app/Api/GroupMember.php
@@ -0,0 +1,32 @@
+<?php
+
+namespace Kanboard\Api;
+
+/**
+ * Group Member API controller
+ *
+ * @package api
+ * @author Frederic Guillot
+ */
+class GroupMember extends \Kanboard\Core\Base
+{
+ public function getGroupMembers($group_id)
+ {
+ return $this->groupMember->getMembers($group_id);
+ }
+
+ public function addGroupMember($group_id, $user_id)
+ {
+ return $this->groupMember->addUser($group_id, $user_id);
+ }
+
+ public function removeGroupMember($group_id, $user_id)
+ {
+ return $this->groupMember->removeUser($group_id, $user_id);
+ }
+
+ public function isGroupMember($group_id, $user_id)
+ {
+ return $this->groupMember->isMember($group_id, $user_id);
+ }
+}