4 require_once
'Services/Mail/classes/class.ilMailAutoCompleteRecipientProvider.php';
5 require_once
'Services/Utilities/classes/class.ilStr.php';
23 if(is_array($this->
data))
26 'login' => $this->
data[
'login'],
31 else if(count($this->users_stack) > 0)
34 'login' => array_shift($this->users_stack),
47 if(is_array($this->
data))
49 return $this->
data[
'login'];
51 else if(count($this->users_stack) > 0)
53 return $this->users_stack[0];
62 $this->
data = $this->db->fetchAssoc($this->res);
64 is_array($this->
data) &&
66 strpos($this->
data[
'login'],
',') !==
false ||
67 strpos($this->
data[
'login'],
';') !==
false 71 $parts = array_filter(array_map(
'trim', preg_split(
"/[ ]*[;,][ ]*/", trim($this->
data[
'login']))));
72 foreach($parts as $part)
76 $this->users_stack[] = $part;
79 if($this->users_stack)
84 return is_array($this->
data) || count($this->users_stack) > 0;
96 $this->db->free($this->res);
104 WHERE " . $this->db->like(
'mail.rcp_to',
'text', $this->quoted_term) .
" 105 AND sender_id = " . $this->db->quote($this->user_id,
'integer') .
" 106 AND mail.sender_id = mail.user_id";
108 $this->res = $this->db->query(
$query);
Class ilMailAutoCompleteRecipientProvider.
static strPos($a_haystack, $a_needle, $a_offset=NULL)
Class ilMailAutoCompleteSentMailsRecipientsProvider.
static strToLower($a_string)
rewind()
"Rewind "implementation of iterator interface
current()
"Current" implementation of iterator interface
Create styles array
The data for the language used.
key()
"Key" implementation of iterator interface