Revision 3102,
1.4 KB
checked in by amuller, 14 years ago
(diff) |
Ticket #986 - Efetuado merge para o Branch 2.2( atualizacao do modulo)
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[3102] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /***************************************************************************\ |
---|
| 4 | * Expresso - Expresso Messenger * |
---|
| 5 | * - Alexandre Correia / Rodrigo Souza * |
---|
| 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.db_im.inc.php"; |
---|
| 14 | require_once "class.ldap_im.inc.php"; |
---|
| 15 | require_once "jabberit_sessions.inc.php"; |
---|
| 16 | |
---|
| 17 | class bogroupsldap |
---|
| 18 | { |
---|
| 19 | private $db; |
---|
| 20 | private $ldap; |
---|
| 21 | |
---|
| 22 | function __construct() |
---|
| 23 | { |
---|
| 24 | $this->db = new db_im(); |
---|
| 25 | $this->ldap = new ldap_im(); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | public function getGroupsSearch() |
---|
| 29 | { |
---|
| 30 | return $this->db->getGroupsSearch(); |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | public function getServerLdapInternal() |
---|
| 34 | { |
---|
| 35 | return $_SESSION['phpgw_info']['jabberit_messenger']['server_ldap_jabberit']; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | public function getServersLdapExternal() |
---|
| 39 | { |
---|
| 40 | return unserialize($this->db->getHostsJabber()); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | public function getOrganizationsLdap($pHost) |
---|
| 44 | { |
---|
| 45 | return $this->ldap->getOrganizationsLdap($pHost); |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | public function setAddGroups($pData) |
---|
| 49 | { |
---|
| 50 | $this->db->setAddGroupsSearch($pData); |
---|
| 51 | } |
---|
| 52 | } |
---|
| 53 | |
---|
| 54 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.