ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilOnScreenChatUserUserAutoComplete Class Reference

Class ilOnScreenChatUserUserAutoComplete. More...

+ Inheritance diagram for ilOnScreenChatUserUserAutoComplete:
+ Collaboration diagram for ilOnScreenChatUserUserAutoComplete:

Protected Member Functions

 getFromPart ()
 {} More...
 
 getWherePart (array $search_query)
 {} More...
 
- Protected Member Functions inherited from ilUserAutoComplete
 getFields ()
 Get searchable fields. More...
 
 getSelectPart ()
 
 getOrderByPart ()
 

Additional Inherited Members

- Public Member Functions inherited from ilUserAutoComplete
 __construct ()
 Default constructor. More...
 
 respectMinimumSearchCharacterCount ($a_status)
 
 getRespectMinimumSearchCharacterCount ()
 
 setLimit ($a_limit)
 
 getLimit ()
 
 setSearchType ($search_type)
 
 getSearchType ()
 
 setPrivacyMode ($privacy_mode)
 
 getPrivacyMode ()
 
 setUser ($user)
 
 getUser ()
 
 enableFieldSearchableCheck ($a_status)
 Enable the check whether the field is searchable in Administration -> Settings -> Standard Fields. More...
 
 isFieldSearchableCheckEnabled ()
 Searchable check enabled. More...
 
 enableUserAccessCheck ($a_status)
 Enable user access check. More...
 
 isUserAccessCheckEnabled ()
 Check if user access check is enabled. More...
 
 setSearchFields ($a_fields)
 Set searchable fields. More...
 
 getSearchFields ()
 get possible search fields More...
 
 setResultField ($a_field)
 Set result field. More...
 
 setUserLimitations ($a_limitations)
 allow user limitations like inactive and access limitations More...
 
 getUserLimitations ()
 allow user limitations like inactive and access limitations More...
 
 isMoreLinkAvailable ()
 
 setMoreLinkAvailable ($more_link_available)
 IMPORTANT: remember to read request parameter 'fetchall' to use this function. More...
 
 parseQueryString ($a_query)
 Parse query string. More...
 
- Data Fields inherited from ilUserAutoComplete
const MAX_ENTRIES = 1000
 
const SEARCH_TYPE_LIKE = 1
 
const SEARCH_TYPE_EQUALS = 2
 
const PRIVACY_MODE_RESPECT_USER_SETTING = 1
 
const PRIVACY_MODE_IGNORE_USER_SETTING = 2
 

Detailed Description

Member Function Documentation

◆ getFromPart()

ilOnScreenChatUserUserAutoComplete::getFromPart ( )
protected

{}

Definition at line 15 of file class.ilOnScreenChatUserUserAutoComplete.php.

References $DIC.

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  }
global $DIC

◆ getWherePart()

ilOnScreenChatUserUserAutoComplete::getWherePart ( array  $search_query)
protected

{}

Definition at line 32 of file class.ilOnScreenChatUserUserAutoComplete.php.

References $DIC, and ilUserAutoComplete\getUser().

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  }
global $DIC
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: