ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMailForm Class Reference
+ Collaboration diagram for ilMailForm:

Public Member Functions

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

Detailed Description

Author
Nadia Ahmad
Version
$Id$

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

Member Function Documentation

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.

{
if($search_recipients)
{
$sent_mails_recipient_provider = new ilMailAutoCompleteSentMailsRecipientsProvider($quoted_term, $term);
}
$address_book_login = new ilMailAutoCompleteAddressbookLoginProvider($quoted_term, $term);
$address_book_email = new ilMailAutoCompleteAddressbookEmailProvider($quoted_term, $term);
$user = new ilMailAutoCompleteUserProvider($quoted_term, $term);
$result = new ilMailAutocompleteRecipientResult(
isset($_GET['fetchall']) && (int)$_GET['fetchall'] ?
ilMailAutocompleteRecipientResult::MODE_FETCH_ALL :
ilMailAutocompleteRecipientResult::MODE_STOP_ON_MAX_ENTRIES
);
$result_fetcher = new ilMailAutoCompleteSearch($result);
if($search_recipients)
{
$result_fetcher->addProvider($sent_mails_recipient_provider);
}
$result_fetcher->addProvider($address_book_login);
$result_fetcher->addProvider($address_book_email);
$result_fetcher->addProvider($user);
$result_fetcher->search();
return $result->getItems();
}

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