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

Public Member Functions

 getUsersAsync ($quoted_term, $term)
 getAddressbookAsync ($quoted_term, $term)
 getEmailsAsync ($quoted_term, $term)

Detailed Description

Author
Nadia Ahmad
Version
$Id$

Definition at line 18 of file class.ilMailAddressbook.php.

Member Function Documentation

ilMailAddressbook::getAddressbookAsync (   $quoted_term,
  $term 
)

Definition at line 35 of file class.ilMailAddressbook.php.

References $_GET, and $result.

{
$address_book_login = new ilMailAutoCompleteAddressbookLoginProvider($quoted_term, $term);
$address_book_email = new ilMailAutoCompleteAddressbookEmailProvider($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);
$result_fetcher->addProvider($address_book_login);
$result_fetcher->addProvider($address_book_email);
$result_fetcher->search();
return $result->getItems();
}
ilMailAddressbook::getEmailsAsync (   $quoted_term,
  $term 
)

Definition at line 54 of file class.ilMailAddressbook.php.

References $_GET, and $result.

{
$result = new ilMailAutocompleteRecipientResult(
isset($_GET['fetchall']) && (int)$_GET['fetchall'] ?
ilMailAutocompleteRecipientResult::MODE_FETCH_ALL :
ilMailAutocompleteRecipientResult::MODE_STOP_ON_MAX_ENTRIES
);
$result_fetcher = new ilMailAutoCompleteSearch($result);
$result_fetcher->addProvider(new ilMailAutoCompleteProviderEmailFilter(new ilMailAutoCompleteSentMailsRecipientsProvider($quoted_term, $term)));
$result_fetcher->search();
return $result->getItems();
}
ilMailAddressbook::getUsersAsync (   $quoted_term,
  $term 
)

Definition at line 20 of file class.ilMailAddressbook.php.

References $_GET, and $result.

{
$result = new ilMailAutocompleteRecipientResult(
isset($_GET['fetchall']) && (int)$_GET['fetchall'] ?
ilMailAutocompleteRecipientResult::MODE_FETCH_ALL :
ilMailAutocompleteRecipientResult::MODE_STOP_ON_MAX_ENTRIES
);
$result_fetcher = new ilMailAutoCompleteSearch($result);
$result_fetcher->addProvider(new ilMailAutoCompleteUserProvider($quoted_term, $term));
$result_fetcher->search();
return $result->getItems();
}

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