ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilOnScreenChatUserUserAutoComplete Class Reference

Class ilOnScreenChatUserUserAutoComplete. More...

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

Protected Member Functions

 getFromPart ()
 @inheritDoc More...
 
 getWherePart (array $search_query)
 @inheritDoc 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 ()
 
 addUserAccessFilterCallable (callable $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 ($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
 
- Protected Attributes inherited from ilUserAutoComplete
 $user_filter = null
 

Detailed Description

Member Function Documentation

◆ getFromPart()

ilOnScreenChatUserUserAutoComplete::getFromPart ( )
protected

@inheritDoc

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

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 }
$DIC
Definition: xapitoken.php:46

References $DIC.

◆ getWherePart()

ilOnScreenChatUserUserAutoComplete::getWherePart ( array  $search_query)
protected

@inheritDoc

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

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 }

References $DIC, and ilUserAutoComplete\getUser().

+ Here is the call graph for this function:

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