ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilObjUserGUI. More...
Public Member Functions | |
__construct ( $a_data, $a_id, $a_call_by_reference=false, $a_prepare_output=true, ILIAS\UI\Factory $uiFactory=null, ILIAS\UI\Renderer $uiRenderer=null) | |
ilObjUserGUI constructor. More... | |
executeCommand () | |
setTitleAndDescription () | |
cancelObject () | |
getAdminTabs () | |
admin and normal tabs are equal for roles More... | |
getTabs () | |
get tabs More... | |
setBackTarget ($a_text, $a_link) | |
set back tab target More... | |
__checkUserDefinedRequiredFields () | |
display user create form More... | |
__showUserDefinedFields () | |
initCreate () | |
createObject () | |
Display user create form. More... | |
saveObject () | |
save user data public More... | |
updateObject () | |
Update user. More... | |
getValues () | |
Get values from user object and put them into form. More... | |
uploadUserPictureObject () | |
upload user image More... | |
removeUserPictureObject () | |
remove user image More... | |
assignSaveObject () | |
assign users to role More... | |
roleassignmentObject () | |
display roleassignment panel More... | |
applyFilterObject () | |
Apply filter. More... | |
resetFilterObject () | |
Reset filter. More... | |
__getDateSelect ($a_type, $a_varname, $a_selected) | |
__toUnix ($a_time_arr) | |
__unsetSessionVariables () | |
__buildFilterSelect () | |
hitsperpageObject () | |
addAdminLocatorItems ($a_do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
showUpperIcon () | |
![]() | |
executeCommand () | |
execute command More... | |
withReferences () | |
determines wether objects are referenced or not (got ref ids or not) More... | |
setCreationMode ($a_mode=true) | |
if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More... | |
getCreationMode () | |
get creation mode More... | |
prepareOutput ($a_show_subobjects=true) | |
prepare output More... | |
getAdminTabs () | |
administration tabs show only permissions and trash folder More... | |
getHTML () | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More... | |
cancelDeleteObject () | |
cancel deletion of object More... | |
cancelObject () | |
cancel action and go back to previous page public More... | |
createObject () | |
create new object form More... | |
cancelCreation () | |
cancel create action and go back to repository parent More... | |
saveObject () | |
save object More... | |
getDidacticTemplateVar ($a_type) | |
Get didactic template setting from creation screen. More... | |
putObjectInTree (ilObject $a_obj, $a_parent_node_id=null) | |
Add object to tree at given position. More... | |
editObject () | |
edit object More... | |
addExternalEditFormCustom (ilPropertyFormGUI $a_form) | |
updateObject () | |
updates object entry in object_data More... | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. More... | |
isVisible ($a_ref_id, $a_type) | |
viewObject () | |
viewObject container presentation for "administration -> repository, trash, permissions" More... | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. More... | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. More... | |
redirectAfterCreation () | |
Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html. More... | |
addToDeskObject () | |
removeFromDeskObject () | |
![]() | |
callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) | |
Data Fields | |
$ilCtrl | |
$gender | |
$type | |
$user_ref_id | |
![]() | |
const | ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION |
const | COPY_WIZARD_NEEDS_PAGE = 1 |
$objDefinition | |
$tpl | |
$tree | |
$lng | |
$data | |
$object | |
$ref_id | |
$obj_id | |
$maxcount | |
$formaction | |
$return_location | |
$target_frame | |
$tab_target_script | |
$actions | |
$sub_objects | |
$omit_locator = false | |
const | CFORM_NEW = 1 |
const | CFORM_IMPORT = 2 |
const | CFORM_CLONE = 3 |
Protected Member Functions | |
loadValuesFromForm ($a_mode='create') | |
isSettingChangeable ($a_field) | |
Check if setting is visible This is the case when called from user folder. More... | |
handleIgnoredRequiredFields () | |
Handles ignored required fields by changing the required flag of form elements. More... | |
![]() | |
getObjectService () | |
Get object service. More... | |
assignObject () | |
setTitleAndDescription () | |
called by prepare output More... | |
initHeaderAction ($a_sub_type=null, $a_sub_id=null) | |
Add header action menu. More... | |
insertHeaderAction ($a_list_gui) | |
Insert header action into main template. More... | |
addHeaderAction () | |
Add header action menu. More... | |
redrawHeaderActionObject () | |
Ajax call: redraw action header only. More... | |
setTabs () | |
set admin tabs public More... | |
setAdminTabs () | |
set admin tabs public More... | |
setLocator () | |
set Locator More... | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
omitLocator ($a_omit=true) | |
addAdminLocatorItems ($a_do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
initCreationForms ($a_new_type) | |
Init creation froms. More... | |
getCreationFormsHTML (array $a_forms) | |
Get HTML for creation forms (accordion) More... | |
initCreateForm ($a_new_type) | |
Init object creation form. More... | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
Show didactic template types. More... | |
addDidacticTemplateOptions (array &$a_options) | |
Add custom templates. More... | |
afterSave (ilObject $a_new_object) | |
Post (successful) object creation hook. More... | |
initEditForm () | |
Init object edit form. More... | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. More... | |
getEditFormValues () | |
Get values for edit form. More... | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. More... | |
validateCustom (ilPropertyFormGUI $a_form) | |
Validate custom values (if not possible with checkInput()) More... | |
updateCustom (ilPropertyFormGUI $a_form) | |
Insert custom update form values into object. More... | |
afterUpdate () | |
Post (successful) object update hook. More... | |
initImportForm ($a_new_type) | |
Init object import form. More... | |
importFileObject ($parent_id=null, $a_catch_errors=true) | |
Import. More... | |
afterImport (ilObject $a_new_object) | |
Post (successful) object import hook. More... | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command More... | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. More... | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command More... | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. More... | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command More... | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) More... | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. More... | |
getTabs () | |
get tabs abstract method. More... | |
__showButton ($a_cmd, $a_text, $a_target='') | |
hitsperpageObject () | |
& | __initTableGUI () |
__setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
standard implementation for tables use 'from' variable use different initial setting of table More... | |
redirectToRefId ($a_ref_id, $a_cmd="") | |
redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More... | |
fillCloneTemplate ($a_tpl_varname, $a_type) | |
Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More... | |
getCenterColumnHTML () | |
Get center column. More... | |
getRightColumnHTML () | |
Display right column. More... | |
setColumnSettings (ilColumnGUI $column_gui) | |
May be overwritten in subclasses. More... | |
checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission and redirect on error. More... | |
checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null) | |
Check permission. More... | |
enableDragDropFileUpload () | |
Enables the file upload into this object by dropping files. More... | |
handleAutoRating (ilObject $a_new_obj) | |
Activate rating automatically if parent container setting. More... | |
Protected Attributes | |
$uiFactory | |
$uiRenderer | |
![]() | |
const | UPLOAD_TYPE_LOCAL = 1 |
const | UPLOAD_TYPE_UPLOAD_DIRECTORY = 2 |
$ilErr | |
$locator | |
$user | |
$access | |
$rbacsystem | |
$settings | |
$rbacreview | |
$toolbar | |
$tmp_import_dir | |
$tabs_gui = null | |
$ctrl | |
$object_service | |
$favourites | |
$request | |
Additional Inherited Members | |
![]() | |
static | _gotoRepositoryRoot ($a_raise_error=false) |
Goto repository root. More... | |
static | _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset") |
Goto repository root. More... | |
Class ilObjUserGUI.
ilObjUserGUI: ilLearningProgressGUI, ilObjectOwnershipManagementGUI
Definition at line 17 of file class.ilObjUserGUI.php.
ilObjUserGUI::__construct | ( | $a_data, | |
$a_id, | |||
$a_call_by_reference = false , |
|||
$a_prepare_output = true , |
|||
ILIAS\UI\Factory | $uiFactory = null , |
||
ILIAS\UI\Renderer | $uiRenderer = null |
||
) |
ilObjUserGUI constructor.
$a_data | ||
$a_id | ||
bool | $a_call_by_reference | |
bool | $a_prepare_output | |
\ILIAS\UI\Factory | $uiFactory | |
\ILIAS\UI\Renderer | $uiRenderer |
Definition at line 57 of file class.ilObjUserGUI.php.
References $_GET, $DIC, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$ref_id, $uiFactory, $uiRenderer, and ILIAS\GlobalScreen\Provider\__construct().
ilObjUserGUI::__buildFilterSelect | ( | ) |
Definition at line 1963 of file class.ilObjUserGUI.php.
References $_SESSION, and ilUtil\formSelect().
Referenced by roleassignmentObject().
ilObjUserGUI::__checkUserDefinedRequiredFields | ( | ) |
display user create form
Definition at line 251 of file class.ilObjUserGUI.php.
References $_POST, and ilUserDefinedFields\_getInstance().
ilObjUserGUI::__getDateSelect | ( | $a_type, | |
$a_varname, | |||
$a_selected | |||
) |
Definition at line 1902 of file class.ilObjUserGUI.php.
References $i, and ilUtil\formSelect().
ilObjUserGUI::__showUserDefinedFields | ( | ) |
Definition at line 265 of file class.ilObjUserGUI.php.
References $_SESSION, $name, ilUserDefinedFields\_getInstance(), ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
ilObjUserGUI::__toUnix | ( | $a_time_arr | ) |
Definition at line 1943 of file class.ilObjUserGUI.php.
ilObjUserGUI::__unsetSessionVariables | ( | ) |
ilObjUserGUI::addAdminLocatorItems | ( | $a_do_not_add_object = false | ) |
should be overwritten to add object specific items (repository items are preloaded)
Definition at line 1985 of file class.ilObjUserGUI.php.
References $_GET, $DIC, ilFrameTargetInfo\_getFrame(), ilObject\_lookupObjId(), ilObject\_lookupType(), ROLE_FOLDER_ID, SYSTEM_FOLDER_ID, and USER_FOLDER_ID.
ilObjUserGUI::applyFilterObject | ( | ) |
Apply filter.
Definition at line 1881 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::assignSaveObject | ( | ) |
assign users to role
public
Definition at line 1756 of file class.ilObjUserGUI.php.
References $_GET, $_POST, $DIC, ilObjectGUI\$rbacreview, ilObjectGUI\$rbacsystem, ilUtil\sendFailure(), SYSTEM_ROLE_ID, and SYSTEM_USER_ID.
ilObjUserGUI::cancelObject | ( | ) |
Definition at line 152 of file class.ilObjUserGUI.php.
References $_GET, and ilSession\clear().
ilObjUserGUI::createObject | ( | ) |
Display user create form.
Definition at line 371 of file class.ilObjUserGUI.php.
References $DIC, $ilUser, ilObjectGUI\$rbacreview, ilObjectGUI\$rbacsystem, ilObjectGUI\$tpl, and initCreate().
ilObjUserGUI::executeCommand | ( | ) |
Definition at line 101 of file class.ilObjUserGUI.php.
References $DIC, ilObjectGUI\$rbacsystem, ilLearningProgressBaseGUI\LP_CONTEXT_USER_FOLDER, ilObjectGUI\prepareOutput(), and USER_FOLDER_ID.
ilObjUserGUI::getAdminTabs | ( | ) |
admin and normal tabs are equal for roles
Definition at line 168 of file class.ilObjUserGUI.php.
References getTabs().
ilObjUserGUI::getTabs | ( | ) |
get tabs
Definition at line 176 of file class.ilObjUserGUI.php.
References $_GET, $_SESSION, $DIC, ilObjectGUI\$rbacsystem, ilObjUserTracking\_enabledLearningProgress(), and ilObjUserTracking\_enabledUserRelatedData().
Referenced by getAdminTabs().
ilObjUserGUI::getValues | ( | ) |
Get values from user object and put them into form.
Definition at line 949 of file class.ilObjUserGUI.php.
References $_SERVER, Vendor\Package\$a, ilObjectGUI\$data, $DIC, Vendor\Package\$e, $ilCtrl, $ilSetting, $ilUser, $lang, ilObjectGUI\$lng, $name, XapiProxy\$req, ilObjectGUI\$settings, ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_getAuthModeName(), ilUserDefinedFields\_getInstance(), ilObjUser\_getLastHistoryDataByUserId(), ilObjUser\_getPersonalPicturePath(), ilAuthUtils\_isExternalAccountEnabled(), ilSystemStyleSettings\_lookupActivatedStyle(), ilObjUser\_lookupLogin(), ilDatePresentation\formatDate(), ilAuthUtils\getAuthModeTranslation(), ilCustomUserFieldsHelper\getInstance(), ilUtil\getPasswordRequirementsInfo(), IL_CAL_DATE, IL_CAL_DATETIME, IL_CAL_UNIX, isSettingChangeable(), ilCheckboxInputGUI\setChecked(), ilImageFileInputGUI\setImage(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilPasswordInputGUI\setUseStripSlashes(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), ilNonEditableValueGUI\setValue(), SYSTEM_ROLE_ID, SYSTEM_USER_ID, user(), USER_FOLDER_ID, and ilUtil\yn2tf().
Referenced by saveObject().
|
protected |
Handles ignored required fields by changing the required flag of form elements.
protected
Definition at line 2189 of file class.ilObjUserGUI.php.
References ilUserDefinedFields\_getInstance(), ilUserProfile\getIgnorableRequiredSettings(), and ilNonEditableValueGUI\setValue().
Referenced by saveObject(), and updateObject().
ilObjUserGUI::hitsperpageObject | ( | ) |
Definition at line 1975 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::initCreate | ( | ) |
Definition at line 308 of file class.ilObjUserGUI.php.
References $DIC, $ilUser, $keys, ilObjectGUI\$rbacreview, ilObjectGUI\$rbacsystem, ilObjectGUI\$tpl, ilObjRole\_getAssignUsersStatus(), ANONYMOUS_ROLE_ID, ROLE_FOLDER_ID, SYSTEM_ROLE_ID, and USER_FOLDER_ID.
Referenced by createObject(), and saveObject().
|
protected |
Check if setting is visible This is the case when called from user folder.
Otherwise (category local user account depend on a setting)
array | $settings | |
string | $a_field |
Definition at line 1607 of file class.ilObjUserGUI.php.
References $DIC, $ilSetting, ilObjectGUI\$settings, and USER_FOLDER_ID.
Referenced by getValues(), loadValuesFromForm(), saveObject(), and updateObject().
|
protected |
object | $a_mode | [optional] |
Definition at line 609 of file class.ilObjUserGUI.php.
References $DIC, $ilSetting, $ilUser, ilObjectGUI\$object, ilObjectGUI\$user, IL_CAL_DATE, IL_CAL_UNIX, and isSettingChangeable().
Referenced by saveObject(), and updateObject().
ilObjUserGUI::removeUserPictureObject | ( | ) |
remove user image
Definition at line 1717 of file class.ilObjUserGUI.php.
References ilObjectGUI\editObject(), and ilUtil\getWebspaceDir().
ilObjUserGUI::resetFilterObject | ( | ) |
Reset filter.
Definition at line 1893 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::roleassignmentObject | ( | ) |
display roleassignment panel
public
Definition at line 1833 of file class.ilObjUserGUI.php.
References $_POST, $_SESSION, ilObjectGUI\$access, $DIC, $ilUser, ilObjectGUI\$rbacreview, ilObjectGUI\$rbacsystem, __buildFilterSelect(), and ANONYMOUS_USER_ID.
Referenced by applyFilterObject(), hitsperpageObject(), and resetFilterObject().
ilObjUserGUI::saveObject | ( | ) |
save user data public
Definition at line 394 of file class.ilObjUserGUI.php.
References $_GET, $_POST, ilObjectGUI\$access, $DIC, $ilSetting, $ilUser, ilObjectGUI\$rbacreview, ilObjectGUI\$rbacsystem, ilObjectGUI\$tpl, ilAuthUtils\_isExternalAccountEnabled(), ilObjectGUI\editObject(), getValues(), handleIgnoredRequiredFields(), IL_PASSWD_PLAIN, initCreate(), ilUserProfile\isProfileIncomplete(), isSettingChangeable(), loadValuesFromForm(), ilObjUserFolder\ORG_OP_EDIT_USER_ACCOUNTS, ilUtil\sendInfo(), SYSTEM_ROLE_ID, SYSTEM_USER_ID, uploadUserPictureObject(), and USER_FOLDER_ID.
ilObjUserGUI::setBackTarget | ( | $a_text, | |
$a_link | |||
) |
set back tab target
Definition at line 241 of file class.ilObjUserGUI.php.
ilObjUserGUI::setTitleAndDescription | ( | ) |
Definition at line 139 of file class.ilObjUserGUI.php.
References ilUtil\getImagePath().
ilObjUserGUI::showUpperIcon | ( | ) |
Definition at line 2032 of file class.ilObjUserGUI.php.
References $_GET, $_POST, $DIC, $GLOBALS, $ilCtrl, $ilUser, ilMail\_getInstallationSignature(), ilObjUser\_lookupId(), ANONYMOUS_USER_ID, ilPersonalProfileGUI\CHANGE_EMAIL_CMD, exit, and ilUtil\stripSlashes().
ilObjUserGUI::updateObject | ( | ) |
Update user.
Definition at line 769 of file class.ilObjUserGUI.php.
References $_GET, $_POST, ilObjectGUI\$access, $DIC, Vendor\Package\$e, $ilSetting, $ilUser, ilObjectGUI\$rbacsystem, ilObjectGUI\$tpl, ilAuthUtils\_allowPasswordModificationByAuthMode(), ilAuthUtils\_getAuthMode(), ilObjUser\_resetLoginAttempts(), handleIgnoredRequiredFields(), IL_PASSWD_PLAIN, ilUserProfile\isProfileIncomplete(), isSettingChangeable(), loadValuesFromForm(), ilObjUserFolder\ORG_OP_EDIT_USER_ACCOUNTS, ilUtil\sendFailure(), SYSTEM_ROLE_ID, SYSTEM_USER_ID, uploadUserPictureObject(), user(), and USER_FOLDER_ID.
ilObjUserGUI::uploadUserPictureObject | ( | ) |
upload user image
(original method by ratana ty)
Definition at line 1634 of file class.ilObjUserGUI.php.
References $DIC, $ilUser, ilObjectGUI\$rbacsystem, ilUtil\escapeShellArg(), ilUtil\execConvert(), ilUtil\getWebspaceDir(), ilUtil\isConvertVersionAtLeast(), ilUtil\moveUploadedFile(), ilUtil\sendFailure(), and USER_FOLDER_ID.
Referenced by saveObject(), and updateObject().
ilObjUserGUI::$gender |
Definition at line 32 of file class.ilObjUserGUI.php.
ilObjUserGUI::$ilCtrl |
Definition at line 25 of file class.ilObjUserGUI.php.
Referenced by __construct(), getValues(), and showUpperIcon().
ilObjUserGUI::$type |
Definition at line 39 of file class.ilObjUserGUI.php.
|
protected |
Definition at line 20 of file class.ilObjUserGUI.php.
Referenced by __construct().
|
protected |
Definition at line 23 of file class.ilObjUserGUI.php.
Referenced by __construct().
ilObjUserGUI::$user_ref_id |
Definition at line 46 of file class.ilObjUserGUI.php.