summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_groups_actions.php
blob: 6ce37010bffbe3b2f420a027c76f8911bf997bc2 (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
<?php

/**
 *
 */
class kolab_groups_actions extends kolab_api_service
{
    public function capabilities($domain)
    {
        return array(
            'list' => 'r',
            'search' =>  'r',
            );
    }

    public function groups_list($get, $post)
    {
        $auth = Auth::get_instance();

        $groups = $auth->list_groups();
        $count  = count($groups);

        return array(
            'list'  => $groups,
            'count' => $count,
        );
    }
}