ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Auto completion class for user lists. More...
Public Member Functions | |
__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 | |
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 Member Functions | |
getFields () | |
Get searchable fields. More... | |
getSelectPart () | |
getOrderByPart () | |
Private Attributes | |
$logger = null | |
$searchable_check = false | |
$user_access_check = true | |
$possible_fields = array() | |
$result_field | |
$search_type | |
$privacy_mode | |
$user | |
$limit = 0 | |
$user_limitations = true | |
$respect_min_search_character_count = true | |
$more_link_available = false | |
Auto completion class for user lists.
Definition at line 7 of file class.ilUserAutoComplete.php.
ilUserAutoComplete::__construct | ( | ) |
Default constructor.
Definition at line 90 of file class.ilUserAutoComplete.php.
References $DIC, setPrivacyMode(), and setSearchType().
ilUserAutoComplete::enableFieldSearchableCheck | ( | $a_status | ) |
Enable the check whether the field is searchable in Administration -> Settings -> Standard Fields.
bool | $a_status |
Definition at line 181 of file class.ilUserAutoComplete.php.
ilUserAutoComplete::enableUserAccessCheck | ( | $a_status | ) |
Enable user access check.
bool | $a_status |
Definition at line 200 of file class.ilUserAutoComplete.php.
|
protected |
Get searchable fields.
Definition at line 236 of file class.ilUserAutoComplete.php.
References ilUserSearchOptions\_isEnabled(), array, getSearchFields(), and isFieldSearchableCheckEnabled().
Referenced by getSelectPart().
ilUserAutoComplete::getLimit | ( | ) |
Definition at line 124 of file class.ilUserAutoComplete.php.
References $limit.
Referenced by setResultField().
|
protected |
Definition at line 519 of file class.ilUserAutoComplete.php.
References $ilDB, $query, array, and getSearchType().
Referenced by setResultField().
ilUserAutoComplete::getPrivacyMode | ( | ) |
Definition at line 156 of file class.ilUserAutoComplete.php.
References $privacy_mode.
Referenced by getSelectPart(), and setResultField().
ilUserAutoComplete::getRespectMinimumSearchCharacterCount | ( | ) |
Definition at line 113 of file class.ilUserAutoComplete.php.
References $respect_min_search_character_count.
ilUserAutoComplete::getSearchFields | ( | ) |
get possible search fields
Definition at line 227 of file class.ilUserAutoComplete.php.
References $possible_fields.
Referenced by getFields().
ilUserAutoComplete::getSearchType | ( | ) |
Definition at line 140 of file class.ilUserAutoComplete.php.
References $search_type.
Referenced by getOrderByPart().
|
protected |
Definition at line 355 of file class.ilUserAutoComplete.php.
References $ilDB, $ilSetting, array, getFields(), ilUserAccountSettings\getInstance(), ilUserFilter\getInstance(), ilSearchSettings\getInstance(), getPrivacyMode(), getUser(), getUserLimitations(), and time.
Referenced by setResultField().
ilUserAutoComplete::getUser | ( | ) |
Definition at line 172 of file class.ilUserAutoComplete.php.
References $user.
Referenced by getSelectPart(), and ilOnScreenChatUserUserAutoComplete\getWherePart().
ilUserAutoComplete::getUserLimitations | ( | ) |
allow user limitations like inactive and access limitations
Definition at line 582 of file class.ilUserAutoComplete.php.
References $user_limitations.
Referenced by getSelectPart().
ilUserAutoComplete::isFieldSearchableCheckEnabled | ( | ) |
Searchable check enabled.
Definition at line 190 of file class.ilUserAutoComplete.php.
References $searchable_check.
Referenced by getFields(), and setResultField().
ilUserAutoComplete::isMoreLinkAvailable | ( | ) |
Definition at line 590 of file class.ilUserAutoComplete.php.
References $more_link_available.
Referenced by setResultField().
ilUserAutoComplete::isUserAccessCheckEnabled | ( | ) |
Check if user access check is enabled.
Definition at line 209 of file class.ilUserAutoComplete.php.
References $user_access_check.
ilUserAutoComplete::parseQueryString | ( | $a_query | ) |
Parse query string.
string | $a_query |
Definition at line 610 of file class.ilUserAutoComplete.php.
References $query, array, and ilLogLevel\DEBUG.
Referenced by setResultField().
ilUserAutoComplete::respectMinimumSearchCharacterCount | ( | $a_status | ) |
bool | $a_status |
Definition at line 105 of file class.ilUserAutoComplete.php.
ilUserAutoComplete::setLimit | ( | $a_limit | ) |
Definition at line 119 of file class.ilUserAutoComplete.php.
ilUserAutoComplete::setMoreLinkAvailable | ( | $more_link_available | ) |
IMPORTANT: remember to read request parameter 'fetchall' to use this function.
boolean | $more_link_available |
Definition at line 600 of file class.ilUserAutoComplete.php.
References $more_link_available.
ilUserAutoComplete::setPrivacyMode | ( | $privacy_mode | ) |
int | $privacy_mode |
Definition at line 148 of file class.ilUserAutoComplete.php.
References $privacy_mode.
Referenced by __construct().
ilUserAutoComplete::setResultField | ( | $a_field | ) |
Set result field.
string | $a_field |
Definition at line 258 of file class.ilUserAutoComplete.php.
References $ilDB, $query, $res, $result, ilUserSearchOptions\_isEnabled(), array, ilJsonUtil\encode(), ilSearchSettings\getInstance(), getLimit(), getOrderByPart(), getPrivacyMode(), getSelectPart(), isFieldSearchableCheckEnabled(), isMoreLinkAvailable(), ilQueryParser\MIN_WORD_LENGTH, parseQueryString(), string, and ilStr\strLen().
ilUserAutoComplete::setSearchFields | ( | $a_fields | ) |
Set searchable fields.
array | $a_fields |
Definition at line 218 of file class.ilUserAutoComplete.php.
ilUserAutoComplete::setSearchType | ( | $search_type | ) |
int | $search_type |
Definition at line 132 of file class.ilUserAutoComplete.php.
References $search_type.
Referenced by __construct().
ilUserAutoComplete::setUser | ( | $user | ) |
ilObjUser | $user |
Definition at line 164 of file class.ilUserAutoComplete.php.
ilUserAutoComplete::setUserLimitations | ( | $a_limitations | ) |
allow user limitations like inactive and access limitations
bool | $a_limitations |
Definition at line 573 of file class.ilUserAutoComplete.php.
|
private |
Definition at line 73 of file class.ilUserAutoComplete.php.
Referenced by getLimit().
|
private |
Definition at line 35 of file class.ilUserAutoComplete.php.
|
private |
Definition at line 85 of file class.ilUserAutoComplete.php.
Referenced by isMoreLinkAvailable(), and setMoreLinkAvailable().
|
private |
Definition at line 50 of file class.ilUserAutoComplete.php.
Referenced by getSearchFields().
|
private |
Definition at line 65 of file class.ilUserAutoComplete.php.
Referenced by getPrivacyMode(), and setPrivacyMode().
|
private |
Definition at line 80 of file class.ilUserAutoComplete.php.
Referenced by getRespectMinimumSearchCharacterCount().
|
private |
Definition at line 55 of file class.ilUserAutoComplete.php.
|
private |
Definition at line 60 of file class.ilUserAutoComplete.php.
Referenced by getSearchType(), and setSearchType().
|
private |
Definition at line 40 of file class.ilUserAutoComplete.php.
Referenced by isFieldSearchableCheckEnabled().
|
private |
Definition at line 70 of file class.ilUserAutoComplete.php.
|
private |
Definition at line 45 of file class.ilUserAutoComplete.php.
Referenced by isUserAccessCheckEnabled().
|
private |
Definition at line 75 of file class.ilUserAutoComplete.php.
Referenced by getUserLimitations().
const ilUserAutoComplete::MAX_ENTRIES = 1000 |
Definition at line 9 of file class.ilUserAutoComplete.php.
Referenced by ilObjTermsOfServiceGUI\addUserAutoComplete(), ilLocalUserGUI\addUserAutoCompleteObject(), ilObjUserFolderGUI\addUserAutoCompleteObject(), ilObjCategoryGUI\addUserAutoCompleteObject(), ilObjSurveyGUI\doAutoCompleteObject(), ilRepositorySearchGUI\doUserAutoComplete(), ilCalendarAppointmentGUI\doUserAutoComplete(), ilChatroomInviteUsersToPrivateRoomGUI\getUserList(), and ilOnScreenChatGUI\getUserList().
const ilUserAutoComplete::PRIVACY_MODE_IGNORE_USER_SETTING = 2 |
Definition at line 30 of file class.ilUserAutoComplete.php.
const ilUserAutoComplete::PRIVACY_MODE_RESPECT_USER_SETTING = 1 |
Definition at line 25 of file class.ilUserAutoComplete.php.
Referenced by ilExSubmissionTeamGUI\executeCommand(), ilChatroomInviteUsersToPrivateRoomGUI\getUserList(), and ilOnScreenChatGUI\getUserList().
const ilUserAutoComplete::SEARCH_TYPE_EQUALS = 2 |
Definition at line 20 of file class.ilUserAutoComplete.php.
Referenced by ilChatroomInviteUsersToPrivateRoomGUI\getUserList().
const ilUserAutoComplete::SEARCH_TYPE_LIKE = 1 |
Definition at line 15 of file class.ilUserAutoComplete.php.