ILIAS  release_8 Revision v8.24
class.ilOnScreenChatUserUserAutoComplete.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21require_once 'Services/User/classes/class.ilUserAutoComplete.php';
22
28{
29 protected function getFromPart(): string
30 {
31 global $DIC;
32
33 $from_part = parent::getFromPart();
34 $from_part .= '
35 INNER JOIN usr_pref chat_osc_am
36 ON chat_osc_am.usr_id = ud.usr_id
37 AND chat_osc_am.keyword = ' . $DIC->database()->quote('chat_osc_accept_msg', 'text') . '
38 AND chat_osc_am.value = ' . $DIC->database()->quote('y', 'text') . ' ';
39
40 return $from_part;
41 }
42
43 protected function getWherePart(array $search_query): string
44 {
45 global $DIC;
46
47 $where = parent::getWherePart($search_query);
48 $where .= ' AND (ud.usr_id != ' . $DIC->database()->quote($this->getUser()->getId(), 'integer') . ') ';
49
50 return $where;
51 }
52}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28