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