Class ilMailAutoCompleteSentMailsRecipientsProvider.  
 More...
◆ current()
      
        
          | ilMailAutoCompleteSentMailsRecipientsProvider::current  | 
          ( | 
           | ) | 
           | 
        
      
 
- Returns
 - array{login: string, firstname: string, lastname: string} 
 
- Exceptions
 - 
  
  
 
Definition at line 33 of file class.ilMailAutoCompleteSentMailsRecipientsProvider.php.
   35         if (is_array($this->data) && !empty($this->data)) {
    37                 'login' => $this->data[
'login'],
    43         if ($this->users_stack !== []) {
    45                 'login' => array_shift($this->users_stack),
 
 
 
 
◆ key()
      
        
          | ilMailAutoCompleteSentMailsRecipientsProvider::key  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ rewind()
      
        
          | ilMailAutoCompleteSentMailsRecipientsProvider::rewind  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 97 of file class.ilMailAutoCompleteSentMailsRecipientsProvider.php.
   99         if ($this->res !== null) {
   100             $this->db->free($this->res);
   108                         WHERE " . $this->db->like(
'mail.rcp_to', 
'text', $this->quoted_term) . 
"   109                         AND mail.rcp_to IS NOT NULL AND mail.rcp_to != ''   110                         AND sender_id = " . $this->db->quote($this->user_id, 
'integer') . 
"   111                         AND mail.sender_id = mail.user_id";
   113         $this->res = $this->db->query($query);
  
 
 
◆ valid()
      
        
          | ilMailAutoCompleteSentMailsRecipientsProvider::valid  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 67 of file class.ilMailAutoCompleteSentMailsRecipientsProvider.php.
References $parts, ilStr\strPos(), and ilStr\strToLower().
   69         $this->data = $this->db->fetchAssoc($this->res);
    70         if (is_array($this->data) &&
    71             !empty($this->data) &&
    73                 strpos($this->data[
'login'], 
',') ||
    74                 strpos($this->data[
'login'], 
';')
    79                     preg_split(
"/[ ]*[;,][ ]*/", trim($this->data[
'login']))
    83             foreach (
$parts as $part) {
    85                     $this->users_stack[] = $part;
    89             if ($this->users_stack) {
    94         return (is_array($this->data) && !empty($this->data)) || $this->users_stack !== [];
 if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
 
static strPos(string $a_haystack, string $a_needle, int $a_offset=0)
 
static strToLower(string $a_string)
 
 
 
 
◆ $users_stack
  
  
      
        
          | array ilMailAutoCompleteSentMailsRecipientsProvider::$users_stack = [] | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: