ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $sent_mails_recipient_provider = new ilMailAutoCompleteSentMailsRecipientsProvider($quoted_term, $term);
31 }
32 $approved_contacts = new ilMailAutoCompleteBuddyRecipientsProvider($quoted_term, $term);
33 $user = new ilMailAutoCompleteUserProvider($quoted_term, $term);
34
35 $result = new ilMailAutocompleteRecipientResult(
36 isset($_GET['fetchall']) && (int) $_GET['fetchall'] ?
37 ilMailAutocompleteRecipientResult::MODE_FETCH_ALL :
38 ilMailAutocompleteRecipientResult::MODE_STOP_ON_MAX_ENTRIES
39 );
40
41 $result_fetcher = new ilMailAutoCompleteSearch($result);
42 if ($search_recipients) {
43 $result_fetcher->addProvider($sent_mails_recipient_provider);
44 }
45 $result_fetcher->addProvider($approved_contacts);
46 $result_fetcher->addProvider($user);
47 $result_fetcher->search();
48
49 return $result->getItems();
50 }
$result
$_GET["client_id"]
Class ilMailAutoCompleteSearch.
Class ilMailAutoCompleteUserProvider.

References $_GET, and $result.


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