source: sandbox/2.3-MailArchiver/admin/inc/class.bovoip.inc.php @ 6779

Revision 6779, 1.4 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
1<?php
2
3 /**************************************************************************\
4  * Expresso Livre - Voip - administration                                   *
5  *                                                                                                                                      *
6  * --------------------------------------------                             *
7  *  This program is free software; you can redistribute it and/or modify it *
8  *  under the terms of the GNU General Public License as published by the   *
9  *  Free Software Foundation; either version 2 of the License, or (at your  *
10  *  option) any later version.                                              *
11  \**************************************************************************/
12
13require_once "class.sovoip.inc.php";
14
15class bovoip
16{
17        private $so;
18
19        final function __construct()
20        {
21                $this->so = new sovoip();       
22        }
23
24        public final function getConf()
25        {
26                $this->so->getConf();
27        }
28
29        public final function getOuLdap()
30        {
31                return $this->so->getOuLdap();
32        }
33
34        public final function getGroupsLdap($pOrg)
35        {
36                $groups = $this->so->getGroupsLdap($pOrg);
37               
38                $group = "<groups>";
39       
40                if((trim($groups) != '') && (is_array($groups)))
41                {
42                        foreach($groups as $tmp)       
43                                $group .= "<group>" . $tmp['cn'].";".$tmp['gid'] . "</group>";                         
44                }
45
46                $group .= "</groups>";
47               
48                return $group;
49        }       
50
51        public final function getConfDB()
52        {
53                return $this->so->getConfDB();
54        }
55
56        public final function setConfDB($pConf)
57        {
58                $this->so->setConfDB($pConf);   
59        }
60}
61?>
Note: See TracBrowser for help on using the repository browser.