Revision 395,
1.4 KB
checked in by niltonneto, 16 years ago
(diff) |
Alterações necessárias devido à mudança de implementação do método
memberships() da API, que traz somente o ID dos grupos agora.
|
-
Property svn:executable set to
*
|
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 | |
---|
13 | require_once "class.sovoip.inc.php"; |
---|
14 | |
---|
15 | class 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.