Class ilMailAutoCompleteRecipientResult.
More...
Protected Member Functions |
| initMode ($mode) |
Detailed Description
Member Function Documentation
ilMailAutoCompleteRecipientResult::addResult |
( |
|
$login, |
|
|
|
$firstname, |
|
|
|
$lastname |
|
) |
| |
- Parameters
-
string | $login | |
string | $firstname | |
string | $lastname | |
Definition at line 84 of file class.ilMailAutoCompleteRecipientResult.php.
{
if(!isset($this->handled_recipients[$login]))
{
$recipient = array();
$recipient['value'] = $login;
$label = $login;
if($firstname && $lastname)
{
$label .= " [" . $firstname . ", " . $lastname . "]";
}
$recipient['label'] = $label;
$this->result['items'][] = $recipient;
$this->handled_recipients[$login] = 1;
}
}
ilMailAutoCompleteRecipientResult::getItems |
( |
| ) |
|
ilMailAutoCompleteRecipientResult::initMode |
( |
|
$mode | ) |
|
|
protected |
ilMailAutoCompleteRecipientResult::isResultAddable |
( |
| ) |
|
- Returns
- bool
Definition at line 60 of file class.ilMailAutoCompleteRecipientResult.php.
{
if(
$this->mode == self::MODE_STOP_ON_MAX_ENTRIES &&
$this->max_entries >= 0 && count($this->result['items']) >= $this->max_entries
)
{
return false;
}
else if(
$this->mode == self::MODE_FETCH_ALL &&
count($this->result['items']) >= self::MAX_RESULT_ENTRIES
)
{
return false;
}
return true;
}
ilMailAutoCompleteRecipientResult::numItems |
( |
| ) |
|
Field Documentation
ilMailAutoCompleteRecipientResult::$allow_smtp = null |
|
protected |
ilMailAutoCompleteRecipientResult::$handled_recipients = array() |
|
protected |
ilMailAutoCompleteRecipientResult::$max_entries = null |
|
protected |
ilMailAutoCompleteRecipientResult::$mode = self::MODE_STOP_ON_MAX_ENTRIES |
|
protected |
ilMailAutoCompleteRecipientResult::$result = array() |
ilMailAutoCompleteRecipientResult::$user_id = null |
|
protected |
const ilMailAutoCompleteRecipientResult::MAX_RESULT_ENTRIES = 1000 |
const ilMailAutoCompleteRecipientResult::MODE_FETCH_ALL = 2 |
const ilMailAutoCompleteRecipientResult::MODE_STOP_ON_MAX_ENTRIES = 1 |
The documentation for this class was generated from the following file: