ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
◀ ilDoc Overview
MailRecipientSearchProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Contact\BuddySystem\MailRecipientSearch
;
22
23
use
ILIAS\Mail\RecipientSearch\LegacyUserSearchBasedProvider
;
24
25
class
MailRecipientSearchProvider
extends
LegacyUserSearchBasedProvider
26
{
27
protected
function
getFromPart
(): string
28
{
29
$joins = [];
30
31
$joins[] = implode(
' '
, [
32
'INNER JOIN buddylist'
,
33
'ON (('
,
34
'buddylist.usr_id = usr_data.usr_id AND'
,
35
'buddylist.buddy_usr_id = '
. $this->db->quote($this->user_id,
'integer'
),
36
') OR ('
,
37
'buddylist.buddy_usr_id = usr_data.usr_id AND'
,
38
'buddylist.usr_id = '
. $this->db->quote($this->user_id,
'integer'
),
39
'))'
,
40
]);
41
42
$joins[] = implode(
' '
, [
43
'LEFT JOIN usr_pref profpref'
,
44
'ON profpref.usr_id = usr_data.usr_id'
,
45
'AND profpref.keyword = '
. $this->db->quote(
'public_profile'
,
'text'
),
46
]);
47
48
$joins[] = implode(
' '
, [
49
'LEFT JOIN usr_pref pubemail'
,
50
'ON pubemail.usr_id = usr_data.usr_id'
,
51
'AND pubemail.keyword = '
. $this->db->quote(
'public_email'
,
'text'
),
52
]);
53
54
return
'usr_data '
. implode(
' '
, $joins);
55
}
56
}
ILIAS\Contact\BuddySystem\MailRecipientSearch\MailRecipientSearchProvider
Definition:
MailRecipientSearchProvider.php:26
ILIAS\Contact\BuddySystem\MailRecipientSearch\MailRecipientSearchProvider\getFromPart
getFromPart()
Definition:
MailRecipientSearchProvider.php:27
ILIAS\Mail\RecipientSearch\LegacyUserSearchBasedProvider
@phpstan-import-type AutoCompleteUserRecord from RecipientSearchProvider
Definition:
LegacyUserSearchBasedProvider.php:27
ILIAS\Contact\BuddySystem\MailRecipientSearch
Definition:
MailRecipientSearchProvider.php:21
components
ILIAS
Contact
BuddySystem
classes
UserSearch
ILIAS
Contact
BuddySystem
UserSearch
MailRecipientSearchProvider.php
Generated on Sat Dec 13 2025 23:02:05 for ILIAS by
1.9.4 (using
Doxyfile
)