ILIAS
release_8 Revision v8.19
|
GUI class for personal profile. More...
Data Fields | |
const | CHANGE_EMAIL_CMD = 'changeEmail' |
ilGlobalTemplateInterface | $tpl |
ilUserDefinedFields | $user_defined_fields = null |
Protected Member Functions | |
showUserAgreement () | |
showConsentWithdrawalConfirmation () | |
cancelWithdrawal () | |
withdrawAcceptance () | |
getProfilePortfolio () | |
has profile set to a portfolio? More... | |
getCheckedValues () | |
showChecklist (int $active_step) | |
Private Member Functions | |
convertUserPicture (string $uploaded_file, string $image_dir) | |
emailChanged () | |
emailCompletionForced () | |
addEmailChangeModal () | |
loginChanged () | |
updateLoginOrSetErrorMessages () | |
savePersonalDataForm () | |
tempStorePicture () | |
Private Attributes | |
const | PERSONAL_DATA_FORM_ID = 'pd' |
ilAppEventHandler | $eventHandler |
RequestInterface | $request |
ProfileChangeMailTokenRepository | $change_mail_token_repo |
GUI class for personal profile.
Definition at line 31 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 503 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 513 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $name, ilLegacyFormElementsUtil\formSelect(), ilLegacyFormElementsUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
|
private |
Definition at line 733 of file class.ilPersonalProfileGUI.php.
References $id, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS\Repository\lng(), and ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode().
Referenced by savePersonalData().
ilPersonalProfileGUI::addLocationToForm | ( | ilPropertyFormGUI | $a_form, |
ilObjUser | $a_user | ||
) |
Add location fields to form if activated.
Definition at line 403 of file class.ilPersonalProfileGUI.php.
References $DIC, ilPropertyFormGUI\addItem(), ilObjUser\getCity(), ilObjUser\getCountry(), ilMapUtil\getDefaultSettings(), ilObjUser\getLatitude(), ilObjUser\getLocationZoom(), ilObjUser\getLongitude(), ilObjUser\getStreet(), ILIAS\Repository\int(), ilMapUtil\isActivated(), ILIAS\Repository\lng(), and ilLocationInputGUI\setLatitude().
Referenced by initPersonalDataForm().
|
protected |
Definition at line 345 of file class.ilPersonalProfileGUI.php.
References ILIAS\Repository\ctrl(), ilSession\get(), ILIAS\Repository\lng(), ilInitialisation\redirectToStartingPage(), ilSession\set(), and ILIAS\Repository\user().
ilPersonalProfileGUI::changeEmail | ( | ) |
Definition at line 895 of file class.ilPersonalProfileGUI.php.
References $token, ILIAS\Repository\lng(), showPublicProfile(), and ILIAS\Repository\user().
|
private |
Definition at line 224 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, ilShellUtil\escapeShellArg(), ilShellUtil\execConvert(), and ilShellUtil\isConvertVersionAtLeast().
Referenced by uploadUserPicture().
ilPersonalProfileGUI::downloadPersonalData | ( | ) |
|
private |
Definition at line 708 of file class.ilPersonalProfileGUI.php.
References ILIAS\Repository\form(), and ILIAS\Repository\user().
Referenced by savePersonalData().
|
private |
Definition at line 719 of file class.ilPersonalProfileGUI.php.
References ILIAS\Repository\user().
Referenced by savePersonalData(), and savePersonalDataForm().
ilPersonalProfileGUI::executeCommand | ( | ) |
Definition at line 112 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, ILIAS\Repository\ctrl(), ilGlobalTemplateInterface\printToStdout(), ilPublicUserProfileGUI\setBackUrl(), setHeader(), setTabs(), showChecklist(), and ilProfileChecklistStatus\STEP_VISIBILITY_OPTIONS.
ilPersonalProfileGUI::exportPersonalData | ( | ) |
Definition at line 1325 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 1258 of file class.ilPersonalProfileGUI.php.
References $post, and ILIAS\Repository\form().
Referenced by savePublicProfile().
|
protected |
has profile set to a portfolio?
Definition at line 936 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, and ilObjPortfolio\getDefaultPortfolio().
Referenced by initPublicProfileForm().
ilPersonalProfileGUI::goToEmailConfirmation | ( | ) |
Definition at line 792 of file class.ilPersonalProfileGUI.php.
References $token, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), initPersonalDataForm(), loginChanged(), savePersonalDataForm(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), showPersonalData(), updateLoginOrSetErrorMessages(), and ILIAS\Repository\user().
ilPersonalProfileGUI::importPersonalData | ( | ) |
Definition at line 1403 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $tpl, ILIAS\Repository\form(), initPersonalDataImportForm(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\printToStdout(), ilGlobalTemplateInterface\setContent(), and setHeader().
ilPersonalProfileGUI::importPersonalDataSelection | ( | ) |
Definition at line 1349 of file class.ilPersonalProfileGUI.php.
References $DIC, $tpl, ILIAS\Repository\form(), initPersonalDataImportForm(), ilGlobalTemplateInterface\printToStdout(), ilGlobalTemplateInterface\setContent(), and setHeader().
ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Definition at line 639 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, addLocationToForm(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilCustomUserFieldsHelper\getInstance(), and ilLanguage\txt().
Referenced by goToEmailConfirmation(), savePersonalData(), and showPersonalData().
ilPersonalProfileGUI::initPersonalDataImportForm | ( | ) |
Definition at line 1365 of file class.ilPersonalProfileGUI.php.
References $DIC, $lng, ILIAS\Repository\form(), ILIAS\Repository\lng(), ilFormPropertyGUI\setRequired(), and ilLanguage\txt().
Referenced by importPersonalData(), and importPersonalDataSelection().
ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Definition at line 949 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, $lng, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), getProfilePortfolio(), ILIAS\Repository\lng(), ilCustomInputGUI\setHtml(), ilFormPropertyGUI\setInfo(), showPublicProfileFields(), and ilLanguage\txt().
Referenced by savePublicProfile(), and showPublicProfile().
|
private |
Definition at line 754 of file class.ilPersonalProfileGUI.php.
References ILIAS\Repository\form(), and ILIAS\Repository\user().
Referenced by goToEmailConfirmation(), and savePersonalData().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
Definition at line 262 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::savePersonalData | ( | ) |
Definition at line 686 of file class.ilPersonalProfileGUI.php.
References addEmailChangeModal(), ILIAS\Repository\ctrl(), emailChanged(), emailCompletionForced(), ILIAS\Repository\form(), initPersonalDataForm(), ILIAS\Repository\lng(), loginChanged(), savePersonalDataForm(), showPersonalData(), ilProfileChecklistStatus\STEP_PROFILE_DATA, tempStorePicture(), and updateLoginOrSetErrorMessages().
|
private |
Definition at line 810 of file class.ilPersonalProfileGUI.php.
References Vendor\Package\$f, $location, emailCompletionForced(), ILIAS\Repository\form(), IL_CAL_DATE, ilMapUtil\isActivated(), ilUtil\stripSlashes(), uploadUserPicture(), and ILIAS\Repository\user().
Referenced by goToEmailConfirmation(), and savePersonalData().
ilPersonalProfileGUI::savePublicProfile | ( | ) |
Definition at line 1174 of file class.ilPersonalProfileGUI.php.
References $DIC, $GLOBALS, $ilUser, ILIAS\LTI\ToolProvider\$key, $lng, $tpl, ILIAS\Repository\form(), ilSession\get(), getCheckedValues(), ILIAS\Survey\Mode\getId(), ilBadgeHandler\getInstance(), initPublicProfileForm(), ilUtil\redirect(), ilSession\set(), ilProfileChecklistStatus\STEP_PUBLISH_OPTIONS, ilLanguage\txt(), ilLuceneIndexer\updateLuceneIndex(), and ilBadgeAssignment\updatePositions().
ilPersonalProfileGUI::setHeader | ( | ) |
Definition at line 571 of file class.ilPersonalProfileGUI.php.
References ILIAS\Repository\lng().
Referenced by executeCommand(), importPersonalData(), importPersonalDataSelection(), showExportImport(), showPersonalData(), and showPublicProfile().
ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 461 of file class.ilPersonalProfileGUI.php.
References $DIC, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by executeCommand().
|
protected |
Definition at line 1432 of file class.ilPersonalProfileGUI.php.
References $tpl, and ilGlobalTemplateInterface\setRightContent().
Referenced by executeCommand(), showPersonalData(), and showPublicProfile().
|
protected |
Definition at line 324 of file class.ilPersonalProfileGUI.php.
References ILIAS\Repository\lng(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
ilPersonalProfileGUI::showExportImport | ( | ) |
Definition at line 1289 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $tpl, ilLinkButton\getInstance(), ILIAS\Repository\lng(), ilGlobalTemplateInterface\printToStdout(), and setHeader().
ilPersonalProfileGUI::showPersonalData | ( | bool | $a_no_init = false , |
bool | $a_migration_started = false |
||
) |
Definition at line 582 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, ILIAS\Repository\form(), ilCtrl\getLinkTarget(), initPersonalDataForm(), setHeader(), showChecklist(), ilProfileChecklistStatus\STEP_PROFILE_DATA, and ilLanguage\txt().
Referenced by goToEmailConfirmation(), savePersonalData(), and showProfile().
ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 275 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
ilPersonalProfileGUI::showPublicProfile | ( | bool | $a_no_init = false | ) |
Definition at line 916 of file class.ilPersonalProfileGUI.php.
References $tabs, ilTabsGUI\activateTab(), ILIAS\Repository\form(), initPublicProfileForm(), setHeader(), showChecklist(), and ilProfileChecklistStatus\STEP_PUBLISH_OPTIONS.
Referenced by changeEmail().
ilPersonalProfileGUI::showPublicProfileFields | ( | ilPropertyFormGUI | $form, |
array | $prefs, | ||
?object | $parent = null , |
||
bool | $anonymized = false , |
||
string | $key_suffix = "" |
||
) |
Definition at line 1013 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, ILIAS\LTI\ToolProvider\$key, ilLink\_getLink(), ilObjUser\_getPersonalPicturePath(), ilPropertyFormGUI\addItem(), ilDatePresentation\formatDate(), ilBadgeHandler\getInstance(), ilBadgeAssignment\getInstancesByUserId(), IL_CAL_DATE, ILIAS\Repository\int(), ilMapUtil\isActivated(), ILIAS\Repository\lng(), ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setMultiValues(), ilNonEditableValueGUI\setValue(), ILIAS\Repository\user(), and userSettingVisible().
Referenced by initPublicProfileForm().
|
protected |
Definition at line 280 of file class.ilPersonalProfileGUI.php.
References ilGlobalTemplateInterface\get(), ilSystemSupportContacts\getMailsToAddress(), ilTermsOfServiceHelper\isEnabled(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), ilGlobalTemplateInterface\setVariable(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
|
private |
Definition at line 1438 of file class.ilPersonalProfileGUI.php.
References ILIAS\Repository\form().
Referenced by savePersonalData().
|
private |
Definition at line 765 of file class.ilPersonalProfileGUI.php.
References Vendor\Package\$e, ilObjUser\_loginExists(), ILIAS\Repository\form(), ilUtil\isLogin(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
Referenced by goToEmailConfirmation(), and savePersonalData().
ilPersonalProfileGUI::uploadUserPicture | ( | ) |
Definition at line 164 of file class.ilPersonalProfileGUI.php.
References $data, $DIC, $ilUser, $img, convertUserPicture(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilFileUtils\getWebspaceDir(), ilFileUtils\ilTempnam(), ILIAS\Repository\lng(), ilFileUtils\makeDir(), and workWithUserSetting().
Referenced by savePersonalDataForm().
ilPersonalProfileGUI::userSettingEnabled | ( | string | $setting | ) |
Definition at line 159 of file class.ilPersonalProfileGUI.php.
ilPersonalProfileGUI::userSettingVisible | ( | string | $setting | ) |
Definition at line 154 of file class.ilPersonalProfileGUI.php.
Referenced by __showOtherInformations(), and showPublicProfileFields().
|
protected |
Definition at line 362 of file class.ilPersonalProfileGUI.php.
References ilAuthUtils\AUTH_LDAP, ilAuthUtils\AUTH_LOCAL, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), and ILIAS\Repository\user().
ilPersonalProfileGUI::workWithUserSetting | ( | string | $setting | ) |
Definition at line 149 of file class.ilPersonalProfileGUI.php.
Referenced by uploadUserPicture().
|
protected |
Definition at line 47 of file class.ilPersonalProfileGUI.php.
|
private |
Definition at line 59 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 53 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 55 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 46 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 56 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 52 of file class.ilPersonalProfileGUI.php.
|
private |
Definition at line 35 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 36 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 45 of file class.ilPersonalProfileGUI.php.
Referenced by initPersonalDataImportForm(), initPublicProfileForm(), and savePublicProfile().
|
protected |
Definition at line 37 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 41 of file class.ilPersonalProfileGUI.php.
|
private |
Definition at line 57 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 39 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 49 of file class.ilPersonalProfileGUI.php.
Referenced by showPublicProfile().
|
protected |
Definition at line 50 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 51 of file class.ilPersonalProfileGUI.php.
ilGlobalTemplateInterface ilPersonalProfileGUI::$tpl |
Definition at line 44 of file class.ilPersonalProfileGUI.php.
Referenced by importPersonalData(), importPersonalDataSelection(), savePublicProfile(), showChecklist(), and showExportImport().
|
protected |
Definition at line 42 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 43 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 38 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 40 of file class.ilPersonalProfileGUI.php.
ilUserDefinedFields ilPersonalProfileGUI::$user_defined_fields = null |
Definition at line 48 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 54 of file class.ilPersonalProfileGUI.php.
const ilPersonalProfileGUI::CHANGE_EMAIL_CMD = 'changeEmail' |
Definition at line 34 of file class.ilPersonalProfileGUI.php.
Referenced by ilObjUserGUI\addAdminLocatorItems().
|
private |
Definition at line 33 of file class.ilPersonalProfileGUI.php.