Ignore:
Timestamp:
03/12/12 18:48:44 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Adicionado algumas melhorias no método Catalog.getUserContacts().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/json-rpc/Expresso.php

    r5681 r5707  
    44 
    55        protected $expressoVersion; 
    6         protected $ldap; 
     6        protected $ldapCatalog; 
    77        var $result; 
    88        var $error; 
     
    2929        } 
    3030         
    31         protected function getLdap(){ 
    32                 if($this->ldap == null) { 
    33                         $this->ldap = $GLOBALS['phpgw']->common->ldapConnect(); 
     31        protected function getLdapCatalog(){ 
     32                if(!$this->ldapCatalog) { 
     33                        $catalog_config = CreateObject("contactcenter.bo_ldap_manager"); 
     34                        $_SESSION['phpgw_info']['expressomail']['ldap_server'] = $catalog_config ? $catalog_config->srcs[1] : null; 
     35                        $this->ldapCatalog = CreateObject("expressoMail1_2.ldap_functions"); 
    3436                } 
    3537         
    36                 return $this->ldap; 
     38                return $this->ldapCatalog; 
    3739        } 
    3840         
Note: See TracChangeset for help on using the changeset viewer.