ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Class ilObjUserGUI. More...
Public Member Functions | |
executeCommand () | |
cancelObject () | |
getAdminTabs () | |
setBackTarget (string $a_text, string $a_link) | |
set back tab target More... | |
__checkUserDefinedRequiredFields () | |
__showUserDefinedFields () | |
initCreate () | |
createObject () | |
Display user create form. More... | |
saveObject () | |
save user data More... | |
editObject () | |
getValues () | |
initForm (string $a_mode) | |
Init user form. More... | |
removeUserPictureObject () | |
assignSaveObject () | |
roleassignmentObject () | |
applyFilterObject () | |
resetFilterObject () | |
__getDateSelect (string $a_type, string $a_varname, string $a_selected) | |
__toUnix (array $a_time_arr) | |
__unsetSessionVariables () | |
__buildFilterSelect () | |
__sendProfileMail () | |
![]() | |
getRefId () | |
setAdminMode (string $mode) | |
getAdminMode () | |
getObject () | |
executeCommand () | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
setCreationMode (bool $mode=true) | |
If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More... | |
getCreationMode () | |
prepareOutput (bool $show_sub_objects=true) | |
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... | |
cancelObject () | |
cancel action and go back to previous page More... | |
createObject () | |
create new object form More... | |
editAvailabilityPeriodObject () | |
saveAvailabilityPeriodObject () | |
cancelCreation () | |
cancel create action and go back to repository parent More... | |
saveObject () | |
getDidacticTemplateVar (string $type) | |
Get didactic template setting from creation screen. More... | |
putObjectInTree (ilObject $obj, ?int $parent_node_id=null) | |
Add object to tree at given position. More... | |
editObject () | |
addExternalEditFormCustom (ilPropertyFormGUI $form) | |
updateObject () | |
updates object entry in object_data More... | |
getFormAction (string $cmd, string $default_form_action="") | |
Get form action for command (command is method name without "Object", e.g. More... | |
isVisible (int $ref_id, string $type) | |
viewObject () | |
viewObject container presentation for "administration -> repository, trash, permissions" More... | |
deleteObject (bool $error=false) | |
Display deletion confirmation screen. More... | |
setColumnSettings (ilColumnGUI $column_gui) | |
addToDeskObject () | |
removeFromDeskObject () | |
![]() | |
callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb) | |
Protected Member Functions | |
setTitleAndDescription () | |
getTabs () | |
loadValuesFromForm (string $a_mode='create') | |
loadUserDefinedDataFromForm (?ilObjUser $user=null) | |
isSettingChangeable (string $a_field) | |
uploadUserPicture () | |
upload user image (original method by ratana ty) More... | |
addAdminLocatorItems (bool $do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
handleIgnoredRequiredFields () | |
Handles ignored required fields by changing the required flag of form elements. More... | |
![]() | |
getObjectService () | |
assignObject () | |
setTitleAndDescription () | |
createActionDispatcherGUI () | |
initHeaderAction (?string $sub_type=null, ?int $sub_id=null) | |
Add header action menu. More... | |
insertHeaderAction (?ilObjectListGUI $list_gui=null) | |
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 More... | |
setAdminTabs () | |
set admin tabs More... | |
setLocator () | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
omitLocator (bool $omit=true) | |
addAdminLocatorItems (bool $do_not_add_object=false) | |
should be overwritten to add object specific items (repository items are preloaded) More... | |
getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form) | |
getTitleForCreationFormPage () | |
getCreationFormTitle () | |
initCreateForm (string $new_type) | |
didacticTemplatesToForm () | |
initDidacticTemplate (ilPropertyFormGUI $form) | |
retrieveAdditionalDidacticTemplateOptions () | |
addAdoptContentLinkToToolbar () | |
addImportButtonToToolbar () | |
addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar) | |
parseDidacticTemplateVar (string $var, string $type) | |
afterSave (ilObject $new_object) | |
Post (successful) object creation hook. More... | |
initEditForm () | |
initEditCustomForm (ilPropertyFormGUI $a_form) | |
Add custom fields to update form. More... | |
getEditFormValues () | |
getEditFormCustomValues (array &$a_values) | |
Add values to custom edit fields. More... | |
validateCustom (ilPropertyFormGUI $form) | |
Validate custom values (if not possible with checkInput()) More... | |
updateCustom (ilPropertyFormGUI $form) | |
Insert custom update form values into object. More... | |
afterUpdate () | |
Post (successful) object update hook. More... | |
routeImportCmdObject () | |
importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir) | |
deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir) | |
afterImport (ilObject $new_object) | |
Post (successful) object import hook. More... | |
setFormAction (string $cmd, string $form_action) | |
getReturnLocation (string $cmd, string $default_location="") | |
Get return location for command (command is method name without "Object", e.g. More... | |
setReturnLocation (string $cmd, string $location) | |
set specific return location for command More... | |
getTargetFrame (string $cmd, string $default_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. More... | |
setTargetFrame (string $cmd, string $target_frame) | |
Set specific target frame for command. More... | |
showPossibleSubObjects () | |
show possible sub objects (pull down menu) More... | |
getTabs () | |
overwrite in derived GUI class of your object type More... | |
redirectToRefId (int $ref_id, string $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 ["ref_id"] value of the request More... | |
getCenterColumnHTML () | |
Get center column. More... | |
getRightColumnHTML () | |
Display right column. More... | |
checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null) | |
checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null) | |
enableDragDropFileUpload () | |
Enables the file upload into this object by dropping files. More... | |
getCreatableObjectTypes () | |
buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,) | |
buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes) | |
Private Member Functions | |
moveFileToStorage () | |
checkUserWriteRight () | |
renderForm () | |
Private Attributes | |
ilPropertyFormGUI | $form_gui |
UserGUIRequest | $user_request |
ilHelpGUI | $help |
ilTabsGUI | $tabs |
ilMailMimeSenderFactory | $mail_sender_factory |
FileUpload | $uploads |
ResourceStorageServices | $irss |
ResourceStakeholder | $stakeholder |
ilUserProfile | $user_profile |
string | $requested_letter = '' |
string | $requested_baseClass = '' |
string | $requested_search = '' |
array | $back_target |
bool | $update |
array | $selectable_roles |
int | $default_role |
string | $default_layout_and_style |
ilUserDefinedFields | $user_defined_fields |
int | $usrf_ref_id |
Conductor | $legal_documents |
Class ilObjUserGUI.
Definition at line 36 of file class.ilObjUserGUI.php.
ilObjUserGUI::__buildFilterSelect | ( | ) |
Definition at line 1720 of file class.ilObjUserGUI.php.
References ilLegacyFormElementsUtil\formSelect(), ilSession\get(), and ILIAS\Repository\lng().
ilObjUserGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 235 of file class.ilObjUserGUI.php.
References ilUserDefinedFields\_getInstance().
ilObjUserGUI::__getDateSelect | ( | string | $a_type, |
string | $a_varname, | ||
string | $a_selected | ||
) |
Definition at line 1657 of file class.ilObjUserGUI.php.
References ilLegacyFormElementsUtil\formSelect(), ILIAS\Repository\int(), and null.
ilObjUserGUI::__sendProfileMail | ( | ) |
Definition at line 1783 of file class.ilObjUserGUI.php.
References $DIC, ilMail\_getInstallationSignature(), ilObjUser\_lookupId(), ANONYMOUS_USER_ID, exit, ILIAS\Repository\lng(), null, ILIAS\Repository\object(), and ilUtil\stripSlashes().
Referenced by loadUserDefinedDataFromForm().
ilObjUserGUI::__showUserDefinedFields | ( | ) |
Definition at line 248 of file class.ilObjUserGUI.php.
References ilUserDefinedFields\_getInstance(), ilLegacyFormElementsUtil\formSelect(), ilSession\get(), null, ILIAS\Repository\object(), ilLegacyFormElementsUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
ilObjUserGUI::__toUnix | ( | array | $a_time_arr | ) |
Definition at line 1703 of file class.ilObjUserGUI.php.
ilObjUserGUI::__unsetSessionVariables | ( | ) |
Definition at line 1715 of file class.ilObjUserGUI.php.
References ilSession\clear().
|
protected |
should be overwritten to add object specific items (repository items are preloaded)
Definition at line 1742 of file class.ilObjUserGUI.php.
References ilFrameTargetInfo\_getFrame(), ilObject\_lookupObjId(), ilObject\_lookupType(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), ILIAS\Repository\object(), ROLE_FOLDER_ID, SYSTEM_FOLDER_ID, and USER_FOLDER_ID.
ilObjUserGUI::applyFilterObject | ( | ) |
Definition at line 1641 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::assignSaveObject | ( | ) |
Definition at line 1536 of file class.ilObjUserGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\object(), SYSTEM_ROLE_ID, and SYSTEM_USER_ID.
ilObjUserGUI::cancelObject | ( | ) |
Definition at line 153 of file class.ilObjUserGUI.php.
References ilSession\clear(), and ILIAS\Repository\ctrl().
|
private |
Definition at line 1934 of file class.ilObjUserGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilObjUserFolder\ORG_OP_EDIT_USER_ACCOUNTS, and USER_FOLDER_ID.
Referenced by editObject(), and loadUserDefinedDataFromForm().
ilObjUserGUI::createObject | ( | ) |
Display user create form.
Definition at line 354 of file class.ilObjUserGUI.php.
References initCreate(), initForm(), ILIAS\Repository\lng(), and renderForm().
ilObjUserGUI::editObject | ( | ) |
Definition at line 514 of file class.ilObjUserGUI.php.
References checkUserWriteRight(), getValues(), initForm(), renderForm(), and USER_FOLDER_ID.
Referenced by removeUserPictureObject().
ilObjUserGUI::executeCommand | ( | ) |
Definition at line 107 of file class.ilObjUserGUI.php.
References ILIAS\Repository\ctrl(), ilLearningProgressBaseGUI\LP_CONTEXT_USER_FOLDER, ILIAS\Repository\object(), ilObjectGUI\prepareOutput(), and USER_FOLDER_ID.
ilObjUserGUI::getAdminTabs | ( | ) |
Definition at line 164 of file class.ilObjUserGUI.php.
References getTabs().
|
protected |
Definition at line 169 of file class.ilObjUserGUI.php.
References ilObjUserTracking\_enabledLearningProgress(), ilObjUserTracking\_enabledUserRelatedData(), ILIAS\Repository\ctrl(), ilSession\get(), ILIAS\Repository\help(), and ILIAS\Repository\lng().
Referenced by getAdminTabs().
ilObjUserGUI::getValues | ( | ) |
Definition at line 824 of file class.ilObjUserGUI.php.
References ilObjectGUI\$data, ilUserDefinedFields\_getInstance(), ilObjUser\_lookupLogin(), ilSessionReminder\byLoggedInUser(), ilDatePresentation\formatDate(), IL_CAL_DATE, IL_CAL_DATETIME, IL_CAL_UNIX, null, and ILIAS\Repository\object().
Referenced by editObject().
|
protected |
Handles ignored required fields by changing the required flag of form elements.
Definition at line 1896 of file class.ilObjUserGUI.php.
References ilUserDefinedFields\_getInstance(), and ilUserDefinedFields\getDefinitions().
Referenced by loadUserDefinedDataFromForm(), and saveObject().
ilObjUserGUI::initCreate | ( | ) |
Definition at line 292 of file class.ilObjUserGUI.php.
References ilObjRole\_getAssignUsersStatus(), ANONYMOUS_ROLE_ID, ILIAS\Repository\lng(), ILIAS\Repository\object(), ROLE_FOLDER_ID, SYSTEM_ROLE_ID, and USER_FOLDER_ID.
Referenced by createObject(), and saveObject().
ilObjUserGUI::initForm | ( | string | $a_mode | ) |
Init user form.
Definition at line 908 of file class.ilObjUserGUI.php.
References $_SERVER, Vendor\Package\$a, Vendor\Package\$e, ilObjectGUI\$id, $lang, XapiProxy\$req, ilObjectGUI\$settings, ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_getAuthModeName(), ilUserDefinedFields\_getInstance(), ilObjUser\_getLastHistoryDataByUserId(), ilObjUser\_getPersonalPicturePath(), ilAuthUtils\_isExternalAccountEnabled(), ilSystemStyleSettings\_lookupActivatedStyle(), ilSessionReminder\byLoggedInUser(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ilAuthUtils\getAuthModeTranslation(), ilUserDefinedFields\getChangeableLocalUserAdministrationDefinitions(), ilUserDefinedFields\getDefinitions(), ilCustomUserFieldsHelper\getInstance(), ilSecuritySettingsChecker\getPasswordRequirementsInfo(), ilSession\getSessionExpireValue(), IL_CAL_UNIX, ILIAS\Repository\int(), isSettingChangeable(), ilSessionReminder\LEAD_TIME_DISABLED, ILIAS\Repository\lng(), ILIAS\Repository\object(), ilDatePresentation\secondsToString(), ilImageFileInputGUI\setImage(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ILIAS\Repository\settings(), ilPasswordInputGUI\setUseStripSlashes(), ilRadioGroupInputGUI\setValue(), ilSessionReminder\SUGGESTED_LEAD_TIME, SYSTEM_ROLE_ID, SYSTEM_USER_ID, ILIAS\Repository\user(), USER_FOLDER_ID, and ilUtil\yn2tf().
Referenced by createObject(), editObject(), loadUserDefinedDataFromForm(), and saveObject().
|
protected |
Definition at line 1403 of file class.ilObjUserGUI.php.
References ilObjectGUI\$settings, null, ILIAS\Repository\settings(), and USER_FOLDER_ID.
Referenced by initForm(), loadUserDefinedDataFromForm(), loadValuesFromForm(), and saveObject().
Definition at line 661 of file class.ilObjUserGUI.php.
References Vendor\Package\$e, Vendor\Package\$f, ilObjectGUI\$object, ilObjectGUI\$user, __sendProfileMail(), ilAuthUtils\_allowPasswordModificationByAuthMode(), ilAuthUtils\_getAuthMode(), ilUserDefinedFields\_getInstance(), checkUserWriteRight(), ILIAS\Repository\ctrl(), ilUserDefinedFields\getChangeableLocalUserAdministrationDefinitions(), ilUserDefinedFields\getDefinitions(), handleIgnoredRequiredFields(), initForm(), ILIAS\Repository\int(), isSettingChangeable(), ILIAS\Repository\lng(), loadValuesFromForm(), ILIAS\Repository\object(), ilObjUser\PASSWD_PLAIN, renderForm(), ilObjUser\setUserDefinedData(), SYSTEM_ROLE_ID, SYSTEM_USER_ID, ilObject\update(), ilObjectGUI\updateObject(), uploadUserPicture(), ILIAS\Repository\user(), and USER_FOLDER_ID.
Referenced by saveObject().
|
protected |
Definition at line 528 of file class.ilObjUserGUI.php.
References ilObjectGUI\$object, ilObjectGUI\$user, ilObjUser\getActive(), IL_CAL_DATE, IL_CAL_UNIX, ILIAS\Repository\int(), isSettingChangeable(), null, ilObjUser\setActive(), ilObjUser\setAuthMode(), ilObjUser\setBirthday(), ilObjUser\setCity(), ilObjUser\setClientIP(), ilObjUser\setComment(), ilObjUser\setCountry(), ilObjUser\setDepartment(), ilObjUser\setEmail(), ilObjUser\setExternalAccount(), ilObjUser\setFax(), ilObjUser\setFirstname(), ilObjUser\setFullname(), ilObjUser\setGender(), ilObjUser\setGeneralInterests(), ilObjUser\setHobby(), ilObjUser\setInstitution(), ilObjUser\setLastname(), ilObjUser\setLatitude(), ilObjUser\setLocationZoom(), ilObjUser\setLogin(), ilObjUser\setLongitude(), ilObjUser\setLookingForHelp(), ilObjUser\setMatriculation(), ilObjUser\setOfferingHelp(), ilObjUser\setPhoneHome(), ilObjUser\setPhoneMobile(), ilObjUser\setPhoneOffice(), ilObjUser\setSecondEmail(), ilObjUser\setSelectedCountry(), ilObjUser\setStreet(), ilObjUser\setTimeLimitFrom(), ilObjUser\setTimeLimitOwner(), ilObjUser\setTimeLimitUnlimited(), ilObjUser\setTimeLimitUntil(), ilObjUser\setUTitle(), ilObjUser\setZipcode(), and ILIAS\Repository\user().
Referenced by loadUserDefinedDataFromForm(), and saveObject().
|
private |
Definition at line 1449 of file class.ilObjUserGUI.php.
References ILIAS\FileUpload\FileUpload\getResults(), null, and ILIAS\Repository\object().
Referenced by uploadUserPicture().
ilObjUserGUI::removeUserPictureObject | ( | ) |
Definition at line 1502 of file class.ilObjUserGUI.php.
References editObject(), ilFileUtils\getWebspaceDir(), and ILIAS\Repository\lng().
|
private |
Definition at line 1965 of file class.ilObjUserGUI.php.
Referenced by createObject(), editObject(), loadUserDefinedDataFromForm(), and saveObject().
ilObjUserGUI::resetFilterObject | ( | ) |
Definition at line 1649 of file class.ilObjUserGUI.php.
References roleassignmentObject().
ilObjUserGUI::roleassignmentObject | ( | ) |
Definition at line 1606 of file class.ilObjUserGUI.php.
References ILIAS\Repository\access(), ANONYMOUS_USER_ID, ilSession\get(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilSession\set(), and ILIAS\Repository\tabs().
Referenced by applyFilterObject(), and resetFilterObject().
ilObjUserGUI::saveObject | ( | ) |
save user data
Definition at line 369 of file class.ilObjUserGUI.php.
References ilAuthUtils\_isExternalAccountEnabled(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), handleIgnoredRequiredFields(), initCreate(), initForm(), ILIAS\Repository\int(), isSettingChangeable(), ILIAS\Repository\lng(), loadUserDefinedDataFromForm(), loadValuesFromForm(), ilObjUser\PASSWD_PLAIN, renderForm(), SYSTEM_ROLE_ID, SYSTEM_USER_ID, uploadUserPicture(), and ILIAS\Repository\user().
ilObjUserGUI::setBackTarget | ( | string | $a_text, |
string | $a_link | ||
) |
set back tab target
Definition at line 228 of file class.ilObjUserGUI.php.
|
protected |
Definition at line 139 of file class.ilObjUserGUI.php.
References ilUtil\getImagePath(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
|
protected |
upload user image (original method by ratana ty)
Definition at line 1421 of file class.ilObjUserGUI.php.
References ILIAS\Repository\lng(), moveFileToStorage(), and null.
Referenced by loadUserDefinedDataFromForm(), and saveObject().
|
private |
Definition at line 56 of file class.ilObjUserGUI.php.
|
private |
Definition at line 60 of file class.ilObjUserGUI.php.
|
private |
Definition at line 59 of file class.ilObjUserGUI.php.
|
private |
Definition at line 38 of file class.ilObjUserGUI.php.
|
private |
Definition at line 40 of file class.ilObjUserGUI.php.
|
private |
Definition at line 45 of file class.ilObjUserGUI.php.
|
private |
Definition at line 64 of file class.ilObjUserGUI.php.
|
private |
Definition at line 42 of file class.ilObjUserGUI.php.
|
private |
Definition at line 51 of file class.ilObjUserGUI.php.
|
private |
Definition at line 50 of file class.ilObjUserGUI.php.
|
private |
Definition at line 52 of file class.ilObjUserGUI.php.
|
private |
Definition at line 58 of file class.ilObjUserGUI.php.
|
private |
Definition at line 46 of file class.ilObjUserGUI.php.
|
private |
Definition at line 41 of file class.ilObjUserGUI.php.
|
private |
Definition at line 57 of file class.ilObjUserGUI.php.
|
private |
Definition at line 44 of file class.ilObjUserGUI.php.
|
private |
Definition at line 61 of file class.ilObjUserGUI.php.
|
private |
Definition at line 48 of file class.ilObjUserGUI.php.
|
private |
Definition at line 39 of file class.ilObjUserGUI.php.
|
private |
Definition at line 63 of file class.ilObjUserGUI.php.