ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilMailForm.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
16 public function getRecipientAsync(string $quotedTerm, string $term, bool $doRecipientSearch = true) : array
17 {
19 if (isset($_GET['fetchall']) && $_GET['fetchall']) {
21 }
22
24
25 $search = new ilMailAutoCompleteSearch($result);
26 if ($doRecipientSearch) {
27 $search->addProvider(new ilMailAutoCompleteSentMailsRecipientsProvider($quotedTerm, $term));
28 }
29 $search->addProvider(new ilMailAutoCompleteBuddyRecipientsProvider($quotedTerm, $term));
30 $search->addProvider(new ilMailAutoCompleteUserProvider($quotedTerm, $term));
31 $search->search();
32
33 return $result->getItems();
34 }
35}
$result
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilMailAutoCompleteSearch.
Class ilMailAutoCompleteUserProvider.
getRecipientAsync(string $quotedTerm, string $term, bool $doRecipientSearch=true)