ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilMailForm Class Reference
+ Collaboration diagram for ilMailForm:

Public Member Functions

 getRecipientAsync ($quoted_term, $term, $search_recipients=true)
 Called by class ilMailFormGUI. More...
 

Detailed Description

Author
Nadia Ahmad
Version
$Id$

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

Member Function Documentation

◆ getRecipientAsync()

ilMailForm::getRecipientAsync (   $quoted_term,
  $term,
  $search_recipients = true 
)

Called by class ilMailFormGUI.

Parameters
stringsearch string surrounded with wildcards
stringsearch string
Returns
array search result as an object of type stdClass @access public

Definition at line 26 of file class.ilMailForm.php.

27 {
28 require_once 'Services/Contact/BuddySystem/classes/class.ilMailAutoCompleteBuddyRecipientsProvider.php';
29 if($search_recipients)
30 {
31 $sent_mails_recipient_provider = new ilMailAutoCompleteSentMailsRecipientsProvider($quoted_term, $term);
32 }
33 $approved_contacts = new ilMailAutoCompleteBuddyRecipientsProvider($quoted_term, $term);
34 $user = new ilMailAutoCompleteUserProvider($quoted_term, $term);
35
36 $result = new ilMailAutocompleteRecipientResult(
37 isset($_GET['fetchall']) && (int)$_GET['fetchall'] ?
38 ilMailAutocompleteRecipientResult::MODE_FETCH_ALL :
39 ilMailAutocompleteRecipientResult::MODE_STOP_ON_MAX_ENTRIES
40 );
41
42 $result_fetcher = new ilMailAutoCompleteSearch($result);
43 if($search_recipients)
44 {
45 $result_fetcher->addProvider($sent_mails_recipient_provider);
46 }
47 $result_fetcher->addProvider($approved_contacts);
48 $result_fetcher->addProvider($user);
49 $result_fetcher->search();
50
51 return $result->getItems();
52 }
$result
$_GET["client_id"]
Class ilMailAutoCompleteSearch.
Class ilMailAutoCompleteUserProvider.

References $_GET, and $result.


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