source: companies/serpro/admin/inc/class.bovoip.inc.php @ 903

Revision 903, 1.4 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

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 = "<ldap_ou>";
39       
40                if((trim($groups) != '') && (is_array($groups)))
41                {
42                        foreach($groups as $tmp)       
43                                $group .= "<ou>" . $tmp . "</ou>";
44                }
45
46                $group .= "</ldap_ou>";
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.