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.
77 {
78 if (!isset($this->handled_recipients[
$login])) {
79 $recipient = array();
80 $recipient[
'value'] =
$login;
81
83 if ($firstname && $lastname) {
84 $label .= " [" . $firstname . ", " . $lastname . "]";
85 }
86 $recipient['label'] = $label;
87
88 $this->result['items'][] = $recipient;
89 $this->handled_recipients[
$login] = 1;
90 }
91 }
References $login.
◆ getItems()
ilMailAutoCompleteRecipientResult::getItems |
( |
| ) |
|
◆ initMode()
ilMailAutoCompleteRecipientResult::initMode |
( |
|
$mode | ) |
|
|
protected |
◆ isResultAddable()
ilMailAutoCompleteRecipientResult::isResultAddable |
( |
| ) |
|
- Returns
- bool
Definition at line 55 of file class.ilMailAutoCompleteRecipientResult.php.
56 {
57 if (
58 $this->mode == self::MODE_STOP_ON_MAX_ENTRIES &&
59 $this->max_entries >= 0 && count($this->result['items']) >= $this->max_entries
60 ) {
61 return false;
62 } elseif (
63 $this->mode == self::MODE_FETCH_ALL &&
64 count($this->result['items']) >= self::MAX_RESULT_ENTRIES
65 ) {
66 return false;
67 }
68 return true;
69 }
◆ 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: