ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilOnScreenChatUserUserAutoComplete Class Reference

Class ilOnScreenChatUserUserAutoComplete. More...

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

Protected Member Functions

 getFromPart ()
 
 getWherePart (array $search_query)
 
- Protected Member Functions inherited from ilUserAutoComplete
 getFields ()
 Get searchable fields. More...
 
 getSelectPart ()
 
 getFromPart ()
 
 getWherePart (array $search_query)
 
 getOrderByPart ()
 
 getQueryConditionByFieldAndValue (string $field, array $query)
 

Additional Inherited Members

- Public Member Functions inherited from ilUserAutoComplete
 __construct ()
 
 respectMinimumSearchCharacterCount (bool $a_status)
 
 getRespectMinimumSearchCharacterCount ()
 
 addUserAccessFilterCallable (Closure $user_filter)
 Closure for filtering users e.g $rep_search_gui->addUserAccessFilterCallable(function($user_ids) use($ref_id,$rbac_perm,$pos_perm)) { // filter users return $filtered_users }. More...
 
 setLimit (int $a_limit)
 
 getLimit ()
 
 setSearchType (int $search_type)
 
 getSearchType ()
 
 setPrivacyMode (int $privacy_mode)
 
 getPrivacyMode ()
 
 setUser (ilObjUser $user)
 
 getUser ()
 
 enableFieldSearchableCheck (bool $a_status)
 Enable the check whether the field is searchable in Administration -> Settings -> Standard Fields. More...
 
 isFieldSearchableCheckEnabled ()
 
 enableUserAccessCheck (bool $a_status)
 Enable user access check. More...
 
 isUserAccessCheckEnabled ()
 Check if user access check is enabled. More...
 
 setSearchFields (array $a_fields)
 Set searchable fields. More...
 
 getSearchFields ()
 get possible search fields More...
 
 setResultField (string $a_field)
 Set result field. More...
 
 getList (string $a_str)
 Get completion list. More...
 
 setUserLimitations (bool $a_limitations)
 allow user limitations like inactive and access limitations More...
 
 getUserLimitations ()
 allow user limitations like inactive and access limitations More...
 
 isMoreLinkAvailable ()
 
 setMoreLinkAvailable (bool $more_link_available)
 IMPORTANT: remember to read request parameter 'fetchall' to use this function. More...
 
 parseQueryString (string $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
 
- Protected Attributes inherited from ilUserAutoComplete
Closure $user_filter = null
 

Detailed Description

Member Function Documentation

◆ getFromPart()

ilOnScreenChatUserUserAutoComplete::getFromPart ( )
protected

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

References $DIC.

29  : 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  }
global $DIC
Definition: feed.php:28

◆ getWherePart()

ilOnScreenChatUserUserAutoComplete::getWherePart ( array  $search_query)
protected

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

References $DIC, ILIAS\Survey\Mode\getId(), and ilUserAutoComplete\getUser().

43  : 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  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

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