ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilOnScreenChatUserUserAutoComplete.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/User/classes/class.ilUserAutoComplete.php';
5 
11 {
15  protected function getFromPart()
16  {
17  global $DIC;
18 
19  $from_part = parent::getFromPart();
20  $from_part .= '
21  INNER JOIN usr_pref chat_osc_am
22  ON chat_osc_am.usr_id = ud.usr_id
23  AND chat_osc_am.keyword = ' . $DIC->database()->quote('chat_osc_accept_msg', 'text') . '
24  AND chat_osc_am.value = ' . $DIC->database()->quote('y', 'text') . ' ';
25 
26  return $from_part;
27  }
28 
32  protected function getWherePart(array $search_query)
33  {
34  global $DIC;
35 
36  $where = parent::getWherePart($search_query);
37  $where .= ' AND (ud.usr_id != ' . $DIC->database()->quote($this->getUser()->getId(), 'integer') . ') ';
38 
39  return $where;
40  }
41 }
Class ilOnScreenChatUserUserAutoComplete.
Auto completion class for user lists.
Create styles array
The data for the language used.
global $DIC