ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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 16 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 public

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

References $_GET, and $result.

29  {
30  if($search_recipients)
31  {
32  $sent_mails_recipient_provider = new ilMailAutoCompleteSentMailsRecipientsProvider($quoted_term, $term);
33  }
34  $address_book_login = new ilMailAutoCompleteAddressbookLoginProvider($quoted_term, $term);
35  $address_book_email = new ilMailAutoCompleteAddressbookEmailProvider($quoted_term, $term);
36  $user = new ilMailAutoCompleteUserProvider($quoted_term, $term);
37 
38  $result = new ilMailAutocompleteRecipientResult(
39  isset($_GET['fetchall']) && (int)$_GET['fetchall'] ?
40  ilMailAutocompleteRecipientResult::MODE_FETCH_ALL :
41  ilMailAutocompleteRecipientResult::MODE_STOP_ON_MAX_ENTRIES
42  );
43 
44  $result_fetcher = new ilMailAutoCompleteSearch($result);
45  if($search_recipients)
46  {
47  $result_fetcher->addProvider($sent_mails_recipient_provider);
48  }
49  $result_fetcher->addProvider($address_book_login);
50  $result_fetcher->addProvider($address_book_email);
51  $result_fetcher->addProvider($user);
52  $result_fetcher->search();
53 
54  return $result->getItems();
55  }
$result
$_GET["client_id"]
Class ilMailAutoCompleteSearch.
Class ilMailAutoCompleteUserProvider.

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