|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
GUI class for personal profile. More...
Collaboration diagram for ilPersonalProfileGUI:Public Member Functions | |
| __construct (\ilTermsOfServiceDocumentEvaluation $termsOfServiceEvaluation=null, \ilTermsOfServiceHelper $termsOfServiceHelper=null) | |
| constructor More... | |
| executeCommand () | |
| execute command More... | |
| workWithUserSetting (string $setting) | |
| userSettingVisible (string $setting) | |
| userSettingEnabled (string $setting) | |
| uploadUserPicture () | |
| Upload user image. More... | |
| removeUserPicture () | |
| remove user image More... | |
| saveProfile () | |
| save user profile data More... | |
| showProfile () | |
| show profile form More... | |
| addLocationToForm (ilPropertyFormGUI $a_form, ilObjUser $a_user) | |
| Add location fields to form if activated. More... | |
| setTabs () | |
| __showOtherInformations () | |
| __showUserDefinedFields () | |
| __checkUserDefinedRequiredFields () | |
| setHeader () | |
| Set header. More... | |
| showPersonalData ($a_no_init=false, $a_migration_started=false) | |
| Personal data form. More... | |
| initPersonalDataForm () | |
| Init personal form. More... | |
| savePersonalData () | |
| Save personal data form. More... | |
| goToEmailConfirmation () | |
| changeEmail () | |
| showPublicProfile ($a_no_init=false) | |
| Public profile form. More... | |
| initPublicProfileForm () | |
| Init public profile form. More... | |
| showPublicProfileFields (ilPropertyformGUI $form, array $prefs, $parent=null, $anonymized=false, $key_suffix="") | |
| Add fields to form. More... | |
| savePublicProfile () | |
| Save public profile form. More... | |
| showExportImport () | |
| Show export/import. More... | |
| exportPersonalData () | |
| Export personal data. More... | |
| downloadPersonalData () | |
| Download personal data export file. More... | |
| importPersonalDataSelection () | |
| Import personal data selection. More... | |
| initPersonalDataImportForm () | |
| Init personal data import form. More... | |
| importPersonalData () | |
| Import personal data. More... | |
Data Fields | |
| const | CHANGE_EMAIL_CMD = 'changeEmail' |
| $tpl | |
| $user_defined_fields = null | |
Protected Member Functions | |
| showUserAgreement () | |
| showConsentWithdrawalConfirmation () | |
| cancelWithdrawal () | |
| withdrawAcceptance () | |
| getProfilePortfolio () | |
| has profile set to a portfolio? More... | |
| getCheckedValues () | |
| Get checked values. More... | |
| showChecklist ($active_step) | |
| Show checklist. More... | |
Private Member Functions | |
| emailChanged () | |
| emailCompletionForced () | |
| addEmailChangeModal () | |
| loginChanged () | |
| updateLoginOrSetErrorMessages () | |
| savePersonalDataForm () | |
Private Attributes | |
| const | PERSONAL_DATA_FORM_ID = 'pd' |
| $eventHandler | |
| $change_mail_token_repo | |
GUI class for personal profile.
@ilCtrl_Calls ilPersonalProfileGUI: ilPublicUserProfileGUI, ilUserPrivacySettingsGUI
Definition at line 33 of file class.ilPersonalProfileGUI.php.
| ilPersonalProfileGUI::__construct | ( | \ilTermsOfServiceDocumentEvaluation | $termsOfServiceEvaluation = null, |
| \ilTermsOfServiceHelper | $termsOfServiceHelper = null |
||
| ) |
constructor
| \ilTermsOfServiceDocumentEvaluation | null | $termsOfServiceEvaluation | |
| ilTermsOfServiceHelper | null | $termsOfServiceHelper |
Definition at line 95 of file class.ilPersonalProfileGUI.php.
References $DIC, $termsOfServiceEvaluation, $termsOfServiceHelper, ilUserDefinedFields\_getInstance(), and user().
Here is the call graph for this function:| ilPersonalProfileGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 827 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
Here is the caller graph for this function:| ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 762 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
Here is the call graph for this function:| ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 772 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $name, ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
Here is the call graph for this function:
|
private |
Definition at line 1012 of file class.ilPersonalProfileGUI.php.
References PERSONAL_DATA_FORM_ID.
| ilPersonalProfileGUI::addLocationToForm | ( | ilPropertyFormGUI | $a_form, |
| ilObjUser | $a_user | ||
| ) |
Add location fields to form if activated.
| ilPropertyFormGUI | $a_form | |
| ilObjUser | $a_user |
Definition at line 665 of file class.ilPersonalProfileGUI.php.
References $DIC, ilPropertyFormGUI\addItem(), ilObjUser\getCity(), ilObjUser\getCountry(), ilMapUtil\getDefaultSettings(), ilObjUser\getLatitude(), ilObjUser\getLocationZoom(), ilObjUser\getLongitude(), ilObjUser\getStreet(), and ilMapUtil\isActivated().
Referenced by initPersonalDataForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 604 of file class.ilPersonalProfileGUI.php.
References ilSession\get(), ilSession\set(), and user().
Here is the call graph for this function:| ilPersonalProfileGUI::changeEmail | ( | ) |
Definition at line 1174 of file class.ilPersonalProfileGUI.php.
References $_GET, $token, and user().
Here is the call graph for this function:| ilPersonalProfileGUI::downloadPersonalData | ( | ) |
|
private |
Definition at line 985 of file class.ilPersonalProfileGUI.php.
|
private |
Definition at line 998 of file class.ilPersonalProfileGUI.php.
References user().
Referenced by savePersonalDataForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::executeCommand | ( | ) |
execute command
Definition at line 143 of file class.ilPersonalProfileGUI.php.
References $_GET, $DIC, $ilUser, $tpl, setHeader(), setTabs(), showChecklist(), and ilProfileChecklistStatus\STEP_VISIBILITY_OPTIONS.
Here is the call graph for this function:| ilPersonalProfileGUI::exportPersonalData | ( | ) |
Export personal data.
Definition at line 1639 of file class.ilPersonalProfileGUI.php.
|
protected |
Get checked values.
Definition at line 1578 of file class.ilPersonalProfileGUI.php.
References $_POST.
|
protected |
has profile set to a portfolio?
Definition at line 1226 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, and ilObjPortfolio\getDefaultPortfolio().
Here is the call graph for this function:| ilPersonalProfileGUI::goToEmailConfirmation | ( | ) |
Definition at line 1071 of file class.ilPersonalProfileGUI.php.
References $token, initPersonalDataForm(), savePersonalDataForm(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), showPersonalData(), and user().
Here is the call graph for this function:| ilPersonalProfileGUI::importPersonalData | ( | ) |
Import personal data.
return
Definition at line 1742 of file class.ilPersonalProfileGUI.php.
| ilPersonalProfileGUI::importPersonalDataSelection | ( | ) |
Import personal data selection.
return
Definition at line 1672 of file class.ilPersonalProfileGUI.php.
| ilPersonalProfileGUI::initPersonalDataForm | ( | ) |
Init personal form.
Definition at line 913 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $lng, addLocationToForm(), and ilCustomUserFieldsHelper\getInstance().
Referenced by goToEmailConfirmation(), savePersonalData(), and showPersonalData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::initPersonalDataImportForm | ( | ) |
Init personal data import form.
return
Definition at line 1696 of file class.ilPersonalProfileGUI.php.
| ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
| int | $a_mode | Edit Mode |
Definition at line 1244 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, and $lng.
|
private |
Definition at line 1033 of file class.ilPersonalProfileGUI.php.
References $login.
| ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 280 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, and saveProfile().
Here is the call graph for this function:| ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 964 of file class.ilPersonalProfileGUI.php.
References initPersonalDataForm(), savePersonalDataForm(), showPersonalData(), and ilProfileChecklistStatus\STEP_PROFILE_DATA.
Here is the call graph for this function:
|
private |
Definition at line 1089 of file class.ilPersonalProfileGUI.php.
References Vendor\Package\$f, emailCompletionForced(), IL_CAL_DATE, and user().
Referenced by goToEmailConfirmation(), and savePersonalData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::saveProfile | ( | ) |
save user profile data
Definition at line 296 of file class.ilPersonalProfileGUI.php.
References $_POST, $DIC, $GLOBALS, $ilUser, __checkUserDefinedRequiredFields(), ilUtil\is_email(), ilUtil\sendFailure(), settings(), showProfile(), ilUtil\stripSlashes(), ilLuceneIndexer\updateLuceneIndex(), and workWithUserSetting().
Referenced by removeUserPicture().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::savePublicProfile | ( | ) |
Save public profile form.
Definition at line 1484 of file class.ilPersonalProfileGUI.php.
References $_POST, $_SESSION, $DIC, $GLOBALS, $ilUser, $lng, $tpl, ilSession\get(), ilBadgeHandler\getInstance(), ilUtil\redirect(), ilSession\set(), ilProfileChecklistStatus\STEP_PUBLISH_OPTIONS, ilLuceneIndexer\updateLuceneIndex(), and ilBadgeAssignment\updatePositions().
Here is the call graph for this function:| ilPersonalProfileGUI::setHeader | ( | ) |
Set header.
Definition at line 841 of file class.ilPersonalProfileGUI.php.
Referenced by executeCommand(), and showPersonalData().
Here is the caller graph for this function:| ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 720 of file class.ilPersonalProfileGUI.php.
References $DIC.
Referenced by executeCommand().
Here is the caller graph for this function:
|
protected |
Show checklist.
| int |
Definition at line 1776 of file class.ilPersonalProfileGUI.php.
References $tpl.
Referenced by executeCommand(), and showPersonalData().
Here is the caller graph for this function:
|
protected |
Definition at line 583 of file class.ilPersonalProfileGUI.php.
References user().
Here is the call graph for this function:| ilPersonalProfileGUI::showExportImport | ( | ) |
Show export/import.
return
Definition at line 1598 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $tpl, and ilLinkButton\getInstance().
Here is the call graph for this function:| ilPersonalProfileGUI::showPersonalData | ( | $a_no_init = false, |
|
$a_migration_started = false |
|||
| ) |
Personal data form.
Definition at line 855 of file class.ilPersonalProfileGUI.php.
References $_GET, $ctrl, $DIC, $ilUser, $lng, initPersonalDataForm(), ilUtil\sendInfo(), setHeader(), showChecklist(), and ilProfileChecklistStatus\STEP_PROFILE_DATA.
Referenced by goToEmailConfirmation(), savePersonalData(), and showProfile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 536 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
Referenced by saveProfile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPersonalProfileGUI::showPublicProfile | ( | $a_no_init = false | ) |
Public profile form.
Definition at line 1204 of file class.ilPersonalProfileGUI.php.
References ilProfileChecklistStatus\STEP_PUBLISH_OPTIONS.
| ilPersonalProfileGUI::showPublicProfileFields | ( | ilPropertyformGUI | $form, |
| array | $prefs, | ||
$parent = null, |
|||
$anonymized = false, |
|||
$key_suffix = "" |
|||
| ) |
Add fields to form.
| ilPropertyformGUI | $form | |
| array | $prefs | |
| object | $parent | |
| bool | $a_anonymized |
Definition at line 1317 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, ilLink\_getLink(), ilObjUser\_getPersonalPicturePath(), ilDatePresentation\formatDate(), ilBadgeHandler\getInstance(), ilBadgeAssignment\getInstancesByUserId(), IL_CAL_DATE, ilMapUtil\isActivated(), and user().
Here is the call graph for this function:
|
protected |
Definition at line 541 of file class.ilPersonalProfileGUI.php.
References $tpl, ilSystemSupportContacts\getMailsToAddress(), ilTermsOfServiceHelper\isEnabled(), ilUtil\prepareFormOutput(), and user().
Here is the call graph for this function:
|
private |
Definition at line 1044 of file class.ilPersonalProfileGUI.php.
References Vendor\Package\$e, $login, ilObjUser\_loginExists(), ilUtil\isLogin(), and user().
Here is the call graph for this function:| ilPersonalProfileGUI::uploadUserPicture | ( | ) |
Upload user image.
Definition at line 213 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, ilUtil\escapeShellArg(), ilUtil\execConvert(), ilUtil\getWebspaceDir(), ilUtil\isConvertVersionAtLeast(), ilUtil\sendFailure(), and workWithUserSetting().
Here is the call graph for this function:| ilPersonalProfileGUI::userSettingEnabled | ( | string | $setting | ) |
| string | $setting |
Definition at line 205 of file class.ilPersonalProfileGUI.php.
| ilPersonalProfileGUI::userSettingVisible | ( | string | $setting | ) |
| string | $setting |
Definition at line 196 of file class.ilPersonalProfileGUI.php.
Referenced by __showOtherInformations().
Here is the caller graph for this function:
|
protected |
Definition at line 621 of file class.ilPersonalProfileGUI.php.
References AUTH_LDAP, AUTH_LOCAL, ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), and user().
Here is the call graph for this function:| ilPersonalProfileGUI::workWithUserSetting | ( | string | $setting | ) |
| string | $setting |
Definition at line 187 of file class.ilPersonalProfileGUI.php.
Referenced by saveProfile(), and uploadUserPicture().
Here is the caller graph for this function:
|
protected |
Definition at line 86 of file class.ilPersonalProfileGUI.php.
|
private |
Definition at line 88 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 72 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 82 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 53 of file class.ilPersonalProfileGUI.php.
Referenced by showPersonalData().
|
protected |
Definition at line 87 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 67 of file class.ilPersonalProfileGUI.php.
|
private |
Definition at line 41 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 48 of file class.ilPersonalProfileGUI.php.
Referenced by initPersonalDataForm(), and showPersonalData().
|
protected |
Definition at line 58 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 61 of file class.ilPersonalProfileGUI.php.
Referenced by __construct().
|
protected |
Definition at line 64 of file class.ilPersonalProfileGUI.php.
Referenced by __construct().
| ilPersonalProfileGUI::$tpl |
Definition at line 43 of file class.ilPersonalProfileGUI.php.
Referenced by executeCommand(), and showUserAgreement().
|
protected |
Definition at line 84 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 85 of file class.ilPersonalProfileGUI.php.
| ilPersonalProfileGUI::$user_defined_fields = null |
Definition at line 55 of file class.ilPersonalProfileGUI.php.
|
protected |
Definition at line 77 of file class.ilPersonalProfileGUI.php.
| const ilPersonalProfileGUI::CHANGE_EMAIL_CMD = 'changeEmail' |
Definition at line 36 of file class.ilPersonalProfileGUI.php.
|
private |
Definition at line 35 of file class.ilPersonalProfileGUI.php.
Referenced by addEmailChangeModal().