ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMailAutoCompleteBuddyRecipientsProvider Class Reference

Class ilMailAutoCompleteBuddyRecipientsProvider. More...

+ Inheritance diagram for ilMailAutoCompleteBuddyRecipientsProvider:
+ Collaboration diagram for ilMailAutoCompleteBuddyRecipientsProvider:

Protected Member Functions

 getFromPart ()
 
- Protected Member Functions inherited from ilMailAutoCompleteUserProvider
 getSelectPart ()
 
 getFromPart ()
 
 getWherePart ($search_query)
 
 getOrderByPart ()
 
 getQueryConditionByFieldAndValue ($field, $a_str)
 
 getFields ()
 Get searchable fields. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilMailAutoCompleteUserProvider
 __construct ($quoted_term, $term)
 
 valid ()
 "Valid" implementation of iterator interface More...
 
 current ()
 "Current" implementation of iterator interface More...
 
 key ()
 "Key" implementation of iterator interface More...
 
 rewind ()
 "Rewind "implementation of iterator interface More...
 
- Public Member Functions inherited from ilMailAutoCompleteRecipientProvider
 __construct ($quoted_term, $term)
 
 valid ()
 "Valid" implementation of iterator interface More...
 
 next ()
 "Next" implementation of iterator interface More...
 
 __destruct ()
 Destructor Free the result. More...
 
- Protected Attributes inherited from ilMailAutoCompleteRecipientProvider
 $db
 
 $res
 
 $data = array()
 
 $quoted_term = ''
 
 $term = ''
 
 $user_id = 0
 

Detailed Description

Member Function Documentation

◆ getFromPart()

ilMailAutoCompleteBuddyRecipientsProvider::getFromPart ( )
protected
Returns
string

Definition at line 14 of file class.ilMailAutoCompleteBuddyRecipientsProvider.php.

15  {
16  $joins = array();
17 
18  $joins[] = '
19  INNER JOIN buddylist
20  ON (
21  (buddylist.usr_id = usr_data.usr_id AND buddylist.buddy_usr_id = ' . $this->db->quote($this->user_id, 'integer') . ') OR
22  (buddylist.buddy_usr_id = usr_data.usr_id AND buddylist.usr_id = ' . $this->db->quote($this->user_id, 'integer') . ')
23  )';
24 
25  $joins[] = '
26  LEFT JOIN usr_pref profpref
27  ON profpref.usr_id = usr_data.usr_id
28  AND profpref.keyword = ' . $this->db->quote('public_profile', 'text');
29 
30  $joins[] = '
31  LEFT JOIN usr_pref pubemail
32  ON pubemail.usr_id = usr_data.usr_id
33  AND pubemail.keyword = ' . $this->db->quote('public_email', 'text');
34 
35  if ($joins) {
36  return 'usr_data ' . implode(' ', $joins);
37  } else {
38  return 'usr_data ';
39  }
40  }

The documentation for this class was generated from the following file: