- Timestamp:
- 09/17/09 17:39:22 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/inc/class.bo_global_ldap_catalog.inc.php
r884 r1419 539 539 540 540 */ 541 function get_single_entry ( $id_contact, $fields )541 function get_single_entry ( $id_contact, $fields, $external=false ) 542 542 { 543 543 if (!is_array($fields)) … … 564 564 return false; 565 565 } 566 $id_contact = preg_replace("/dc=(.*)/i",$this->src_info['dn'],$id_contact); 566 if(!$external) 567 $id_contact = preg_replace("/dc=(.*)/i",$this->src_info['dn'],$id_contact); 568 567 569 $resource = @ldap_read($ldap, $id_contact, 'objectClass='.$this->src_info['obj']); 568 570 $n_entries = @ldap_count_entries($ldap, $resource); … … 578 580 } 579 581 580 // print_r($contact); 582 581 583 582 584 // $contact_data = $this->fields; … … 1164 1166 } 1165 1167 1166 function get_multiple_entries ( $id_contacts, $fields, $other_data = false )1168 function get_multiple_entries ( $id_contacts, $fields, $other_data = false, $external=false ) 1167 1169 { 1168 1170 if (!is_array($id_contacts) or !is_array($fields) or ($other_data != false and !is_array($other_data))) … … 1184 1186 foreach ($id_contacts as $id) 1185 1187 { 1186 $contacts[$id] = $this->get_single_entry($id,$fields );1188 $contacts[$id] = $this->get_single_entry($id,$fields,$external); 1187 1189 } 1188 1190
Note: See TracChangeset
for help on using the changeset viewer.