ILIAS
release_7 Revision v7.30-3-g800a261c036
|
GUI class for personal profile. More...
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.
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().
ilPersonalProfileGUI::__checkUserDefinedRequiredFields | ( | ) |
Definition at line 827 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by saveProfile().
ilPersonalProfileGUI::__showOtherInformations | ( | ) |
Definition at line 762 of file class.ilPersonalProfileGUI.php.
References userSettingVisible().
ilPersonalProfileGUI::__showUserDefinedFields | ( | ) |
Definition at line 772 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $name, ilUtil\formSelect(), ilUtil\prepareFormOutput(), and UDF_TYPE_TEXT.
|
private |
Definition at line 1012 of file class.ilPersonalProfileGUI.php.
References ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode().
Referenced by savePersonalData().
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(), ilMapUtil\isActivated(), and ilLocationInputGUI\setLatitude().
Referenced by initPersonalDataForm().
|
protected |
Definition at line 604 of file class.ilPersonalProfileGUI.php.
References ilSession\get(), ilSession\set(), and user().
ilPersonalProfileGUI::changeEmail | ( | ) |
Definition at line 1174 of file class.ilPersonalProfileGUI.php.
References $_GET, $token, showPublicProfile(), and user().
ilPersonalProfileGUI::downloadPersonalData | ( | ) |
Download personal data export file.
Definition at line 1657 of file class.ilPersonalProfileGUI.php.
|
private |
Definition at line 985 of file class.ilPersonalProfileGUI.php.
References user().
Referenced by savePersonalData().
|
private |
Definition at line 998 of file class.ilPersonalProfileGUI.php.
References user().
Referenced by savePersonalData(), and savePersonalDataForm().
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.
ilPersonalProfileGUI::exportPersonalData | ( | ) |
|
protected |
Get checked values.
Definition at line 1578 of file class.ilPersonalProfileGUI.php.
References $_POST.
Referenced by savePublicProfile().
|
protected |
has profile set to a portfolio?
Definition at line 1226 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, and ilObjPortfolio\getDefaultPortfolio().
Referenced by initPublicProfileForm().
ilPersonalProfileGUI::goToEmailConfirmation | ( | ) |
Definition at line 1071 of file class.ilPersonalProfileGUI.php.
References $token, initPersonalDataForm(), loginChanged(), savePersonalDataForm(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), showPersonalData(), updateLoginOrSetErrorMessages(), and user().
ilPersonalProfileGUI::importPersonalData | ( | ) |
Import personal data.
Definition at line 1742 of file class.ilPersonalProfileGUI.php.
References $_POST, $DIC, $ilUser, $tpl, initPersonalDataImportForm(), and setHeader().
ilPersonalProfileGUI::importPersonalDataSelection | ( | ) |
Import personal data selection.
Definition at line 1672 of file class.ilPersonalProfileGUI.php.
References $DIC, $lng, $tpl, initPersonalDataImportForm(), and setHeader().
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().
ilPersonalProfileGUI::initPersonalDataImportForm | ( | ) |
Init personal data import form.
Definition at line 1696 of file class.ilPersonalProfileGUI.php.
References $DIC, $lng, ilFormPropertyGUI\setRequired(), and ilFormPropertyGUI\setTitle().
Referenced by importPersonalData(), and importPersonalDataSelection().
ilPersonalProfileGUI::initPublicProfileForm | ( | ) |
Init public profile form.
int | $a_mode | Edit Mode |
Definition at line 1244 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilSetting, $ilUser, $lng, getProfilePortfolio(), ilFormPropertyGUI\setInfo(), and showPublicProfileFields().
Referenced by savePublicProfile(), and showPublicProfile().
|
private |
Definition at line 1033 of file class.ilPersonalProfileGUI.php.
References $login, and user().
Referenced by goToEmailConfirmation(), and savePersonalData().
ilPersonalProfileGUI::removeUserPicture | ( | ) |
remove user image
Definition at line 280 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, and saveProfile().
ilPersonalProfileGUI::savePersonalData | ( | ) |
Save personal data form.
Definition at line 964 of file class.ilPersonalProfileGUI.php.
References addEmailChangeModal(), emailChanged(), emailCompletionForced(), initPersonalDataForm(), loginChanged(), savePersonalDataForm(), showPersonalData(), ilProfileChecklistStatus\STEP_PROFILE_DATA, and updateLoginOrSetErrorMessages().
|
private |
Definition at line 1089 of file class.ilPersonalProfileGUI.php.
References Vendor\Package\$f, $location, emailCompletionForced(), IL_CAL_DATE, ilMapUtil\isActivated(), ilUtil\stripSlashes(), uploadUserPicture(), and user().
Referenced by goToEmailConfirmation(), and savePersonalData().
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().
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(), getCheckedValues(), ilBadgeHandler\getInstance(), initPublicProfileForm(), ilUtil\redirect(), ilSession\set(), ilProfileChecklistStatus\STEP_PUBLISH_OPTIONS, ilLuceneIndexer\updateLuceneIndex(), and ilBadgeAssignment\updatePositions().
ilPersonalProfileGUI::setHeader | ( | ) |
Set header.
Definition at line 841 of file class.ilPersonalProfileGUI.php.
Referenced by executeCommand(), importPersonalData(), importPersonalDataSelection(), showExportImport(), showPersonalData(), and showPublicProfile().
ilPersonalProfileGUI::setTabs | ( | ) |
Definition at line 720 of file class.ilPersonalProfileGUI.php.
References $DIC.
Referenced by executeCommand().
|
protected |
Show checklist.
int |
Definition at line 1776 of file class.ilPersonalProfileGUI.php.
References $tpl.
Referenced by executeCommand(), showPersonalData(), and showPublicProfile().
|
protected |
Definition at line 583 of file class.ilPersonalProfileGUI.php.
References user().
ilPersonalProfileGUI::showExportImport | ( | ) |
Show export/import.
Definition at line 1598 of file class.ilPersonalProfileGUI.php.
References $DIC, $ilUser, $tpl, ilLinkButton\getInstance(), and setHeader().
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().
ilPersonalProfileGUI::showProfile | ( | ) |
show profile form
/OLD IMPLEMENTATION DEPRECATED
Definition at line 536 of file class.ilPersonalProfileGUI.php.
References showPersonalData().
Referenced by saveProfile().
ilPersonalProfileGUI::showPublicProfile | ( | $a_no_init = false | ) |
Public profile form.
Definition at line 1204 of file class.ilPersonalProfileGUI.php.
References $tabs, initPublicProfileForm(), setHeader(), showChecklist(), and ilProfileChecklistStatus\STEP_PUBLISH_OPTIONS.
Referenced by changeEmail().
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(), ilBadge\getTitle(), IL_CAL_DATE, ilMapUtil\isActivated(), ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setMultiValues(), ilNonEditableValueGUI\setValue(), user(), and userSettingVisible().
Referenced by initPublicProfileForm().
|
protected |
Definition at line 541 of file class.ilPersonalProfileGUI.php.
References $tpl, ilSystemSupportContacts\getMailsToAddress(), ilTermsOfServiceHelper\isEnabled(), ilUtil\prepareFormOutput(), and user().
|
private |
Definition at line 1044 of file class.ilPersonalProfileGUI.php.
References Vendor\Package\$e, $login, ilObjUser\_loginExists(), ilUtil\isLogin(), and user().
Referenced by goToEmailConfirmation(), and savePersonalData().
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().
Referenced by savePersonalDataForm().
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(), and showPublicProfileFields().
|
protected |
Definition at line 621 of file class.ilPersonalProfileGUI.php.
References AUTH_LDAP, AUTH_LOCAL, ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), and user().
ilPersonalProfileGUI::workWithUserSetting | ( | string | $setting | ) |
string | $setting |
Definition at line 187 of file class.ilPersonalProfileGUI.php.
Referenced by saveProfile(), and uploadUserPicture().
|
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 importPersonalDataSelection(), initPersonalDataForm(), initPersonalDataImportForm(), initPublicProfileForm(), savePublicProfile(), and showPersonalData().
|
protected |
Definition at line 58 of file class.ilPersonalProfileGUI.php.
Referenced by showPublicProfile().
|
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(), importPersonalData(), importPersonalDataSelection(), savePublicProfile(), showChecklist(), showExportImport(), 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.
Referenced by ilObjUserGUI\showUpperIcon().
|
private |
Definition at line 35 of file class.ilPersonalProfileGUI.php.