4 require_once
'Services/Mail/classes/class.ilMailAutoCompleteRecipientProvider.php';
5 require_once
'Services/Utilities/classes/class.ilStr.php';
23 if (is_array($this->
data)) {
25 'login' => $this->
data[
'login'],
29 } elseif (count($this->users_stack) > 0) {
31 'login' => array_shift($this->users_stack),
44 if (is_array($this->
data)) {
45 return $this->
data[
'login'];
46 } elseif (count($this->users_stack) > 0) {
47 return $this->users_stack[0];
56 $this->
data = $this->db->fetchAssoc($this->res);
58 is_array($this->
data) &&
60 strpos($this->
data[
'login'],
',') !==
false ||
61 strpos($this->
data[
'login'],
';') !==
false 64 $parts = array_filter(array_map(
'trim', preg_split(
"/[ ]*[;,][ ]*/", trim($this->
data[
'login']))));
65 foreach ($parts as $part) {
67 $this->users_stack[] = $part;
70 if ($this->users_stack) {
74 return is_array($this->
data) || count($this->users_stack) > 0;
85 $this->db->free($this->res);
93 WHERE " . $this->db->like(
'mail.rcp_to',
'text', $this->quoted_term) .
" 94 AND sender_id = " . $this->db->quote($this->user_id,
'integer') .
" 95 AND mail.sender_id = mail.user_id";
97 $this->res = $this->db->query(
$query);
static strPos($a_haystack, $a_needle, $a_offset=null)
Class ilMailAutoCompleteRecipientProvider.
Class ilMailAutoCompleteSentMailsRecipientsProvider.
static strToLower($a_string)
rewind()
"Rewind "implementation of iterator interface
current()
"Current" implementation of iterator interface
key()
"Key" implementation of iterator interface