source: branches/2.2.0.1/jabberir_messenger/inc/class.bogroupsldap.inc.php @ 4453

Revision 4453, 1.4 KB checked in by rafaelraymundo, 13 years ago (diff)

Ticket #1726 - Adicionando jabberit_messenger da comunidade.

  • Property svn:executable set to *
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
13require_once "class.db_im.inc.php";
14require_once "class.ldap_im.inc.php";
15require_once "jabberit_sessions.inc.php";
16
17class 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.