Revision 1759,
1.4 KB
checked in by alexandrecorreia, 15 years ago
(diff) |
Ticket #808 - Busca implementada utilizando somente os grupos cadastrados.
|
Line | |
---|
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.