ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
8 class ilMailForm
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  if (ilSearchSettings::getInstance()->isLuceneUserSearchEnabled()) {
31  $search->addProvider(new ilMailAutoCompleteUserProvider($quotedTerm, $term));
32  }
33  $search->search();
34 
35  return $result->getItems();
36  }
37 }
$result
$_GET["client_id"]
Class ilMailAutoCompleteRecipientResult.
getRecipientAsync(string $quotedTerm, string $term, bool $doRecipientSearch=true)
Class ilMailAutoCompleteSearch.
Class ilMailAutoCompleteUserProvider.