ILIAS
Release_4_2_x_branch Revision 61807
|
Public Member Functions | |
ilRepositorySearchGUI () | |
Constructor public. | |
setTitle ($a_title) | |
Set form title. | |
getTitle () | |
Get search form title. | |
enableSearchableCheck ($a_status) | |
En/disable the validation of the searchable flag. | |
isSearchableCheckEnabled () | |
setString ($a_str) | |
Set/get search string public. | |
getString () | |
& | executeCommand () |
Control public. | |
__clearSession () | |
cancel () | |
start () | |
addUser () | |
setCallback (&$class, $method, $a_add_options=array()) | |
showSearch () | |
initFormSearch () | |
show () | |
appendSearch () | |
performSearch () | |
Perform a search. | |
__performUserSearch () | |
__performGroupSearch () | |
Search groups. | |
__performRoleSearch () | |
Search roles. | |
& | __parseQueryString ($a_string, $a_combination_or=true) |
parse query string, using query parser instance | |
__loadQueries () | |
__setSearchType () | |
__updateResults () | |
__appendToStoredResults ($a_usr_ids) | |
__storeEntries (&$new_res) | |
showSearchResults () | |
userFilter ($a_ref_id, $a_data) | |
allowObjectSelection ($a_value=false) | |
Toggle object selection status. |
Static Public Member Functions | |
static | fillAutoCompleteToolbar ($parent_object, ilToolbarGUI $toolbar=null, $a_options=array()) |
fill toolbar with |
Data Fields | |
$search_type = 'usr' |
Protected Member Functions | |
doUserAutoComplete () | |
Do auto completion. | |
addUserFromAutoComplete () | |
Add user from auto complete input. | |
handleMultiCommand () | |
Handle multi command. | |
__performCourseSearch () | |
Search courses. | |
addNewSearchButton () | |
Add new search button. | |
showSearchUserTable ($a_usr_ids, $a_parent_cmd) | |
Show usr table. | |
showSearchRoleTable ($a_obj_ids) | |
Show usr table. | |
showSearchGroupTable ($a_obj_ids) | |
showSearchCourseTable ($a_obj_ids) | |
listUsers () | |
List users of course/group/roles. | |
storedUserList () | |
Called from table sort. | |
selectObject () | |
Return selection of course/group/roles to calling script. |
Protected Attributes | |
$add_options = array() | |
$object_selection = false | |
$searchable_check = true | |
$search_title = '' |
Private Attributes | |
$search_results = array() |
Definition at line 41 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::__appendToStoredResults | ( | $a_usr_ids | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 725 of file class.ilRepositorySearchGUI.php.
References $_SESSION, and $usr_id.
Referenced by listUsers().
ilRepositorySearchGUI::__clearSession | ( | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 249 of file class.ilRepositorySearchGUI.php.
References $_SESSION.
Referenced by start().
ilRepositorySearchGUI::__loadQueries | ( | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 673 of file class.ilRepositorySearchGUI.php.
References $_POST, and $_SESSION.
Referenced by ilRepositorySearchGUI().
& ilRepositorySearchGUI::__parseQueryString | ( | $a_string, | |
$a_combination_or = true |
|||
) |
parse query string, using query parser instance
Definition at line 658 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 610 of file class.ilRepositorySearchGUI.php.
References $_SESSION, __parseQueryString(), __storeEntries(), and ilUtil\sendInfo().
Referenced by performSearch().
ilRepositorySearchGUI::__performGroupSearch | ( | ) |
Search groups.
Reimplemented in ilAdminUserSearchGUI.
Definition at line 587 of file class.ilRepositorySearchGUI.php.
References $_SESSION, __parseQueryString(), __storeEntries(), and ilUtil\sendInfo().
Referenced by performSearch().
ilRepositorySearchGUI::__performRoleSearch | ( | ) |
Search roles.
Reimplemented in ilAdminUserSearchGUI.
Definition at line 633 of file class.ilRepositorySearchGUI.php.
References $_SESSION, __parseQueryString(), __storeEntries(), and ilUtil\sendInfo().
Referenced by performSearch().
ilRepositorySearchGUI::__performUserSearch | ( | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 531 of file class.ilRepositorySearchGUI.php.
References $_SESSION, __parseQueryString(), __storeEntries(), ilUserSearchOptions\_getSearchableFieldsInfo(), ilObjectSearchFactory\_getUserDefinedFieldSearchInstance(), ilObjectSearchFactory\_getUserSearchInstance(), FIELD_TYPE_SELECT, FIELD_TYPE_TEXT, FIELD_TYPE_UDF_SELECT, FIELD_TYPE_UDF_TEXT, and ilUtil\sendInfo().
Referenced by performSearch().
ilRepositorySearchGUI::__setSearchType | ( | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 682 of file class.ilRepositorySearchGUI.php.
References $_POST, and $_SESSION.
Referenced by ilRepositorySearchGUI().
ilRepositorySearchGUI::__storeEntries | ( | & | $new_res | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 739 of file class.ilRepositorySearchGUI.php.
Referenced by __performCourseSearch(), __performGroupSearch(), __performRoleSearch(), and __performUserSearch().
ilRepositorySearchGUI::__updateResults | ( | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 703 of file class.ilRepositorySearchGUI.php.
References $_SESSION, $result, and $search_type.
Referenced by performSearch().
|
protected |
Add new search button.
Definition at line 758 of file class.ilRepositorySearchGUI.php.
Referenced by listUsers(), and showSearchResults().
ilRepositorySearchGUI::addUser | ( | ) |
Definition at line 273 of file class.ilRepositorySearchGUI.php.
References $_POST, and showSearchResults().
|
protected |
Add user from auto complete input.
Definition at line 288 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 965 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::appendSearch | ( | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 437 of file class.ilRepositorySearchGUI.php.
References $_SESSION, and performSearch().
ilRepositorySearchGUI::cancel | ( | ) |
Definition at line 258 of file class.ilRepositorySearchGUI.php.
|
protected |
Do auto completion.
Definition at line 188 of file class.ilRepositorySearchGUI.php.
References $_GET, $_REQUEST, $GLOBALS, and exit.
ilRepositorySearchGUI::enableSearchableCheck | ( | $a_status | ) |
En/disable the validation of the searchable flag.
bool | $a_status |
Definition at line 100 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 128 of file class.ilRepositorySearchGUI.php.
Referenced by ilObjSurveyGUI\inviteObject(), ilObjExerciseGUI\membersObject(), ilObjGroupGUI\membersObject(), ilObjCourseGUI\membersObject(), ilObjTestGUI\participantsObject(), and ilObjRoleGUI\userassignmentObject().
ilRepositorySearchGUI::getString | ( | ) |
Definition at line 218 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::getTitle | ( | ) |
Get search form title.
Definition at line 91 of file class.ilRepositorySearchGUI.php.
References $search_title.
Referenced by initFormSearch().
|
protected |
Handle multi command.
Definition at line 315 of file class.ilRepositorySearchGUI.php.
References $_POST, and showSearchResults().
ilRepositorySearchGUI::ilRepositorySearchGUI | ( | ) |
Constructor public.
Definition at line 57 of file class.ilRepositorySearchGUI.php.
References $ilCtrl, $lng, $tpl, __loadQueries(), __setSearchType(), and setTitle().
ilRepositorySearchGUI::initFormSearch | ( | ) |
Definition at line 339 of file class.ilRepositorySearchGUI.php.
References $ilCtrl, ilUserSearchOptions\_getSearchableFieldsInfo(), ilRadioOption\addSubItem(), FIELD_TYPE_SELECT, FIELD_TYPE_TEXT, FIELD_TYPE_UDF_SELECT, FIELD_TYPE_UDF_TEXT, getTitle(), isSearchableCheckEnabled(), and ilRadioGroupInputGUI\setValue().
Referenced by showSearch().
ilRepositorySearchGUI::isSearchableCheckEnabled | ( | ) |
Definition at line 109 of file class.ilRepositorySearchGUI.php.
References $searchable_check.
Referenced by initFormSearch().
|
protected |
List users of course/group/roles.
Definition at line 874 of file class.ilRepositorySearchGUI.php.
References $_GET, $_POST, $_SESSION, __appendToStoredResults(), ilGroupParticipants\_getInstanceByObjId(), ilCourseParticipants\_getInstanceByObjId(), ilObject\_lookupType(), addNewSearchButton(), ilUserFilter\getInstance(), ilUtil\sendFailure(), showSearchResults(), and showSearchUserTable().
Referenced by storedUserList().
ilRepositorySearchGUI::performSearch | ( | ) |
Perform a search.
Reimplemented in ilAdminUserSearchGUI.
Definition at line 447 of file class.ilRepositorySearchGUI.php.
References $_POST, $_SESSION, $res, __performCourseSearch(), __performGroupSearch(), __performRoleSearch(), __performUserSearch(), __updateResults(), ilUserFilter\getInstance(), QP_COMBINATION_OR, ilUtil\sendFailure(), ilUtil\sendInfo(), show(), showSearch(), start(), and ilUtil\stripSlashes().
Referenced by appendSearch().
|
protected |
Return selection of course/group/roles to calling script.
Definition at line 973 of file class.ilRepositorySearchGUI.php.
References $_GET, $_POST, ilUtil\sendFailure(), and showSearchResults().
ilRepositorySearchGUI::setCallback | ( | & | $class, |
$method, | |||
$a_add_options = array() |
|||
) |
Definition at line 327 of file class.ilRepositorySearchGUI.php.
ilRepositorySearchGUI::setString | ( | $a_str | ) |
Set/get search string public.
Definition at line 214 of file class.ilRepositorySearchGUI.php.
References $_SESSION.
ilRepositorySearchGUI::setTitle | ( | $a_title | ) |
Set form title.
string | $a_title |
Definition at line 82 of file class.ilRepositorySearchGUI.php.
Referenced by ilAdminUserSearchGUI\__construct(), and ilRepositorySearchGUI().
ilRepositorySearchGUI::show | ( | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 432 of file class.ilRepositorySearchGUI.php.
References showSearchResults().
Referenced by performSearch().
ilRepositorySearchGUI::showSearch | ( | ) |
Definition at line 333 of file class.ilRepositorySearchGUI.php.
References initFormSearch().
Referenced by performSearch(), and start().
|
protected |
array | $a_obj_ids |
Definition at line 860 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
|
protected |
array | $a_obj_ids |
Definition at line 845 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
ilRepositorySearchGUI::showSearchResults | ( | ) |
Definition at line 769 of file class.ilRepositorySearchGUI.php.
References $_SESSION, addNewSearchButton(), showSearchCourseTable(), showSearchGroupTable(), showSearchRoleTable(), and showSearchUserTable().
Referenced by addUser(), handleMultiCommand(), listUsers(), selectObject(), and show().
|
protected |
Show usr table.
object | $a_usr_ids |
Definition at line 830 of file class.ilRepositorySearchGUI.php.
Referenced by showSearchResults().
|
protected |
Show usr table.
object | $a_usr_ids |
Definition at line 802 of file class.ilRepositorySearchGUI.php.
Referenced by listUsers(), and showSearchResults().
ilRepositorySearchGUI::start | ( | ) |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 263 of file class.ilRepositorySearchGUI.php.
References __clearSession(), and showSearch().
Referenced by performSearch().
|
protected |
Called from table sort.
Definition at line 934 of file class.ilRepositorySearchGUI.php.
References $_POST, $_SESSION, and listUsers().
ilRepositorySearchGUI::userFilter | ( | $a_ref_id, | |
$a_data | |||
) |
int | $a_ref_id | |
array | $a_data |
Reimplemented in ilAdminUserSearchGUI.
Definition at line 947 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 45 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 46 of file class.ilRepositorySearchGUI.php.
|
private |
Definition at line 43 of file class.ilRepositorySearchGUI.php.
|
protected |
Definition at line 49 of file class.ilRepositorySearchGUI.php.
Referenced by getTitle().
ilRepositorySearchGUI::$search_type = 'usr' |
Definition at line 51 of file class.ilRepositorySearchGUI.php.
Referenced by __updateResults().
|
protected |
Definition at line 48 of file class.ilRepositorySearchGUI.php.
Referenced by isSearchableCheckEnabled().