ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMailForm Class Reference
+ Collaboration diagram for ilMailForm:

Public Member Functions

 getRecipientAsync (string $quoted_term, string $term, bool $do_recipient_search=true)
 

Detailed Description

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

Member Function Documentation

◆ getRecipientAsync()

ilMailForm::getRecipientAsync ( string  $quoted_term,
string  $term,
bool  $do_recipient_search = true 
)
Returns
array{hasMoreResults: bool, items: array}

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

26 : array
27 {
28 global $DIC;
29
30 $http = $DIC->http();
31 $refinery = $DIC->refinery();
32
34 if (
35 $http->wrapper()->query()->has('fetchall') &&
36 $http->wrapper()->query()->retrieve('fetchall', $refinery->kindlyTo()->bool())
37 ) {
39 }
40
41 $result = new ilMailAutoCompleteRecipientResult($mode);
42
43 $search = new ilMailAutoCompleteSearch($result);
44 if ($do_recipient_search) {
45 $search->addProvider(new ilMailAutoCompleteSentMailsRecipientsProvider($quoted_term, $term));
46 }
47 $search->addProvider(new ilMailAutoCompleteBuddyRecipientsProvider($quoted_term, $term));
48 if (ilSearchSettings::getInstance()->isLuceneUserSearchEnabled()) {
49 $search->addProvider(new ilMailAutoCompleteUserProvider($quoted_term, $term));
50 }
51 $search->search();
52
53 return $result->getItems();
54 }
$http
Definition: deliver.php:30
global $DIC
Definition: shib_login.php:26

References $DIC, $http, ILIAS\UI\examples\Layout\Page\Standard\$refinery, ilSearchSettings\getInstance(), ilMailAutoCompleteRecipientResult\MODE_FETCH_ALL, and ilMailAutoCompleteRecipientResult\MODE_STOP_ON_MAX_ENTRIES.

+ Here is the call graph for this function:

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