Revision 6141,
1.4 KB
checked in by niltonneto, 12 years ago
(diff) |
Ticket #2229 - Correção da versão 2.2 replicada para o Trunk. Vide Ticket.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[357] | 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 | |
---|
[395] | 38 | $group = "<groups>"; |
---|
[357] | 39 | |
---|
[6141] | 40 | if(is_array($groups)) |
---|
[357] | 41 | { |
---|
| 42 | foreach($groups as $tmp) |
---|
[395] | 43 | $group .= "<group>" . $tmp['cn'].";".$tmp['gid'] . "</group>"; |
---|
[357] | 44 | } |
---|
| 45 | |
---|
[395] | 46 | $group .= "</groups>"; |
---|
[357] | 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.