ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
Public Member Functions | |
__construct () | |
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... | |
setTitle (string $a_title) | |
getTitle () | |
enableSearchableCheck (bool $a_status) | |
isSearchableCheckEnabled () | |
setPrivacyMode (int $privacy_mode) | |
getPrivacyMode () | |
getSearchType () | |
getRoleCallback () | |
setString (string $a_str) | |
getString () | |
executeCommand () | |
__clearSession () | |
cancel () | |
start () | |
addRole () | |
addUser () | |
setCallback (object $class, string $method, array $a_add_options=[], string $default_option='') | |
setRoleCallback (object $class, string $method, array $a_add_options=[], string $default_option='') | |
setPermissionQueryCallback (object $class, string $method) | |
showSearch () | |
showSearchSelected () | |
initFormSearch (?ilObjUser $user=null) | |
show () | |
appendSearch () | |
performSearch () | |
__performUserSearch () | |
__performGroupSearch () | |
__performRoleSearch () | |
__parseQueryString (string $a_string, bool $a_combination_or=true, bool $a_ignore_length=false) | |
__loadQueries () | |
__setSearchType () | |
__updateResults () | |
__appendToStoredResults (array $a_usr_ids) | |
__storeEntries (ilSearchResult $new_res) | |
showSearchResults () | |
searchResultFilterListener (int $a_ref_id, array $a_data) | |
Listener called from ilSearchResult Id is obj_id for role, usr Id is ref_id for crs grp. More... | |
allowObjectSelection (bool $a_value=false) | |
setUserLimitations (bool $a_limitations) | |
allow user limitations like inactive and access limitations More... | |
getUserLimitations () | |
allow user limitations like inactive and access limitations More... | |
Static Public Member Functions | |
static | fillAutoCompleteToolbar (object $parent_object, ?ilToolbarGUI $toolbar=null, array $a_options=[], bool $a_sticky=false) |
array( auto_complete_name = $lng->txt('user'), auto_complete_size = 15, user_type = array(ilCourseParticipants::CRS_MEMBER,ilCourseParticpants::CRS_TUTOR), submit_name = $lng->txt('add') ) More... | |
Protected Member Functions | |
initUserTypeFromQuery () | |
initUserTypeFromPost () | |
doUserAutoComplete () | |
addUserFromAutoComplete () | |
showClipboard () | |
addFromClipboard () | |
removeFromClipboard () | |
emptyClipboard () | |
handleMultiCommand () | |
__performCourseSearch () | |
addNewSearchButton () | |
showSearchUserTable (array $a_usr_ids, string $a_parent_cmd) | |
showSearchRoleTable (array $a_obj_ids) | |
showSearchGroupTable (array $a_obj_ids) | |
showSearchCourseTable (array $a_obj_ids) | |
listUsers (array $selected_entries=[]) | |
storedUserList () | |
selectObject () | |
Return selection of course/group/roles to calling script. More... | |
Protected Attributes | |
array | $add_options = [] |
string | $default_option = '' |
bool | $object_selection = false |
bool | $searchable_check = true |
string | $search_title = '' |
bool | $user_limitations = true |
bool | $stored = false |
array | $callback = [] |
array | $role_callback = [] |
ilSearchResult | $result_obj |
ilSearchSettings | $settings |
ilPropertyFormGUI | $form = null |
$user_filter = null | |
ilTree | $tree |
Renderer | $ui_renderer |
Factory | $ui_factory |
ilCtrl | $ctrl |
ilGlobalTemplateInterface | $tpl |
ilObjUser | $user = null |
ilRbacReview | $rbacreview |
ilTabsGUI | $tabs |
ilLanguage | $lng |
Private Attributes | |
array | $search_results = [] |
string | $search_type = 'usr' |
string | $string = '' |
int | $privacy_mode = ilUserAutoComplete::PRIVACY_MODE_IGNORE_USER_SETTING |
GlobalHttpState | $http |
RefineryFactory | $refinery |
Definition at line 38 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::__construct | ( | ) |
Definition at line 80 of file class.ilRepositorySearchGUI.php.
References $DIC, __loadQueries(), __setSearchType(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), setTitle(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
ilRepositorySearchGUI::__appendToStoredResults | ( | array | $a_usr_ids | ) |
Definition at line 1117 of file class.ilRepositorySearchGUI.php.
References ilSession\get(), and ilSession\set().
Referenced by listUsers().
ilRepositorySearchGUI::__clearSession | ( | ) |
Definition at line 419 of file class.ilRepositorySearchGUI.php.
References ilSession\clear().
Referenced by start().
ilRepositorySearchGUI::__loadQueries | ( | ) |
Definition at line 1069 of file class.ilRepositorySearchGUI.php.
References ILIAS\FileDelivery\http(), and ilSession\set().
Referenced by __construct().
ilRepositorySearchGUI::__parseQueryString | ( | string | $a_string, |
bool | $a_combination_or = true , |
||
bool | $a_ignore_length = false |
||
) |
Definition at line 1049 of file class.ilRepositorySearchGUI.php.
References ilQueryParser\QP_COMBINATION_AND, ilQueryParser\QP_COMBINATION_OR, and ilUtil\stripSlashes().
Referenced by __performCourseSearch(), __performGroupSearch(), __performRoleSearch(), and __performUserSearch().
|
protected |
Definition at line 1013 of file class.ilRepositorySearchGUI.php.
References __parseQueryString(), __storeEntries(), and ilSession\get().
Referenced by performSearch().
ilRepositorySearchGUI::__performGroupSearch | ( | ) |
Definition at line 997 of file class.ilRepositorySearchGUI.php.
References __parseQueryString(), __storeEntries(), and ilSession\get().
Referenced by performSearch().
ilRepositorySearchGUI::__performRoleSearch | ( | ) |
Definition at line 1029 of file class.ilRepositorySearchGUI.php.
References __parseQueryString(), __storeEntries(), and ilSession\get().
Referenced by performSearch().
ilRepositorySearchGUI::__performUserSearch | ( | ) |
Definition at line 936 of file class.ilRepositorySearchGUI.php.
References __parseQueryString(), __storeEntries(), ilUserSearchOptions\_getSearchableFieldsInfo(), ilObjectSearchFactory\_getUserDefinedFieldSearchInstance(), ilObjectSearchFactory\_getUserSearchInstance(), ilUserSearchOptions\FIELD_TYPE_MULTI, ilUserSearchOptions\FIELD_TYPE_SELECT, ilUserSearchOptions\FIELD_TYPE_TEXT, ilUserSearchOptions\FIELD_TYPE_UDF_SELECT, ilUserSearchOptions\FIELD_TYPE_UDF_TEXT, ilSession\get(), ilObjectSearchFactory\getUserMultiFieldSearchInstance(), ilObjectSearchFactory\getUserOrgUnitAssignmentInstance(), and isSearchableCheckEnabled().
Referenced by performSearch().
ilRepositorySearchGUI::__setSearchType | ( | ) |
Definition at line 1080 of file class.ilRepositorySearchGUI.php.
References ilSession\get(), ILIAS\FileDelivery\http(), and ilSession\set().
Referenced by __construct().
ilRepositorySearchGUI::__storeEntries | ( | ilSearchResult | $new_res | ) |
Definition at line 1134 of file class.ilRepositorySearchGUI.php.
Referenced by __performCourseSearch(), __performGroupSearch(), __performRoleSearch(), and __performUserSearch().
ilRepositorySearchGUI::__updateResults | ( | ) |
Definition at line 1096 of file class.ilRepositorySearchGUI.php.
References $search_type, ilSession\get(), and ilSession\set().
Referenced by performSearch().
|
protected |
Definition at line 544 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), initUserTypeFromPost(), initUserTypeFromQuery(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
|
protected |
Definition at line 1146 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by listUsers(), showSearchResults(), and showSearchSelected().
ilRepositorySearchGUI::addRole | ( | ) |
Definition at line 442 of file class.ilRepositorySearchGUI.php.
References $id, $ref_id, ilObject\_getAllReferences(), ilObject\_lookupType(), ilParticipants\getDefaultMemberRole(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and showSearchResults().
ilRepositorySearchGUI::addUser | ( | ) |
Definition at line 473 of file class.ilRepositorySearchGUI.php.
References ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and showSearchResults().
ilRepositorySearchGUI::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 }.
Definition at line 141 of file class.ilRepositorySearchGUI.php.
References $user_filter.
|
protected |
Definition at line 494 of file class.ilRepositorySearchGUI.php.
References $user_id, ilObjUser\_lookupId(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), initUserTypeFromPost(), and ILIAS\Repository\refinery().
ilRepositorySearchGUI::allowObjectSelection | ( | bool | $a_value = false | ) |
Definition at line 1368 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::appendSearch | ( | ) |
Definition at line 827 of file class.ilRepositorySearchGUI.php.
References performSearch(), and ilSession\set().
ilRepositorySearchGUI::cancel | ( | ) |
Definition at line 427 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\ctrl().
|
protected |
Definition at line 334 of file class.ilRepositorySearchGUI.php.
References ANONYMOUS_USER_ID, exit, getPrivacyMode(), getUserLimitations(), ILIAS\FileDelivery\http(), ilUserAutoComplete\MAX_ENTRIES, ILIAS\Repository\refinery(), and ILIAS\Repository\user().
|
protected |
Definition at line 600 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\ctrl(), ilUserClipboard\getInstance(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
ilRepositorySearchGUI::enableSearchableCheck | ( | bool | $a_status | ) |
Definition at line 156 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::executeCommand | ( | ) |
Definition at line 404 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\ctrl().
|
static |
array( auto_complete_name = $lng->txt('user'), auto_complete_size = 15, user_type = array(ilCourseParticipants::CRS_MEMBER,ilCourseParticpants::CRS_TUTOR), submit_name = $lng->txt('add') )
Definition at line 195 of file class.ilRepositorySearchGUI.php.
References $DIC, ilObject\_lookupObjId(), ILIAS\UI\Factory\button(), ilTree\checkForParentType(), ilObject\getId(), ilSubmitButton\getInstance(), ilUserClipboard\getInstance(), ILIAS\Repository\int(), ilLanguage\loadLanguageModule(), null, and ilLanguage\txt().
Referenced by ilTestParticipantsGUI\addUserSearchControls(), ilObjBlogGUI\contributors(), ilOrgUnitUserAssignmentGUI\index(), ilSurveyParticipantsGUI\listAppraiseesObject(), ilExerciseManagementGUI\membersObject(), ilBookingParticipantGUI\render(), ilForumModeratorsGUI\showModerators(), ilLearningSequenceMembershipGUI\showParticipantsToolbar(), ilMembershipGUI\showParticipantsToolbar(), ilSkillProfileGUI\showUsers(), ilExSubmissionTeamGUI\submissionScreenTeamObject(), ilObjRoleGUI\userassignmentObject(), and ilIndividualAssessmentMembersGUI\view().
ilRepositorySearchGUI::getPrivacyMode | ( | ) |
Definition at line 171 of file class.ilRepositorySearchGUI.php.
References $privacy_mode.
Referenced by doUserAutoComplete(), performSearch(), and showSearch().
ilRepositorySearchGUI::getRoleCallback | ( | ) |
Definition at line 181 of file class.ilRepositorySearchGUI.php.
References $role_callback.
ilRepositorySearchGUI::getSearchType | ( | ) |
ilRepositorySearchGUI::getString | ( | ) |
ilRepositorySearchGUI::getTitle | ( | ) |
Definition at line 151 of file class.ilRepositorySearchGUI.php.
References $search_title.
Referenced by initFormSearch().
ilRepositorySearchGUI::getUserLimitations | ( | ) |
allow user limitations like inactive and access limitations
Definition at line 1418 of file class.ilRepositorySearchGUI.php.
References $user_limitations.
Referenced by doUserAutoComplete(), and showSearchUserTable().
|
protected |
Definition at line 611 of file class.ilRepositorySearchGUI.php.
References ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and showSearchResults().
Definition at line 696 of file class.ilRepositorySearchGUI.php.
References $form, $txt, ilUserSearchOptions\_getSearchableFieldsInfo(), ilUserSearchOptions\_isEnabled(), ilRadioOption\addSubItem(), ILIAS\Repository\ctrl(), ilUserSearchOptions\FIELD_TYPE_MULTI, ilUserSearchOptions\FIELD_TYPE_SELECT, ilUserSearchOptions\FIELD_TYPE_TEXT, ilUserSearchOptions\FIELD_TYPE_UDF_SELECT, ilUserSearchOptions\FIELD_TYPE_UDF_TEXT, ilUserSearchOptions\FIELD_TYPE_UDF_UNDEFINED, ILIAS\Repository\form(), ilObjUser\getFirstname(), ilObjUser\getLastname(), ilObjUser\getLogin(), ilObjOrgUnit\getRootOrgRefId(), getTitle(), isSearchableCheckEnabled(), ILIAS\Repository\lng(), and ilRadioGroupInputGUI\setValue().
Referenced by showSearch().
|
protected |
Definition at line 122 of file class.ilRepositorySearchGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by addFromClipboard(), addUserFromAutoComplete(), and showClipboard().
|
protected |
Definition at line 111 of file class.ilRepositorySearchGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by addFromClipboard(), removeFromClipboard(), and showClipboard().
ilRepositorySearchGUI::isSearchableCheckEnabled | ( | ) |
Definition at line 161 of file class.ilRepositorySearchGUI.php.
References $searchable_check.
Referenced by __performUserSearch(), and initFormSearch().
|
protected |
Definition at line 1245 of file class.ilRepositorySearchGUI.php.
References __appendToStoredResults(), ilObject\_getAllReferences(), ilObject\_lookupType(), addNewSearchButton(), ILIAS\Repository\filter(), ilSession\get(), ilOrgUnitUserAssignmentQueries\getInstance(), ilUserFilter\getInstance(), ilParticipants\getInstanceByObjId(), ilParticipants\hasParticipantListAccess(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilSession\set(), showSearchResults(), and showSearchUserTable().
Referenced by performSearch(), and storedUserList().
ilRepositorySearchGUI::performSearch | ( | ) |
Definition at line 833 of file class.ilRepositorySearchGUI.php.
References $message, $ref_id, $res, __performCourseSearch(), __performGroupSearch(), __performRoleSearch(), __performUserSearch(), __updateResults(), ilObject\_lookupObjId(), ilSession\clear(), ILIAS\Repository\filter(), ilUserFilter\getInstance(), getPrivacyMode(), ILIAS\FileDelivery\http(), listUsers(), ILIAS\Repository\lng(), ilUserAutoComplete\PRIVACY_MODE_RESPECT_USER_SETTING, ROOT_FOLDER_ID, ILIAS\Repository\settings(), show(), showSearch(), start(), and ilUtil\stripSlashes().
Referenced by appendSearch().
|
protected |
Definition at line 573 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\ctrl(), ilUserClipboard\getInstance(), ILIAS\FileDelivery\http(), initUserTypeFromQuery(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\user().
ilRepositorySearchGUI::searchResultFilterListener | ( | int | $a_ref_id, |
array | $a_data | ||
) |
Listener called from ilSearchResult Id is obj_id for role, usr Id is ref_id for crs grp.
Definition at line 1358 of file class.ilRepositorySearchGUI.php.
References ANONYMOUS_USER_ID.
|
protected |
Return selection of course/group/roles to calling script.
Definition at line 1376 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and showSearchResults().
ilRepositorySearchGUI::setCallback | ( | object | $class, |
string | $method, | ||
array | $a_add_options = [] , |
||
string | $default_option = '' |
||
) |
string[] | $a_add_options |
Definition at line 641 of file class.ilRepositorySearchGUI.php.
References $default_option.
ilRepositorySearchGUI::setPermissionQueryCallback | ( | object | $class, |
string | $method | ||
) |
Definition at line 667 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::setPrivacyMode | ( | int | $privacy_mode | ) |
ilRepositorySearchGUI::setRoleCallback | ( | object | $class, |
string | $method, | ||
array | $a_add_options = [] , |
||
string | $default_option = '' |
||
) |
string[] | $a_add_options |
Definition at line 655 of file class.ilRepositorySearchGUI.php.
References $default_option.
ilRepositorySearchGUI::setString | ( | string | $a_str | ) |
Definition at line 393 of file class.ilRepositorySearchGUI.php.
References ilSession\get(), and ilSession\set().
ilRepositorySearchGUI::setTitle | ( | string | $a_title | ) |
Definition at line 146 of file class.ilRepositorySearchGUI.php.
Referenced by __construct().
ilRepositorySearchGUI::setUserLimitations | ( | bool | $a_limitations | ) |
allow user limitations like inactive and access limitations
Definition at line 1410 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::show | ( | ) |
Definition at line 822 of file class.ilRepositorySearchGUI.php.
References showSearchResults().
Referenced by performSearch().
|
protected |
Definition at line 522 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\ctrl(), initUserTypeFromPost(), initUserTypeFromQuery(), ILIAS\Repository\lng(), ilTable2GUI\setFormAction(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
ilRepositorySearchGUI::showSearch | ( | ) |
Definition at line 671 of file class.ilRepositorySearchGUI.php.
References ILIAS\Repository\form(), getPrivacyMode(), initFormSearch(), and ilUserAutoComplete\PRIVACY_MODE_RESPECT_USER_SETTING.
Referenced by performSearch(), and start().
|
protected |
Definition at line 1237 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
|
protected |
Definition at line 1229 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
ilRepositorySearchGUI::showSearchResults | ( | ) |
Definition at line 1156 of file class.ilRepositorySearchGUI.php.
References addNewSearchButton(), ilSession\get(), showSearchCourseTable(), showSearchGroupTable(), showSearchRoleTable(), and showSearchUserTable().
Referenced by addRole(), addUser(), handleMultiCommand(), listUsers(), selectObject(), and show().
|
protected |
Definition at line 1221 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
ilRepositorySearchGUI::showSearchSelected | ( | ) |
Definition at line 682 of file class.ilRepositorySearchGUI.php.
References addNewSearchButton(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and showSearchUserTable().
|
protected |
Definition at line 1185 of file class.ilRepositorySearchGUI.php.
References $default_option, ILIAS\Repository\ctrl(), getUserLimitations(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilSession\set().
Referenced by listUsers(), showSearchResults(), and showSearchSelected().
ilRepositorySearchGUI::start | ( | ) |
Definition at line 432 of file class.ilRepositorySearchGUI.php.
References __clearSession(), and showSearch().
Referenced by performSearch().
|
protected |
Definition at line 1345 of file class.ilRepositorySearchGUI.php.
References ilSession\get(), and listUsers().
|
protected |
Definition at line 42 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 54 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 71 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 43 of file class.ilRepositorySearchGUI.php.
Referenced by setCallback(), setRoleCallback(), and showSearchUserTable().
|
protected |
Definition at line 59 of file class.ilRepositorySearchGUI.php.
Referenced by initFormSearch().
|
private |
Definition at line 77 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 76 of file class.ilRepositorySearchGUI.php.
Referenced by ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar().
|
protected |
Definition at line 44 of file class.ilRepositorySearchGUI.php.
|
private |
Definition at line 66 of file class.ilRepositorySearchGUI.php.
Referenced by getPrivacyMode(), and setPrivacyMode().
|
protected |
Definition at line 74 of file class.ilRepositorySearchGUI.php.
|
private |
Definition at line 78 of file class.ilRepositorySearchGUI.php.
Referenced by ilStudyProgrammeRepositorySearchGUI\addUser().
|
protected |
Definition at line 57 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 55 of file class.ilRepositorySearchGUI.php.
Referenced by getRoleCallback().
|
private |
Definition at line 40 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 47 of file class.ilRepositorySearchGUI.php.
Referenced by getTitle().
|
private |
Definition at line 49 of file class.ilRepositorySearchGUI.php.
Referenced by __updateResults(), and getSearchType().
|
protected |
Definition at line 46 of file class.ilRepositorySearchGUI.php.
Referenced by isSearchableCheckEnabled().
|
protected |
Definition at line 58 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 53 of file class.ilRepositorySearchGUI.php.
|
private |
Definition at line 50 of file class.ilRepositorySearchGUI.php.
Referenced by getString().
|
protected |
Definition at line 75 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 72 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 68 of file class.ilRepositorySearchGUI.php.
Referenced by ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar().
|
protected |
Definition at line 70 of file class.ilRepositorySearchGUI.php.
Referenced by ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar().
|
protected |
Definition at line 69 of file class.ilRepositorySearchGUI.php.
Definition at line 73 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 64 of file class.ilRepositorySearchGUI.php.
Referenced by addUserAccessFilterCallable().
|
protected |
Definition at line 51 of file class.ilRepositorySearchGUI.php.
Referenced by getUserLimitations().