Definition at line 27 of file class.ilMailForm.php.
◆ getRecipientAsync()
| ilMailForm::getRecipientAsync |
( |
string |
$quoted_term, |
|
|
string |
$term, |
|
|
bool |
$do_recipient_search = true |
|
) |
| |
- Returns
- array{hasMoreResults: bool, items: array}
Definition at line 32 of file class.ilMailForm.php.
32 : array
33 {
35
38
39 $mode = LegacyAutocompleteSearchResult::MODE_STOP_ON_MAX_ENTRIES;
40 if (
41 $http->wrapper()->query()->has(
'fetchall') &&
42 $http->wrapper()->query()->retrieve(
'fetchall',
$refinery->kindlyTo()->bool())
43 ) {
44 $mode = LegacyAutocompleteSearchResult::MODE_FETCH_ALL;
45 }
46
48
49 $search =
new Search($result);
50 if ($do_recipient_search) {
52 }
56 }
57 $search->search();
58
59 return $result->getItems();
60 }
@phpstan-type AutoCompleteUserItem array{label: string, value: string} @phpstan-type AutoCompleteResu...
@phpstan-import-type AutoCompleteUserRecord from RecipientSearchProvider
@phpstan-import-type AutoCompleteUserRecord from RecipientSearchProvider
@phpstan-import-type AutoCompleteUserRecord from RecipientSearchProvider
References $DIC, $http, ILIAS\UI\examples\Layout\Page\Mail\$refinery, and ilSearchSettings\getInstance().
The documentation for this class was generated from the following file: