19 declare(strict_types=1);
32 if (is_array($this->data) && !empty($this->data)) {
34 'login' => $this->data[
'login'],
40 if ($this->users_stack !== []) {
42 'login' => array_shift($this->users_stack),
51 public function key(): string
53 if (is_array($this->data) && !empty($this->data)) {
54 return $this->data[
'login'];
57 if ($this->users_stack !== []) {
58 return $this->users_stack[0][
'login'];
66 $this->data = $this->db->fetchAssoc($this->res);
67 if (is_array($this->data) &&
68 !empty($this->data) &&
70 strpos((
string) $this->data[
'login'],
',') ||
71 strpos((
string) $this->data[
'login'],
';')
76 preg_split(
"/[ ]*[;,][ ]*/", trim((
string) $this->data[
'login']))
80 foreach (
$parts as $part) {
82 $this->users_stack[] = $part;
86 if ($this->users_stack) {
91 return (is_array($this->data) && !empty($this->data)) || $this->users_stack !== [];
96 if ($this->res !==
null) {
97 $this->db->free($this->res);
105 WHERE " . $this->db->like(
'mail.rcp_to',
'text', $this->quoted_term) .
" 106 AND mail.rcp_to IS NOT NULL AND mail.rcp_to != '' 107 AND sender_id = " . $this->db->quote($this->user_id,
'integer') .
" 108 AND mail.sender_id = mail.user_id";
110 $this->res = $this->db->query($query);
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)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static strToLower(string $a_string)