|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilUserAutoComplete:
Collaboration diagram for ilUserAutoComplete:Public Member Functions | |
| __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 | |
| 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 () | |
| getFromPart () | |
| getWherePart (array $search_query) | |
| getOrderByPart () | |
| getQueryConditionByFieldAndValue (string $field, array $query) | |
Protected Attributes | |
| Closure | $user_filter = null |
Private Attributes | |
| ilLogger | $logger = null |
| bool | $searchable_check = false |
| bool | $user_access_check = true |
| array | $possible_fields = [] |
| string | $result_field |
| int | $search_type |
| int | $privacy_mode |
| ilObjUser | $user = null |
| int | $limit = 0 |
| bool | $user_limitations = true |
| bool | $respect_min_search_character_count = true |
| bool | $more_link_available = false |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Auto completion class for user lists
Definition at line 22 of file class.ilUserAutoComplete.php.
| ilUserAutoComplete::__construct | ( | ) |
Definition at line 44 of file class.ilUserAutoComplete.php.
References $DIC, ILIAS\Repository\logger(), setPrivacyMode(), and setSearchType().
Here is the call graph for this function:| ilUserAutoComplete::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 }.
Definition at line 74 of file class.ilUserAutoComplete.php.
References $user_filter.
| ilUserAutoComplete::enableFieldSearchableCheck | ( | bool | $a_status | ) |
Enable the check whether the field is searchable in Administration -> Settings -> Standard Fields.
Definition at line 122 of file class.ilUserAutoComplete.php.
| ilUserAutoComplete::enableUserAccessCheck | ( | bool | $a_status | ) |
Enable user access check.
Definition at line 136 of file class.ilUserAutoComplete.php.
|
protected |
Get searchable fields.
Definition at line 168 of file class.ilUserAutoComplete.php.
References ilUserSearchOptions\_isEnabled(), getSearchFields(), and isFieldSearchableCheckEnabled().
Referenced by getWherePart().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 303 of file class.ilUserAutoComplete.php.
References $DIC, $ilDB, and getPrivacyMode().
Referenced by getList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserAutoComplete::getLimit | ( | ) |
Definition at line 84 of file class.ilUserAutoComplete.php.
References $limit.
Referenced by getList().
Here is the caller graph for this function:| ilUserAutoComplete::getList | ( | string | $a_str | ) |
Get completion list.
Definition at line 193 of file class.ilUserAutoComplete.php.
References $DIC, $ilDB, $res, ilUserSearchOptions\_isEnabled(), ilLogLevel\DEBUG, getFromPart(), ilSearchSettings\getInstance(), getLimit(), getOrderByPart(), getPrivacyMode(), getSelectPart(), getWherePart(), isFieldSearchableCheckEnabled(), isMoreLinkAvailable(), ILIAS\Repository\logger(), ilQueryParser\MIN_WORD_LENGTH, parseQueryString(), and ilStr\strLen().
Here is the call graph for this function:
|
protected |
Definition at line 427 of file class.ilUserAutoComplete.php.
Referenced by getList().
Here is the caller graph for this function:| ilUserAutoComplete::getPrivacyMode | ( | ) |
Definition at line 104 of file class.ilUserAutoComplete.php.
References $privacy_mode.
Referenced by getFromPart(), getList(), getSelectPart(), and getWherePart().
Here is the caller graph for this function:
|
protected |
Definition at line 432 of file class.ilUserAutoComplete.php.
References $DIC, $ilDB, and getSearchType().
Referenced by getWherePart().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserAutoComplete::getRespectMinimumSearchCharacterCount | ( | ) |
Definition at line 61 of file class.ilUserAutoComplete.php.
References $respect_min_search_character_count.
| ilUserAutoComplete::getSearchFields | ( | ) |
get possible search fields
Definition at line 160 of file class.ilUserAutoComplete.php.
References $possible_fields.
Referenced by getFields().
Here is the caller graph for this function:| ilUserAutoComplete::getSearchType | ( | ) |
Definition at line 94 of file class.ilUserAutoComplete.php.
References $search_type.
Referenced by getQueryConditionByFieldAndValue().
Here is the caller graph for this function:
|
protected |
Definition at line 283 of file class.ilUserAutoComplete.php.
References getPrivacyMode().
Referenced by getList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserAutoComplete::getUser | ( | ) |
Definition at line 114 of file class.ilUserAutoComplete.php.
References $user.
Referenced by ilOnScreenChatUserUserAutoComplete\getWherePart(), and getWherePart().
Here is the caller graph for this function:| ilUserAutoComplete::getUserLimitations | ( | ) |
allow user limitations like inactive and access limitations
Definition at line 473 of file class.ilUserAutoComplete.php.
References $user_limitations.
Referenced by getWherePart().
Here is the caller graph for this function:
|
protected |
Definition at line 332 of file class.ilUserAutoComplete.php.
References $DIC, $ilDB, $ilSetting, ILIAS\LTI\ToolProvider\$settings, ANONYMOUS_USER_ID, getFields(), ilUserFilter\getInstance(), ilUserAccountSettings\getInstance(), ilSearchSettings\getInstance(), getPrivacyMode(), getQueryConditionByFieldAndValue(), getUser(), and getUserLimitations().
Referenced by getList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserAutoComplete::isFieldSearchableCheckEnabled | ( | ) |
Definition at line 127 of file class.ilUserAutoComplete.php.
References $searchable_check.
Referenced by getFields(), and getList().
Here is the caller graph for this function:| ilUserAutoComplete::isMoreLinkAvailable | ( | ) |
Definition at line 478 of file class.ilUserAutoComplete.php.
References $more_link_available.
Referenced by getList().
Here is the caller graph for this function:| ilUserAutoComplete::isUserAccessCheckEnabled | ( | ) |
Check if user access check is enabled.
Definition at line 144 of file class.ilUserAutoComplete.php.
References $user_access_check.
| ilUserAutoComplete::parseQueryString | ( | string | $a_query | ) |
Parse query string.
Definition at line 494 of file class.ilUserAutoComplete.php.
References ilLogLevel\DEBUG, and ILIAS\Repository\logger().
Referenced by getList().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserAutoComplete::respectMinimumSearchCharacterCount | ( | bool | $a_status | ) |
Definition at line 56 of file class.ilUserAutoComplete.php.
| ilUserAutoComplete::setLimit | ( | int | $a_limit | ) |
Definition at line 79 of file class.ilUserAutoComplete.php.
| ilUserAutoComplete::setMoreLinkAvailable | ( | bool | $more_link_available | ) |
IMPORTANT: remember to read request parameter 'fetchall' to use this function.
Definition at line 486 of file class.ilUserAutoComplete.php.
References $more_link_available.
| ilUserAutoComplete::setPrivacyMode | ( | int | $privacy_mode | ) |
Definition at line 99 of file class.ilUserAutoComplete.php.
References $privacy_mode.
Referenced by __construct().
Here is the caller graph for this function:| ilUserAutoComplete::setResultField | ( | string | $a_field | ) |
Set result field.
Definition at line 185 of file class.ilUserAutoComplete.php.
| ilUserAutoComplete::setSearchFields | ( | array | $a_fields | ) |
Set searchable fields.
Definition at line 152 of file class.ilUserAutoComplete.php.
Referenced by ilCmiXapiStatementsGUI\asyncUserAutocompleteCmd(), ilLTIConsumerXapiStatementsGUI\asyncUserAutocompleteCmd(), and ilLTIConsumerGradeSynchronizationGUI\asyncUserAutocompleteCmd().
Here is the caller graph for this function:| ilUserAutoComplete::setSearchType | ( | int | $search_type | ) |
Definition at line 89 of file class.ilUserAutoComplete.php.
References $search_type.
Referenced by __construct().
Here is the caller graph for this function:| ilUserAutoComplete::setUser | ( | ilObjUser | $user | ) |
Definition at line 109 of file class.ilUserAutoComplete.php.
References $user, and ILIAS\Repository\user().
Here is the call graph for this function:| ilUserAutoComplete::setUserLimitations | ( | bool | $a_limitations | ) |
allow user limitations like inactive and access limitations
Definition at line 465 of file class.ilUserAutoComplete.php.
|
private |
Definition at line 38 of file class.ilUserAutoComplete.php.
Referenced by getLimit().
|
private |
Definition at line 30 of file class.ilUserAutoComplete.php.
|
private |
Definition at line 41 of file class.ilUserAutoComplete.php.
Referenced by isMoreLinkAvailable(), and setMoreLinkAvailable().
|
private |
Definition at line 33 of file class.ilUserAutoComplete.php.
Referenced by getSearchFields().
|
private |
Definition at line 36 of file class.ilUserAutoComplete.php.
Referenced by getPrivacyMode(), and setPrivacyMode().
|
private |
Definition at line 40 of file class.ilUserAutoComplete.php.
Referenced by getRespectMinimumSearchCharacterCount().
|
private |
Definition at line 34 of file class.ilUserAutoComplete.php.
|
private |
Definition at line 35 of file class.ilUserAutoComplete.php.
Referenced by getSearchType(), and setSearchType().
|
private |
Definition at line 31 of file class.ilUserAutoComplete.php.
Referenced by isFieldSearchableCheckEnabled().
|
private |
Definition at line 37 of file class.ilUserAutoComplete.php.
|
private |
Definition at line 32 of file class.ilUserAutoComplete.php.
Referenced by isUserAccessCheckEnabled().
|
protected |
Definition at line 42 of file class.ilUserAutoComplete.php.
Referenced by addUserAccessFilterCallable().
|
private |
Definition at line 39 of file class.ilUserAutoComplete.php.
Referenced by getUserLimitations().
| const ilUserAutoComplete::MAX_ENTRIES = 1000 |
Definition at line 24 of file class.ilUserAutoComplete.php.
Referenced by ilLocalUserGUI\addUserAutoCompleteObject(), ilObjUserFolderGUI\addUserAutoCompleteObject(), ilObjCategoryGUI\addUserAutoCompleteObject(), ilSurveyRaterGUI\doAutoComplete(), ilObjSurveyGUI\doAutoCompleteObject(), ilCalendarAppointmentGUI\doUserAutoComplete(), ilRepositorySearchGUI\doUserAutoComplete(), ilChatroomInviteUsersToPrivateRoomGUI\getUserList(), ilOnScreenChatGUI\getUserList(), and ilLegalDocumentsAdministrationGUI\searchUser().
| const ilUserAutoComplete::PRIVACY_MODE_IGNORE_USER_SETTING = 2 |
Definition at line 28 of file class.ilUserAutoComplete.php.
Referenced by ilObjEmployeeTalkGUI\executeCommand().
| const ilUserAutoComplete::PRIVACY_MODE_RESPECT_USER_SETTING = 1 |
Definition at line 27 of file class.ilUserAutoComplete.php.
Referenced by ilSurveyRaterGUI\doAutoComplete(), ilCalendarAppointmentGUI\doUserAutoComplete(), ilExSubmissionTeamGUI\executeCommand(), ilChatroomInviteUsersToPrivateRoomGUI\getUserList(), ilOnScreenChatGUI\getUserList(), ilRepositorySearchGUI\performSearch(), and ilRepositorySearchGUI\showSearch().
| const ilUserAutoComplete::SEARCH_TYPE_EQUALS = 2 |
Definition at line 26 of file class.ilUserAutoComplete.php.
Referenced by ilChatroomInviteUsersToPrivateRoomGUI\getUserList().
| const ilUserAutoComplete::SEARCH_TYPE_LIKE = 1 |
Definition at line 25 of file class.ilUserAutoComplete.php.