ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Public Member Functions | |
__construct () | |
Constructor public. More... | |
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 ($a_title) | |
Set form title. More... | |
getTitle () | |
Get search form title. More... | |
enableSearchableCheck ($a_status) | |
En/disable the validation of the searchable flag. More... | |
isSearchableCheckEnabled () | |
setPrivacyMode ($privacy_mode) | |
getPrivacyMode () | |
setString ($a_str) | |
Set/get search string public. More... | |
getString () | |
executeCommand () | |
Control public. More... | |
__clearSession () | |
cancel () | |
start () | |
addRole () | |
addUser () | |
setCallback (&$class, $method, $a_add_options=array()) | |
setRoleCallback (&$class, $method, $a_add_options=array()) | |
setPermissionQueryCallback ($class, $method) | |
Set callback method for user permission access queries. More... | |
showSearch () | |
showSearchSelected () | |
submit from autocomplete More... | |
initFormSearch (ilObjUser $user=null) | |
show () | |
appendSearch () | |
performSearch () | |
Perform a search. More... | |
__performUserSearch () | |
__performGroupSearch () | |
Search groups. More... | |
__performRoleSearch () | |
Search roles. More... | |
& | __parseQueryString ($a_string, $a_combination_or=true, $a_ignore_length=false) |
parse query string, using query parser instance More... | |
__loadQueries () | |
__setSearchType () | |
__updateResults () | |
__appendToStoredResults ($a_usr_ids) | |
__storeEntries (&$new_res) | |
showSearchResults () | |
searchResultFilterListener ($a_ref_id, $a_data) | |
Listener called from ilSearchResult Id is obj_id for role, usr Id is ref_id for crs grp. More... | |
allowObjectSelection ($a_value=false) | |
Toggle object selection status. More... | |
setUserLimitations ($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 ($parent_object, ilToolbarGUI $toolbar=null, $a_options=array(), $a_sticky=false) |
fill toolbar with More... | |
Data Fields | |
$search_type = 'usr' | |
Protected Member Functions | |
doUserAutoComplete () | |
Do auto completion. More... | |
addUserFromAutoComplete () | |
Add user from auto complete input. More... | |
showClipboard () | |
addFromClipboard () | |
add users from clipboard More... | |
removeFromClipboard () | |
Remove from clipboard. More... | |
emptyClipboard () | |
Remove from clipboard. More... | |
handleMultiCommand () | |
Handle multi command. More... | |
__performCourseSearch () | |
Search courses. More... | |
addNewSearchButton () | |
Add new search button. More... | |
showSearchUserTable ($a_usr_ids, $a_parent_cmd) | |
Show usr table. More... | |
showSearchRoleTable ($a_obj_ids) | |
Show usr table. More... | |
showSearchGroupTable ($a_obj_ids) | |
showSearchCourseTable ($a_obj_ids) | |
listUsers () | |
List users of course/group/roles. More... | |
storedUserList () | |
Called from table sort. More... | |
selectObject () | |
Return selection of course/group/roles to calling script. More... | |
Protected Attributes | |
$add_options = array() | |
$object_selection = false | |
$searchable_check = true | |
$search_title = '' | |
$user_limitations = true | |
$user_filter = null | |
$tree | |
$ui_renderer | |
$ui_factory | |
Private Attributes | |
$search_results = array() | |
$privacy_mode = ilUserAutoComplete::PRIVACY_MODE_IGNORE_USER_SETTING | |
Definition at line 43 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::__construct | ( | ) |
Constructor public.
Definition at line 84 of file class.ilRepositorySearchGUI.php.
References $DIC, $ilCtrl, $lng, $tpl, $tree, $ui_factory, $ui_renderer, __loadQueries(), __setSearchType(), settings(), and setTitle().
ilRepositorySearchGUI::__appendToStoredResults | ( | $a_usr_ids | ) |
Definition at line 1083 of file class.ilRepositorySearchGUI.php.
References $_SESSION.
Referenced by listUsers().
ilRepositorySearchGUI::__clearSession | ( | ) |
Definition at line 418 of file class.ilRepositorySearchGUI.php.
References $_SESSION.
Referenced by start().
ilRepositorySearchGUI::__loadQueries | ( | ) |
Definition at line 1039 of file class.ilRepositorySearchGUI.php.
References $_POST, and $_SESSION.
Referenced by __construct().
& ilRepositorySearchGUI::__parseQueryString | ( | $a_string, | |
$a_combination_or = true , |
|||
$a_ignore_length = false |
|||
) |
parse query string, using query parser instance
Definition at line 1019 of file class.ilRepositorySearchGUI.php.
References QP_COMBINATION_AND, QP_COMBINATION_OR, and ilUtil\stripSlashes().
Referenced by __performCourseSearch(), __performGroupSearch(), __performRoleSearch(), and __performUserSearch().
|
protected |
Search courses.
Definition at line 973 of file class.ilRepositorySearchGUI.php.
References $_SESSION, __parseQueryString(), __storeEntries(), and ilUtil\sendInfo().
Referenced by performSearch().
ilRepositorySearchGUI::__performGroupSearch | ( | ) |
Search groups.
Definition at line 951 of file class.ilRepositorySearchGUI.php.
References $_SESSION, __parseQueryString(), __storeEntries(), and ilUtil\sendInfo().
Referenced by performSearch().
ilRepositorySearchGUI::__performRoleSearch | ( | ) |
Search roles.
Definition at line 995 of file class.ilRepositorySearchGUI.php.
References $_SESSION, __parseQueryString(), __storeEntries(), and ilUtil\sendInfo().
Referenced by performSearch().
ilRepositorySearchGUI::__performUserSearch | ( | ) |
Definition at line 881 of file class.ilRepositorySearchGUI.php.
References $_SESSION, $name, __parseQueryString(), __storeEntries(), ilUserSearchOptions\_getSearchableFieldsInfo(), ilObjectSearchFactory\_getUserDefinedFieldSearchInstance(), ilObjectSearchFactory\_getUserSearchInstance(), FIELD_TYPE_MULTI, FIELD_TYPE_SELECT, FIELD_TYPE_TEXT, FIELD_TYPE_UDF_SELECT, FIELD_TYPE_UDF_TEXT, ilObjectSearchFactory\getUserMultiFieldSearchInstance(), ilObjectSearchFactory\getUserOrgUnitAssignmentInstance(), isSearchableCheckEnabled(), and ilUtil\sendInfo().
Referenced by performSearch().
ilRepositorySearchGUI::__setSearchType | ( | ) |
Definition at line 1047 of file class.ilRepositorySearchGUI.php.
References $_POST, and $_SESSION.
Referenced by __construct().
ilRepositorySearchGUI::__storeEntries | ( | & | $new_res | ) |
Definition at line 1095 of file class.ilRepositorySearchGUI.php.
Referenced by __performCourseSearch(), __performGroupSearch(), __performRoleSearch(), and __performUserSearch().
ilRepositorySearchGUI::__updateResults | ( | ) |
Definition at line 1066 of file class.ilRepositorySearchGUI.php.
References $_SESSION, $result, and $search_type.
Referenced by performSearch().
|
protected |
add users from clipboard
Definition at line 526 of file class.ilRepositorySearchGUI.php.
References $_POST, $GLOBALS, and ilUtil\sendFailure().
|
protected |
Add new search button.
Definition at line 1111 of file class.ilRepositorySearchGUI.php.
Referenced by listUsers(), showSearchResults(), and showSearchSelected().
ilRepositorySearchGUI::addRole | ( | ) |
Definition at line 441 of file class.ilRepositorySearchGUI.php.
References $_POST, ilObject\_getAllReferences(), ilObject\_lookupType(), ilParticipants\getDefaultMemberRole(), and showSearchResults().
ilRepositorySearchGUI::addUser | ( | ) |
Definition at line 466 of file class.ilRepositorySearchGUI.php.
References $_POST, 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 }.
callable | $user_filter |
Definition at line 124 of file class.ilRepositorySearchGUI.php.
References $user_filter.
|
protected |
Add user from auto complete input.
Definition at line 481 of file class.ilRepositorySearchGUI.php.
References $_POST, $GLOBALS, and ilObjUser\_lookupId().
ilRepositorySearchGUI::allowObjectSelection | ( | $a_value = false | ) |
Toggle object selection status.
bool | $a_value |
Definition at line 1353 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::appendSearch | ( | ) |
Definition at line 774 of file class.ilRepositorySearchGUI.php.
References $_SESSION, and performSearch().
ilRepositorySearchGUI::cancel | ( | ) |
Definition at line 426 of file class.ilRepositorySearchGUI.php.
|
protected |
Do auto completion.
Definition at line 339 of file class.ilRepositorySearchGUI.php.
References $_GET, $GLOBALS, ilJsonUtil\encode(), exit, getPrivacyMode(), getUserLimitations(), and ilUserAutoComplete\MAX_ENTRIES.
|
protected |
Remove from clipboard.
Definition at line 567 of file class.ilRepositorySearchGUI.php.
References $GLOBALS, and ilUserClipboard\getInstance().
ilRepositorySearchGUI::enableSearchableCheck | ( | $a_status | ) |
En/disable the validation of the searchable flag.
bool | $a_status |
Definition at line 151 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::executeCommand | ( | ) |
|
static |
fill toolbar with
ilToolbarGUI | $toolbar | |
array | options: all are optional e.g. 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, $GLOBALS, $ilCtrl, $lng, $si, $tree, ilObject\_lookupObjId(), ilSubmitButton\getInstance(), ilLinkButton\getInstance(), ilUserClipboard\getInstance(), ilSplitButtonGUI\getInstance(), and language().
Referenced by ilOrgUnitStaffGUI\addOtherRolesToolbar(), ilOrgUnitStaffGUI\addStaffToolbar(), ilTestParticipantsGUI\addUserSearchControls(), ilObjBlogGUI\contributors(), ilForumModeratorsGUI\detachModeratorRole(), ilSurveyParticipantsGUI\editRatersObject(), ilOrgUnitUserAssignmentGUI\index(), ilSurveyParticipantsGUI\listAppraiseesObject(), ilExerciseManagementGUI\membersObject(), ilBookingParticipantGUI\render(), ilLearningSequenceMembershipGUI\showParticipantsToolbar(), ilMembershipGUI\showParticipantsToolbar(), ilSkillProfileGUI\showUsers(), ilExSubmissionTeamGUI\submissionScreenTeamObject(), ilObjRoleGUI\userassignmentObject(), and ilIndividualAssessmentMembersGUI\view().
ilRepositorySearchGUI::getPrivacyMode | ( | ) |
Definition at line 176 of file class.ilRepositorySearchGUI.php.
References $privacy_mode.
Referenced by doUserAutoComplete(), performSearch(), and showSearch().
ilRepositorySearchGUI::getString | ( | ) |
Definition at line 387 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::getTitle | ( | ) |
Get search form title.
Definition at line 142 of file class.ilRepositorySearchGUI.php.
References $search_title.
Referenced by initFormSearch().
ilRepositorySearchGUI::getUserLimitations | ( | ) |
allow user limitations like inactive and access limitations
Definition at line 1392 of file class.ilRepositorySearchGUI.php.
References $user_limitations.
Referenced by doUserAutoComplete(), and showSearchUserTable().
|
protected |
Handle multi command.
Definition at line 581 of file class.ilRepositorySearchGUI.php.
References $_POST, and showSearchResults().
ilRepositorySearchGUI::initFormSearch | ( | ilObjUser | $user = null | ) |
Definition at line 641 of file class.ilRepositorySearchGUI.php.
References $DIC, $ilCtrl, $txt, ilUserSearchOptions\_getSearchableFieldsInfo(), ilUserSearchOptions\_isEnabled(), ilRadioOption\addSubItem(), FIELD_TYPE_MULTI, FIELD_TYPE_SELECT, FIELD_TYPE_TEXT, FIELD_TYPE_UDF_SELECT, FIELD_TYPE_UDF_TEXT, ilObjOrgUnit\getRootOrgRefId(), getTitle(), isSearchableCheckEnabled(), and ilRadioGroupInputGUI\setValue().
Referenced by showSearch().
ilRepositorySearchGUI::isSearchableCheckEnabled | ( | ) |
Definition at line 160 of file class.ilRepositorySearchGUI.php.
References $searchable_check.
Referenced by __performUserSearch(), and initFormSearch().
|
protected |
List users of course/group/roles.
Definition at line 1230 of file class.ilRepositorySearchGUI.php.
References $_GET, $_POST, $_SESSION, $DIC, $type, __appendToStoredResults(), ilObject\_getAllReferences(), ilObject\_lookupType(), addNewSearchButton(), ilOrgUnitUserAssignmentQueries\getInstance(), ilUserFilter\getInstance(), ilParticipants\getInstanceByObjId(), ilParticipants\hasParticipantListAccess(), ilUtil\sendFailure(), showSearchResults(), and showSearchUserTable().
Referenced by performSearch(), and storedUserList().
ilRepositorySearchGUI::performSearch | ( | ) |
Perform a search.
Definition at line 784 of file class.ilRepositorySearchGUI.php.
References $_POST, $_SESSION, $message, $res, __performCourseSearch(), __performGroupSearch(), __performRoleSearch(), __performUserSearch(), __updateResults(), ilObject\_lookupObjId(), ilUserFilter\getInstance(), getPrivacyMode(), listUsers(), ilUserAutoComplete\PRIVACY_MODE_RESPECT_USER_SETTING, QP_COMBINATION_OR, ilUtil\sendFailure(), ilUtil\sendInfo(), settings(), show(), showSearch(), start(), and ilUtil\stripSlashes().
Referenced by appendSearch().
|
protected |
Remove from clipboard.
Definition at line 546 of file class.ilRepositorySearchGUI.php.
References $_POST, $GLOBALS, ilUserClipboard\getInstance(), and ilUtil\sendFailure().
ilRepositorySearchGUI::searchResultFilterListener | ( | $a_ref_id, | |
$a_data | |||
) |
Listener called from ilSearchResult Id is obj_id for role, usr Id is ref_id for crs grp.
int | $a_id | |
array | $a_data |
Definition at line 1338 of file class.ilRepositorySearchGUI.php.
|
protected |
Return selection of course/group/roles to calling script.
Definition at line 1361 of file class.ilRepositorySearchGUI.php.
References $_GET, $_POST, ilUtil\sendFailure(), and showSearchResults().
ilRepositorySearchGUI::setCallback | ( | & | $class, |
$method, | |||
$a_add_options = array() |
|||
) |
Definition at line 592 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::setPermissionQueryCallback | ( | $class, | |
$method | |||
) |
Set callback method for user permission access queries.
Definition at line 607 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::setPrivacyMode | ( | $privacy_mode | ) |
int | $privacy_mode |
Definition at line 168 of file class.ilRepositorySearchGUI.php.
References $privacy_mode.
ilRepositorySearchGUI::setRoleCallback | ( | & | $class, |
$method, | |||
$a_add_options = array() |
|||
) |
Definition at line 598 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::setString | ( | $a_str | ) |
Set/get search string public.
Definition at line 383 of file class.ilRepositorySearchGUI.php.
References $_SESSION.
ilRepositorySearchGUI::setTitle | ( | $a_title | ) |
Set form title.
string | $a_title |
Definition at line 133 of file class.ilRepositorySearchGUI.php.
Referenced by __construct().
ilRepositorySearchGUI::setUserLimitations | ( | $a_limitations | ) |
allow user limitations like inactive and access limitations
bool | $a_limitations |
Definition at line 1383 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::show | ( | ) |
Definition at line 769 of file class.ilRepositorySearchGUI.php.
References showSearchResults().
Referenced by performSearch().
|
protected |
Definition at line 502 of file class.ilRepositorySearchGUI.php.
References $GLOBALS, and ilLoggerFactory\getLogger().
ilRepositorySearchGUI::showSearch | ( | ) |
Definition at line 611 of file class.ilRepositorySearchGUI.php.
References getPrivacyMode(), initFormSearch(), and ilUserAutoComplete\PRIVACY_MODE_RESPECT_USER_SETTING.
Referenced by performSearch(), and start().
|
protected |
array | $a_obj_ids |
Definition at line 1216 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
|
protected |
array | $a_obj_ids |
Definition at line 1201 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
ilRepositorySearchGUI::showSearchResults | ( | ) |
Definition at line 1122 of file class.ilRepositorySearchGUI.php.
References $_SESSION, addNewSearchButton(), showSearchCourseTable(), showSearchGroupTable(), showSearchRoleTable(), and showSearchUserTable().
Referenced by addRole(), addUser(), handleMultiCommand(), listUsers(), selectObject(), and show().
|
protected |
Show usr table.
object | $a_usr_ids |
Definition at line 1186 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
ilRepositorySearchGUI::showSearchSelected | ( | ) |
submit from autocomplete
Definition at line 625 of file class.ilRepositorySearchGUI.php.
References addNewSearchButton(), and showSearchUserTable().
|
protected |
Show usr table.
object | $a_usr_ids |
Definition at line 1154 of file class.ilRepositorySearchGUI.php.
References $_SESSION, and getUserLimitations().
Referenced by listUsers(), showSearchResults(), and showSearchSelected().
ilRepositorySearchGUI::start | ( | ) |
Definition at line 431 of file class.ilRepositorySearchGUI.php.
References __clearSession(), and showSearch().
Referenced by performSearch().
|
protected |
Called from table sort.
Definition at line 1323 of file class.ilRepositorySearchGUI.php.
References $_POST, $_SESSION, and listUsers().
|
protected |
Definition at line 47 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 48 of file class.ilRepositorySearchGUI.php.
|
private |
Definition at line 64 of file class.ilRepositorySearchGUI.php.
Referenced by getPrivacyMode(), and setPrivacyMode().
|
private |
Definition at line 45 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 51 of file class.ilRepositorySearchGUI.php.
Referenced by getTitle().
ilRepositorySearchGUI::$search_type = 'usr' |
Definition at line 53 of file class.ilRepositorySearchGUI.php.
Referenced by __updateResults().
|
protected |
Definition at line 50 of file class.ilRepositorySearchGUI.php.
Referenced by isSearchableCheckEnabled().
|
protected |
Definition at line 70 of file class.ilRepositorySearchGUI.php.
Referenced by __construct(), ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar(), and fillAutoCompleteToolbar().
|
protected |
Definition at line 78 of file class.ilRepositorySearchGUI.php.
Referenced by __construct().
|
protected |
Definition at line 74 of file class.ilRepositorySearchGUI.php.
Referenced by __construct().
|
protected |
Definition at line 59 of file class.ilRepositorySearchGUI.php.
Referenced by addUserAccessFilterCallable().
|
protected |
Definition at line 54 of file class.ilRepositorySearchGUI.php.
Referenced by getUserLimitations().