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

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

    public function domains_list($get, $post) {
        $auth = Auth::get_instance();
  
        $domains = $auth->list_domains();
        $count   = count($domains);
  
        return array(
            'list'  => $domains,
            'count' => $count,
        );
    }
}