Class ilMailAutoCompleteRecipientResult.
More...
◆ __construct()
ilMailAutoCompleteRecipientResult::__construct |
( |
|
$mode | ) |
|
◆ addResult()
ilMailAutoCompleteRecipientResult::addResult |
( |
|
$login, |
|
|
|
$firstname, |
|
|
|
$lastname |
|
) |
| |
- Parameters
-
string | $login | |
string | $firstname | |
string | $lastname | |
Definition at line 76 of file class.ilMailAutoCompleteRecipientResult.php.
References array.
78 if (!isset($this->handled_recipients[$login])) {
80 $recipient[
'value'] = $login;
83 if ($firstname && $lastname) {
84 $label .=
" [" . $firstname .
", " . $lastname .
"]";
86 $recipient[
'label'] = $label;
88 $this->result[
'items'][] = $recipient;
89 $this->handled_recipients[$login] = 1;
Create styles array
The data for the language used.
◆ getItems()
ilMailAutoCompleteRecipientResult::getItems |
( |
| ) |
|
◆ initMode()
ilMailAutoCompleteRecipientResult::initMode |
( |
|
$mode | ) |
|
|
protected |
◆ isResultAddable()
ilMailAutoCompleteRecipientResult::isResultAddable |
( |
| ) |
|
- Returns
- bool
Definition at line 55 of file class.ilMailAutoCompleteRecipientResult.php.
58 $this->mode == self::MODE_STOP_ON_MAX_ENTRIES &&
59 $this->max_entries >= 0 && count($this->result[
'items']) >= $this->max_entries
63 $this->mode == self::MODE_FETCH_ALL &&
64 count($this->result[
'items']) >= self::MAX_RESULT_ENTRIES
◆ numItems()
ilMailAutoCompleteRecipientResult::numItems |
( |
| ) |
|
◆ $allow_smtp
ilMailAutoCompleteRecipientResult::$allow_smtp = null |
|
protected |
◆ $handled_recipients
ilMailAutoCompleteRecipientResult::$handled_recipients = array() |
|
protected |
◆ $max_entries
ilMailAutoCompleteRecipientResult::$max_entries = null |
|
protected |
◆ $mode
ilMailAutoCompleteRecipientResult::$mode = self::MODE_STOP_ON_MAX_ENTRIES |
|
protected |
◆ $result
ilMailAutoCompleteRecipientResult::$result = array() |
◆ $user_id
ilMailAutoCompleteRecipientResult::$user_id = null |
|
protected |
◆ MAX_RESULT_ENTRIES
const ilMailAutoCompleteRecipientResult::MAX_RESULT_ENTRIES = 1000 |
◆ MODE_FETCH_ALL
const ilMailAutoCompleteRecipientResult::MODE_FETCH_ALL = 2 |
◆ MODE_STOP_ON_MAX_ENTRIES
const ilMailAutoCompleteRecipientResult::MODE_STOP_ON_MAX_ENTRIES = 1 |
The documentation for this class was generated from the following file: