summaryrefslogtreecommitdiff
path: root/app/Api/GroupMember.php
blob: de62f0c6a6a23016e69931276f85f9e9d2ffba12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
    }
}